tusb6010.c (d9c5841e22231e4e49fd0a1004164e6fce59b7a6) tusb6010.c (1d0f11b39728099100a768cab2d7a90389017e75)
1/*
2 * TUSB6010 USB 2.0 OTG Dual Role controller
3 *
4 * Copyright (C) 2006 Nokia Corporation
5 * Tony Lindgren <tony@atomide.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

--- 15 unchanged lines hidden (view full) ---

24
25#include "musb_core.h"
26
27static void tusb_source_power(struct musb *musb, int is_on);
28
29#define TUSB_REV_MAJOR(reg_val) ((reg_val >> 4) & 0xf)
30#define TUSB_REV_MINOR(reg_val) (reg_val & 0xf)
31
1/*
2 * TUSB6010 USB 2.0 OTG Dual Role controller
3 *
4 * Copyright (C) 2006 Nokia Corporation
5 * Tony Lindgren <tony@atomide.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

--- 15 unchanged lines hidden (view full) ---

24
25#include "musb_core.h"
26
27static void tusb_source_power(struct musb *musb, int is_on);
28
29#define TUSB_REV_MAJOR(reg_val) ((reg_val >> 4) & 0xf)
30#define TUSB_REV_MINOR(reg_val) (reg_val & 0xf)
31
32#ifdef CONFIG_PM
33/* REVISIT: These should be only needed if somebody implements off idle */
34void musb_platform_save_context(struct musb *musb,
35 struct musb_context_registers *musb_context)
36{
37}
38
39void musb_platform_restore_context(struct musb *musb,
40 struct musb_context_registers *musb_context)
41{
42}
43#endif
44
32/*
33 * Checks the revision. We need to use the DMA register as 3.0 does not
34 * have correct versions for TUSB_PRCM_REV or TUSB_INT_CTRL_REV.
35 */
36u8 tusb_get_revision(struct musb *musb)
37{
38 void __iomem *tbase = musb->ctrl_base;
39 u32 die_id;

--- 1132 unchanged lines hidden ---
45/*
46 * Checks the revision. We need to use the DMA register as 3.0 does not
47 * have correct versions for TUSB_PRCM_REV or TUSB_INT_CTRL_REV.
48 */
49u8 tusb_get_revision(struct musb *musb)
50{
51 void __iomem *tbase = musb->ctrl_base;
52 u32 die_id;

--- 1132 unchanged lines hidden ---