common.c (1e6cb146c39cdef1ffc340c13637fce2ba5575be) common.c (a920360f038e976e7a86b002e209402da20e9147)
1/*
2 * linux/arch/arm/mach-omap2/common.c
3 *
4 * Code common to all OMAP2+ machines.
5 *
6 * Copyright (C) 2009 Texas Instruments
7 * Copyright (C) 2010 Nokia Corporation
8 * Tony Lindgren <tony@atomide.com>

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

105
106void __init omap3_map_io(void)
107{
108 omap34xx_map_common_io();
109}
110
111/*
112 * Adjust TAP register base such that omap3_check_revision accesses the correct
1/*
2 * linux/arch/arm/mach-omap2/common.c
3 *
4 * Code common to all OMAP2+ machines.
5 *
6 * Copyright (C) 2009 Texas Instruments
7 * Copyright (C) 2010 Nokia Corporation
8 * Tony Lindgren <tony@atomide.com>

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

105
106void __init omap3_map_io(void)
107{
108 omap34xx_map_common_io();
109}
110
111/*
112 * Adjust TAP register base such that omap3_check_revision accesses the correct
113 * TI816X register for checking device ID (it adds 0x204 to tap base while
114 * TI816X DEVICE ID register is at offset 0x600 from control base).
113 * TI81XX register for checking device ID (it adds 0x204 to tap base while
114 * TI81XX DEVICE ID register is at offset 0x600 from control base).
115 */
115 */
116#define TI816X_TAP_BASE (TI816X_CTRL_BASE + \
117 TI816X_CONTROL_DEVICE_ID - 0x204)
116#define TI81XX_TAP_BASE (TI81XX_CTRL_BASE + \
117 TI81XX_CONTROL_DEVICE_ID - 0x204)
118
118
119static struct omap_globals ti816x_globals = {
119static struct omap_globals ti81xx_globals = {
120 .class = OMAP343X_CLASS,
120 .class = OMAP343X_CLASS,
121 .tap = OMAP2_L4_IO_ADDRESS(TI816X_TAP_BASE),
122 .ctrl = OMAP2_L4_IO_ADDRESS(TI816X_CTRL_BASE),
123 .prm = OMAP2_L4_IO_ADDRESS(TI816X_PRCM_BASE),
124 .cm = OMAP2_L4_IO_ADDRESS(TI816X_PRCM_BASE),
121 .tap = OMAP2_L4_IO_ADDRESS(TI81XX_TAP_BASE),
122 .ctrl = OMAP2_L4_IO_ADDRESS(TI81XX_CTRL_BASE),
123 .prm = OMAP2_L4_IO_ADDRESS(TI81XX_PRCM_BASE),
124 .cm = OMAP2_L4_IO_ADDRESS(TI81XX_PRCM_BASE),
125};
126
125};
126
127void __init omap2_set_globals_ti816x(void)
127void __init omap2_set_globals_ti81xx(void)
128{
128{
129 __omap2_set_globals(&ti816x_globals);
129 __omap2_set_globals(&ti81xx_globals);
130}
131
130}
131
132void __init ti81xx_map_io(void)
133{
134 omapti81xx_map_common_io();
135}
136
132#define AM33XX_TAP_BASE (AM33XX_CTRL_BASE + \
137#define AM33XX_TAP_BASE (AM33XX_CTRL_BASE + \
133 TI816X_CONTROL_DEVICE_ID - 0x204)
138 TI81XX_CONTROL_DEVICE_ID - 0x204)
134
135static struct omap_globals am33xx_globals = {
136 .class = AM335X_CLASS,
137 .tap = AM33XX_L4_WK_IO_ADDRESS(AM33XX_TAP_BASE),
138 .ctrl = AM33XX_L4_WK_IO_ADDRESS(AM33XX_CTRL_BASE),
139 .prm = AM33XX_L4_WK_IO_ADDRESS(AM33XX_PRCM_BASE),
140 .cm = AM33XX_L4_WK_IO_ADDRESS(AM33XX_PRCM_BASE),
141};

--- 36 unchanged lines hidden ---
139
140static struct omap_globals am33xx_globals = {
141 .class = AM335X_CLASS,
142 .tap = AM33XX_L4_WK_IO_ADDRESS(AM33XX_TAP_BASE),
143 .ctrl = AM33XX_L4_WK_IO_ADDRESS(AM33XX_CTRL_BASE),
144 .prm = AM33XX_L4_WK_IO_ADDRESS(AM33XX_PRCM_BASE),
145 .cm = AM33XX_L4_WK_IO_ADDRESS(AM33XX_PRCM_BASE),
146};

--- 36 unchanged lines hidden ---