diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-18 20:02:35 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-18 20:02:35 -0400 |
commit | 39710479303fd3affb3e204e9a7a75cc676977b5 (patch) | |
tree | 3fff5fb412df77170883f02fc54bdbee9aba4f22 /arch/blackfin/mach-bf561/boards/tepla.c | |
parent | 9d20593a722c2dab7a5ab74f5d8c9b604aca52f9 (diff) | |
parent | eb63e5d15758d2b1e607ddd5fb861b5596629380 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vapier/blackfin
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vapier/blackfin: (96 commits)
Blackfin: stop cleaning include/asm/asm-offsets.h
Blackfin: scale calibration when cpu freq changes
Blackfin: eat spurious space in asm/dpmc.h
Blackfin: fix anomaly 283 handling with exact hardware error
Blackfin: bf537-stamp: add example ADXL346 orientation resources
Blackfin: bf537-stamp: add example AD2S1210 IIO resources
Blackfin: don't support keypad wakeup from hibernate
Blackfin: bf537-stamp: add example AD7416 IIO resources
Blackfin: bf537-stamp: add example ADP8860 backlight/led resources
Blackfin: bf537-stamp: add example AD7414 temp sensor resources
Blackfin: rename AD1836 to AD183X in board files
Blackfin: bf537-stamp: add example AD2S120x resources
Blackfin: add support for the on-chip MAC status interrupts
Blackfin: asm/page.h: pull in asm-generic headers
Blackfin: mark gpio lib functions static
Blackfin: bf537-stamp: add example ADAU1361 resources
Blackfin: GPIO: implement to_irq handler
Blackfin: bf537-stamp: add example ADP122/ADP150 power regulator resources
Blackfin: bf537-stamp: add example AD2S90 resources
Blackfin: bf537-stamp: add example AD5398 power regulator resources
...
Diffstat (limited to 'arch/blackfin/mach-bf561/boards/tepla.c')
-rw-r--r-- | arch/blackfin/mach-bf561/boards/tepla.c | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf561/boards/tepla.c b/arch/blackfin/mach-bf561/boards/tepla.c index 8ba7252455e..d3017e53686 100644 --- a/arch/blackfin/mach-bf561/boards/tepla.c +++ b/arch/blackfin/mach-bf561/boards/tepla.c | |||
@@ -42,6 +42,52 @@ static struct platform_device smc91x_device = { | |||
42 | .resource = smc91x_resources, | 42 | .resource = smc91x_resources, |
43 | }; | 43 | }; |
44 | 44 | ||
45 | #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) | ||
46 | #ifdef CONFIG_SERIAL_BFIN_UART0 | ||
47 | static struct resource bfin_uart0_resources[] = { | ||
48 | { | ||
49 | .start = BFIN_UART_THR, | ||
50 | .end = BFIN_UART_GCTL+2, | ||
51 | .flags = IORESOURCE_MEM, | ||
52 | }, | ||
53 | { | ||
54 | .start = IRQ_UART_RX, | ||
55 | .end = IRQ_UART_RX+1, | ||
56 | .flags = IORESOURCE_IRQ, | ||
57 | }, | ||
58 | { | ||
59 | .start = IRQ_UART_ERROR, | ||
60 | .end = IRQ_UART_ERROR, | ||
61 | .flags = IORESOURCE_IRQ, | ||
62 | }, | ||
63 | { | ||
64 | .start = CH_UART_TX, | ||
65 | .end = CH_UART_TX, | ||
66 | .flags = IORESOURCE_DMA, | ||
67 | }, | ||
68 | { | ||
69 | .start = CH_UART_RX, | ||
70 | .end = CH_UART_RX, | ||
71 | .flags = IORESOURCE_DMA, | ||
72 | }, | ||
73 | }; | ||
74 | |||
75 | unsigned short bfin_uart0_peripherals[] = { | ||
76 | P_UART0_TX, P_UART0_RX, 0 | ||
77 | }; | ||
78 | |||
79 | static struct platform_device bfin_uart0_device = { | ||
80 | .name = "bfin-uart", | ||
81 | .id = 0, | ||
82 | .num_resources = ARRAY_SIZE(bfin_uart0_resources), | ||
83 | .resource = bfin_uart0_resources, | ||
84 | .dev = { | ||
85 | .platform_data = &bfin_uart0_peripherals, /* Passed to driver */ | ||
86 | }, | ||
87 | }; | ||
88 | #endif | ||
89 | #endif | ||
90 | |||
45 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 91 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
46 | #ifdef CONFIG_BFIN_SIR0 | 92 | #ifdef CONFIG_BFIN_SIR0 |
47 | static struct resource bfin_sir0_resources[] = { | 93 | static struct resource bfin_sir0_resources[] = { |
@@ -73,6 +119,13 @@ static struct platform_device bfin_sir0_device = { | |||
73 | 119 | ||
74 | static struct platform_device *tepla_devices[] __initdata = { | 120 | static struct platform_device *tepla_devices[] __initdata = { |
75 | &smc91x_device, | 121 | &smc91x_device, |
122 | |||
123 | #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) | ||
124 | #ifdef CONFIG_SERIAL_BFIN_UART0 | ||
125 | &bfin_uart0_device, | ||
126 | #endif | ||
127 | #endif | ||
128 | |||
76 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) | 129 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
77 | #ifdef CONFIG_BFIN_SIR0 | 130 | #ifdef CONFIG_BFIN_SIR0 |
78 | &bfin_sir0_device, | 131 | &bfin_sir0_device, |
@@ -87,3 +140,18 @@ static int __init tepla_init(void) | |||
87 | } | 140 | } |
88 | 141 | ||
89 | arch_initcall(tepla_init); | 142 | arch_initcall(tepla_init); |
143 | |||
144 | static struct platform_device *tepla_early_devices[] __initdata = { | ||
145 | #if defined(CONFIG_SERIAL_BFIN_CONSOLE) || defined(CONFIG_EARLY_PRINTK) | ||
146 | #ifdef CONFIG_SERIAL_BFIN_UART0 | ||
147 | &bfin_uart0_device, | ||
148 | #endif | ||
149 | #endif | ||
150 | }; | ||
151 | |||
152 | void __init native_machine_early_platform_add_devices(void) | ||
153 | { | ||
154 | printk(KERN_INFO "register early platform devices\n"); | ||
155 | early_platform_add_devices(tepla_early_devices, | ||
156 | ARRAY_SIZE(tepla_early_devices)); | ||
157 | } | ||