diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-04-02 16:34:00 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-04-02 16:34:00 -0400 |
commit | 1810b6cb162e0c19e0ecbbacbcfd66f578f335ec (patch) | |
tree | 810494ca945483bf669a062d445d49d3bfb7d6a7 /arch/arm/mach-omap2/devices.c | |
parent | ef7a4567dc542d8cc563755478464ea928fede41 (diff) | |
parent | 9b6553cd01ce3ea7a6a532f7b7e62e3535d6b102 (diff) |
Merge master.kernel.org:/home/rmk/linux-2.6-arm
* master.kernel.org:/home/rmk/linux-2.6-arm: (27 commits)
[ARM] 3433/1: ARM: OMAP: 8/8 Update board files
[ARM] 3455/1: ARM: OMAP: 7/8 Misc updates, take 2
[ARM] 3454/1: ARM: OMAP: 6/8 Update framebuffer low-level init code, take 2
[ARM] 3430/1: ARM: OMAP: 5/8 Update PM
[ARM] 3429/1: ARM: OMAP: 4/8 Update GPIO
[ARM] 3428/1: ARM: OMAP: 3/8 Update pin multiplexing
[ARM] 3427/1: ARM: OMAP: 2/8 Update timers
[ARM] 3426/1: ARM: OMAP: 1/8 Update clock framework
[ARM] 3396/2: AT91RM9200 Platform devices update
[ARM] 3395/2: AT91RM9200 Dataflash Card vs MMC selection
[ARM] 3393/2: AT91RM9200 LED support
[ARM] 3453/1: Poodle: Correctly set the memory size
[ARM] 3446/1: i.MX: MMC/SD SDHC controller registration for i.MX/MX1 MX1ADS board
[ARM] 3444/1: i.MX: Scatter-gather DMA emulation for i.MX/MX1
[ARM] 3451/1: ep93xx: use the m48t86 rtc driver on the ts72xx platform
[ARM] 3450/1: ep93xx: use the ep93xx rtc driver
[ARM] 3452/1: [S3C2410] RX3715 - add nand information
[ARM] 3449/1: [S3C2410] Anubis - fix NAND timings
[ARM] 3448/1: [S3C2410] Settle delay when _enabling_ USB PLL
[ARM] 3442/1: [S3C2410] SMDK: NAND device setup
...
Diffstat (limited to 'arch/arm/mach-omap2/devices.c')
-rw-r--r-- | arch/arm/mach-omap2/devices.c | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 7181edb89352..def9e5370edf 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c | |||
@@ -74,6 +74,47 @@ static void omap_init_i2c(void) {} | |||
74 | 74 | ||
75 | #endif | 75 | #endif |
76 | 76 | ||
77 | #if defined(CONFIG_OMAP_STI) | ||
78 | |||
79 | #define OMAP2_STI_BASE IO_ADDRESS(0x48068000) | ||
80 | #define OMAP2_STI_CHANNEL_BASE 0x54000000 | ||
81 | #define OMAP2_STI_IRQ 4 | ||
82 | |||
83 | static struct resource sti_resources[] = { | ||
84 | { | ||
85 | .start = OMAP2_STI_BASE, | ||
86 | .end = OMAP2_STI_BASE + 0x7ff, | ||
87 | .flags = IORESOURCE_MEM, | ||
88 | }, | ||
89 | { | ||
90 | .start = OMAP2_STI_CHANNEL_BASE, | ||
91 | .end = OMAP2_STI_CHANNEL_BASE + SZ_64K - 1, | ||
92 | .flags = IORESOURCE_MEM, | ||
93 | }, | ||
94 | { | ||
95 | .start = OMAP2_STI_IRQ, | ||
96 | .flags = IORESOURCE_IRQ, | ||
97 | } | ||
98 | }; | ||
99 | |||
100 | static struct platform_device sti_device = { | ||
101 | .name = "sti", | ||
102 | .id = -1, | ||
103 | .dev = { | ||
104 | .release = omap_nop_release, | ||
105 | }, | ||
106 | .num_resources = ARRAY_SIZE(sti_resources), | ||
107 | .resource = sti_resources, | ||
108 | }; | ||
109 | |||
110 | static inline void omap_init_sti(void) | ||
111 | { | ||
112 | platform_device_register(&sti_device); | ||
113 | } | ||
114 | #else | ||
115 | static inline void omap_init_sti(void) {} | ||
116 | #endif | ||
117 | |||
77 | /*-------------------------------------------------------------------------*/ | 118 | /*-------------------------------------------------------------------------*/ |
78 | 119 | ||
79 | static int __init omap2_init_devices(void) | 120 | static int __init omap2_init_devices(void) |
@@ -82,6 +123,7 @@ static int __init omap2_init_devices(void) | |||
82 | * in alphabetical order so they're easier to sort through. | 123 | * in alphabetical order so they're easier to sort through. |
83 | */ | 124 | */ |
84 | omap_init_i2c(); | 125 | omap_init_i2c(); |
126 | omap_init_sti(); | ||
85 | 127 | ||
86 | return 0; | 128 | return 0; |
87 | } | 129 | } |