aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf538
diff options
context:
space:
mode:
authorGraf Yang <graf.yang@analog.com>2009-01-07 10:14:39 -0500
committerBryan Wu <cooloney@kernel.org>2009-01-07 10:14:39 -0500
commit42bd8bcb2fa1853fda9c51d956f70bbe2329bdfb (patch)
treeda6e1022ee8e19380444d026dc40e6e989489a85 /arch/blackfin/mach-bf538
parentc0948d3316eaf3fdacc461c2c9e18441022e9e63 (diff)
Blackfin arch: Modify bfin_sir device configuration to board file
Signed-off-by: Graf Yang <graf.yang@analog.com> Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin/mach-bf538')
-rw-r--r--arch/blackfin/mach-bf538/boards/ezkit.c69
1 files changed, 61 insertions, 8 deletions
diff --git a/arch/blackfin/mach-bf538/boards/ezkit.c b/arch/blackfin/mach-bf538/boards/ezkit.c
index 4b28261c66f5..e37cb9378884 100644
--- a/arch/blackfin/mach-bf538/boards/ezkit.c
+++ b/arch/blackfin/mach-bf538/boards/ezkit.c
@@ -95,37 +95,82 @@ static struct platform_device bfin_uart_device = {
95#endif 95#endif
96 96
97#if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 97#if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE)
98static struct resource bfin_sir_resources[] = {
99#ifdef CONFIG_BFIN_SIR0 98#ifdef CONFIG_BFIN_SIR0
99static struct resource bfin_sir0_resources[] = {
100 { 100 {
101 .start = 0xFFC00400, 101 .start = 0xFFC00400,
102 .end = 0xFFC004FF, 102 .end = 0xFFC004FF,
103 .flags = IORESOURCE_MEM, 103 .flags = IORESOURCE_MEM,
104 }, 104 },
105 {
106 .start = IRQ_UART0_RX,
107 .end = IRQ_UART0_RX+1,
108 .flags = IORESOURCE_IRQ,
109 },
110 {
111 .start = CH_UART0_RX,
112 .end = CH_UART0_RX+1,
113 .flags = IORESOURCE_DMA,
114 },
115};
116static struct platform_device bfin_sir0_device = {
117 .name = "bfin_sir",
118 .id = 0,
119 .num_resources = ARRAY_SIZE(bfin_sir0_resources),
120 .resource = bfin_sir0_resources,
121};
105#endif 122#endif
106#ifdef CONFIG_BFIN_SIR1 123#ifdef CONFIG_BFIN_SIR1
124static struct resource bfin_sir1_resources[] = {
107 { 125 {
108 .start = 0xFFC02000, 126 .start = 0xFFC02000,
109 .end = 0xFFC020FF, 127 .end = 0xFFC020FF,
110 .flags = IORESOURCE_MEM, 128 .flags = IORESOURCE_MEM,
111 }, 129 },
130 {
131 .start = IRQ_UART1_RX,
132 .end = IRQ_UART1_RX+1,
133 .flags = IORESOURCE_IRQ,
134 },
135 {
136 .start = CH_UART1_RX,
137 .end = CH_UART1_RX+1,
138 .flags = IORESOURCE_DMA,
139 },
140};
141static struct platform_device bfin_sir1_device = {
142 .name = "bfin_sir",
143 .id = 1,
144 .num_resources = ARRAY_SIZE(bfin_sir1_resources),
145 .resource = bfin_sir1_resources,
146};
112#endif 147#endif
113#ifdef CONFIG_BFIN_SIR2 148#ifdef CONFIG_BFIN_SIR2
149static struct resource bfin_sir2_resources[] = {
114 { 150 {
115 .start = 0xFFC02100, 151 .start = 0xFFC02100,
116 .end = 0xFFC021FF, 152 .end = 0xFFC021FF,
117 .flags = IORESOURCE_MEM, 153 .flags = IORESOURCE_MEM,
118 }, 154 },
119#endif 155 {
156 .start = IRQ_UART2_RX,
157 .end = IRQ_UART2_RX+1,
158 .flags = IORESOURCE_IRQ,
159 },
160 {
161 .start = CH_UART2_RX,
162 .end = CH_UART2_RX+1,
163 .flags = IORESOURCE_DMA,
164 },
120}; 165};
121 166static struct platform_device bfin_sir2_device = {
122static struct platform_device bfin_sir_device = {
123 .name = "bfin_sir", 167 .name = "bfin_sir",
124 .id = 0, 168 .id = 2,
125 .num_resources = ARRAY_SIZE(bfin_sir_resources), 169 .num_resources = ARRAY_SIZE(bfin_sir2_resources),
126 .resource = bfin_sir_resources, 170 .resource = bfin_sir2_resources,
127}; 171};
128#endif 172#endif
173#endif
129 174
130/* 175/*
131 * USB-LAN EzExtender board 176 * USB-LAN EzExtender board
@@ -519,7 +564,15 @@ static struct platform_device *cm_bf538_devices[] __initdata = {
519#endif 564#endif
520 565
521#if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) 566#if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE)
522 &bfin_sir_device, 567#ifdef CONFIG_BFIN_SIR0
568 &bfin_sir0_device,
569#endif
570#ifdef CONFIG_BFIN_SIR1
571 &bfin_sir1_device,
572#endif
573#ifdef CONFIG_BFIN_SIR2
574 &bfin_sir2_device,
575#endif
523#endif 576#endif
524 577
525#if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 578#if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)