common.c (59b479e0985f0b795d68331d6443a7f89c47768d) | common.c (01001712c96f82e6317b1e09729d8fc4bcc66957) |
---|---|
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> --- 26 unchanged lines hidden (view full) --- 35 omap2_set_globals_tap(omap2_globals); 36 omap2_set_globals_sdrc(omap2_globals); 37 omap2_set_globals_control(omap2_globals); 38 omap2_set_globals_prcm(omap2_globals); 39} 40 41#endif 42 | 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> --- 26 unchanged lines hidden (view full) --- 35 omap2_set_globals_tap(omap2_globals); 36 omap2_set_globals_sdrc(omap2_globals); 37 omap2_set_globals_control(omap2_globals); 38 omap2_set_globals_prcm(omap2_globals); 39} 40 41#endif 42 |
43#if defined(CONFIG_SOC_OMAP2420) | 43#if defined(CONFIG_ARCH_OMAP2420) |
44 45static struct omap_globals omap242x_globals = { 46 .class = OMAP242X_CLASS, 47 .tap = OMAP2_L4_IO_ADDRESS(0x48014000), 48 .sdrc = OMAP2420_SDRC_BASE, 49 .sms = OMAP2420_SMS_BASE, 50 .ctrl = OMAP242X_CTRL_BASE, 51 .prm = OMAP2420_PRM_BASE, --- 4 unchanged lines hidden (view full) --- 56}; 57 58void __init omap2_set_globals_242x(void) 59{ 60 __omap2_set_globals(&omap242x_globals); 61} 62#endif 63 | 44 45static struct omap_globals omap242x_globals = { 46 .class = OMAP242X_CLASS, 47 .tap = OMAP2_L4_IO_ADDRESS(0x48014000), 48 .sdrc = OMAP2420_SDRC_BASE, 49 .sms = OMAP2420_SMS_BASE, 50 .ctrl = OMAP242X_CTRL_BASE, 51 .prm = OMAP2420_PRM_BASE, --- 4 unchanged lines hidden (view full) --- 56}; 57 58void __init omap2_set_globals_242x(void) 59{ 60 __omap2_set_globals(&omap242x_globals); 61} 62#endif 63 |
64#if defined(CONFIG_SOC_OMAP2430) | 64#if defined(CONFIG_ARCH_OMAP2430) |
65 66static struct omap_globals omap243x_globals = { 67 .class = OMAP243X_CLASS, 68 .tap = OMAP2_L4_IO_ADDRESS(0x4900a000), 69 .sdrc = OMAP243X_SDRC_BASE, 70 .sms = OMAP243X_SMS_BASE, 71 .ctrl = OMAP243X_CTRL_BASE, 72 .prm = OMAP2430_PRM_BASE, --- 30 unchanged lines hidden (view full) --- 103 __omap2_set_globals(&omap3_globals); 104} 105 106void __init omap3_map_io(void) 107{ 108 omap2_set_globals_3xxx(); 109 omap34xx_map_common_io(); 110} | 65 66static struct omap_globals omap243x_globals = { 67 .class = OMAP243X_CLASS, 68 .tap = OMAP2_L4_IO_ADDRESS(0x4900a000), 69 .sdrc = OMAP243X_SDRC_BASE, 70 .sms = OMAP243X_SMS_BASE, 71 .ctrl = OMAP243X_CTRL_BASE, 72 .prm = OMAP2430_PRM_BASE, --- 30 unchanged lines hidden (view full) --- 103 __omap2_set_globals(&omap3_globals); 104} 105 106void __init omap3_map_io(void) 107{ 108 omap2_set_globals_3xxx(); 109 omap34xx_map_common_io(); 110} |
111 112/* 113 * Adjust TAP register base such that omap3_check_revision accesses the correct 114 * TI816X register for checking device ID (it adds 0x204 to tap base while 115 * TI816X DEVICE ID register is at offset 0x600 from control base). 116 */ 117#define TI816X_TAP_BASE (TI816X_CTRL_BASE + \ 118 TI816X_CONTROL_DEVICE_ID - 0x204) 119 120static struct omap_globals ti816x_globals = { 121 .class = OMAP343X_CLASS, 122 .tap = OMAP2_L4_IO_ADDRESS(TI816X_TAP_BASE), 123 .ctrl = TI816X_CTRL_BASE, 124 .prm = TI816X_PRCM_BASE, 125 .cm = TI816X_PRCM_BASE, 126}; 127 128void __init omap2_set_globals_ti816x(void) 129{ 130 __omap2_set_globals(&ti816x_globals); 131} |
|
111#endif 112 113#if defined(CONFIG_ARCH_OMAP4) 114static struct omap_globals omap4_globals = { 115 .class = OMAP443X_CLASS, 116 .tap = OMAP2_L4_IO_ADDRESS(OMAP443X_SCM_BASE), 117 .ctrl = OMAP443X_SCM_BASE, 118 .ctrl_pad = OMAP443X_CTRL_BASE, --- 17 unchanged lines hidden --- | 132#endif 133 134#if defined(CONFIG_ARCH_OMAP4) 135static struct omap_globals omap4_globals = { 136 .class = OMAP443X_CLASS, 137 .tap = OMAP2_L4_IO_ADDRESS(OMAP443X_SCM_BASE), 138 .ctrl = OMAP443X_SCM_BASE, 139 .ctrl_pad = OMAP443X_CTRL_BASE, --- 17 unchanged lines hidden --- |