diff options
author | Sonic Zhang <sonic.zhang@analog.com> | 2011-08-01 05:53:21 -0400 |
---|---|---|
committer | Bob Liu <lliubbo@gmail.com> | 2011-11-14 04:11:25 -0500 |
commit | edb0a6408a84b4f14647770d8a6796afff3e93a9 (patch) | |
tree | 9d33ed07c409534ca9709a39dd25b1e60c3724d3 /arch/blackfin/mach-bf537/boards | |
parent | 7f80850d3f9fd8fda23a317044aef3a6bafab06b (diff) |
Blackfin: add serial TX IRQ in individual platform resource
The serial TX IRQ is not simply (RX IRQ + 1) on some Blackfin chips,
so move the values to the platform resources.
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
Diffstat (limited to 'arch/blackfin/mach-bf537/boards')
-rw-r--r-- | arch/blackfin/mach-bf537/boards/cm_bf537e.c | 14 | ||||
-rw-r--r-- | arch/blackfin/mach-bf537/boards/cm_bf537u.c | 14 | ||||
-rw-r--r-- | arch/blackfin/mach-bf537/boards/dnp5370.c | 14 | ||||
-rw-r--r-- | arch/blackfin/mach-bf537/boards/minotaur.c | 14 | ||||
-rw-r--r-- | arch/blackfin/mach-bf537/boards/pnav10.c | 14 | ||||
-rw-r--r-- | arch/blackfin/mach-bf537/boards/stamp.c | 14 | ||||
-rw-r--r-- | arch/blackfin/mach-bf537/boards/tcm_bf537.c | 14 |
7 files changed, 84 insertions, 14 deletions
diff --git a/arch/blackfin/mach-bf537/boards/cm_bf537e.c b/arch/blackfin/mach-bf537/boards/cm_bf537e.c index 1471c51ea697..82e4cc31f11c 100644 --- a/arch/blackfin/mach-bf537/boards/cm_bf537e.c +++ b/arch/blackfin/mach-bf537/boards/cm_bf537e.c | |||
@@ -305,8 +305,13 @@ static struct resource bfin_uart0_resources[] = { | |||
305 | .flags = IORESOURCE_MEM, | 305 | .flags = IORESOURCE_MEM, |
306 | }, | 306 | }, |
307 | { | 307 | { |
308 | .start = IRQ_UART0_TX, | ||
309 | .end = IRQ_UART0_TX, | ||
310 | .flags = IORESOURCE_IRQ, | ||
311 | }, | ||
312 | { | ||
308 | .start = IRQ_UART0_RX, | 313 | .start = IRQ_UART0_RX, |
309 | .end = IRQ_UART0_RX+1, | 314 | .end = IRQ_UART0_RX, |
310 | .flags = IORESOURCE_IRQ, | 315 | .flags = IORESOURCE_IRQ, |
311 | }, | 316 | }, |
312 | { | 317 | { |
@@ -366,8 +371,13 @@ static struct resource bfin_uart1_resources[] = { | |||
366 | .flags = IORESOURCE_MEM, | 371 | .flags = IORESOURCE_MEM, |
367 | }, | 372 | }, |
368 | { | 373 | { |
374 | .start = IRQ_UART1_TX, | ||
375 | .end = IRQ_UART1_TX, | ||
376 | .flags = IORESOURCE_IRQ, | ||
377 | }, | ||
378 | { | ||
369 | .start = IRQ_UART1_RX, | 379 | .start = IRQ_UART1_RX, |
370 | .end = IRQ_UART1_RX+1, | 380 | .end = IRQ_UART1_RX, |
371 | .flags = IORESOURCE_IRQ, | 381 | .flags = IORESOURCE_IRQ, |
372 | }, | 382 | }, |
373 | { | 383 | { |
diff --git a/arch/blackfin/mach-bf537/boards/cm_bf537u.c b/arch/blackfin/mach-bf537/boards/cm_bf537u.c index 47cf37de33ba..e9f1964916e0 100644 --- a/arch/blackfin/mach-bf537/boards/cm_bf537u.c +++ b/arch/blackfin/mach-bf537/boards/cm_bf537u.c | |||
@@ -306,8 +306,13 @@ static struct resource bfin_uart0_resources[] = { | |||
306 | .flags = IORESOURCE_MEM, | 306 | .flags = IORESOURCE_MEM, |
307 | }, | 307 | }, |
308 | { | 308 | { |
309 | .start = IRQ_UART0_TX, | ||
310 | .end = IRQ_UART0_TX, | ||
311 | .flags = IORESOURCE_IRQ, | ||
312 | }, | ||
313 | { | ||
309 | .start = IRQ_UART0_RX, | 314 | .start = IRQ_UART0_RX, |
310 | .end = IRQ_UART0_RX+1, | 315 | .end = IRQ_UART0_RX, |
311 | .flags = IORESOURCE_IRQ, | 316 | .flags = IORESOURCE_IRQ, |
312 | }, | 317 | }, |
313 | { | 318 | { |
@@ -349,8 +354,13 @@ static struct resource bfin_uart1_resources[] = { | |||
349 | .flags = IORESOURCE_MEM, | 354 | .flags = IORESOURCE_MEM, |
350 | }, | 355 | }, |
351 | { | 356 | { |
357 | .start = IRQ_UART1_TX, | ||
358 | .end = IRQ_UART1_TX, | ||
359 | .flags = IORESOURCE_IRQ, | ||
360 | }, | ||
361 | { | ||
352 | .start = IRQ_UART1_RX, | 362 | .start = IRQ_UART1_RX, |
353 | .end = IRQ_UART1_RX+1, | 363 | .end = IRQ_UART1_RX, |
354 | .flags = IORESOURCE_IRQ, | 364 | .flags = IORESOURCE_IRQ, |
355 | }, | 365 | }, |
356 | { | 366 | { |
diff --git a/arch/blackfin/mach-bf537/boards/dnp5370.c b/arch/blackfin/mach-bf537/boards/dnp5370.c index 33e69e427e98..5b225983e9e6 100644 --- a/arch/blackfin/mach-bf537/boards/dnp5370.c +++ b/arch/blackfin/mach-bf537/boards/dnp5370.c | |||
@@ -237,8 +237,13 @@ static struct resource bfin_uart0_resources[] = { | |||
237 | .flags = IORESOURCE_MEM, | 237 | .flags = IORESOURCE_MEM, |
238 | }, | 238 | }, |
239 | { | 239 | { |
240 | .start = IRQ_UART0_TX, | ||
241 | .end = IRQ_UART0_TX, | ||
242 | .flags = IORESOURCE_IRQ, | ||
243 | }, | ||
244 | { | ||
240 | .start = IRQ_UART0_RX, | 245 | .start = IRQ_UART0_RX, |
241 | .end = IRQ_UART0_RX+1, | 246 | .end = IRQ_UART0_RX, |
242 | .flags = IORESOURCE_IRQ, | 247 | .flags = IORESOURCE_IRQ, |
243 | }, | 248 | }, |
244 | { | 249 | { |
@@ -281,8 +286,13 @@ static struct resource bfin_uart1_resources[] = { | |||
281 | .flags = IORESOURCE_MEM, | 286 | .flags = IORESOURCE_MEM, |
282 | }, | 287 | }, |
283 | { | 288 | { |
289 | .start = IRQ_UART1_TX, | ||
290 | .end = IRQ_UART1_TX, | ||
291 | .flags = IORESOURCE_IRQ, | ||
292 | }, | ||
293 | { | ||
284 | .start = IRQ_UART1_RX, | 294 | .start = IRQ_UART1_RX, |
285 | .end = IRQ_UART1_RX+1, | 295 | .end = IRQ_UART1_RX, |
286 | .flags = IORESOURCE_IRQ, | 296 | .flags = IORESOURCE_IRQ, |
287 | }, | 297 | }, |
288 | { | 298 | { |
diff --git a/arch/blackfin/mach-bf537/boards/minotaur.c b/arch/blackfin/mach-bf537/boards/minotaur.c index c62f9dccd9f7..3901dd093b90 100644 --- a/arch/blackfin/mach-bf537/boards/minotaur.c +++ b/arch/blackfin/mach-bf537/boards/minotaur.c | |||
@@ -240,8 +240,13 @@ static struct resource bfin_uart0_resources[] = { | |||
240 | .flags = IORESOURCE_MEM, | 240 | .flags = IORESOURCE_MEM, |
241 | }, | 241 | }, |
242 | { | 242 | { |
243 | .start = IRQ_UART0_TX, | ||
244 | .end = IRQ_UART0_TX, | ||
245 | .flags = IORESOURCE_IRQ, | ||
246 | }, | ||
247 | { | ||
243 | .start = IRQ_UART0_RX, | 248 | .start = IRQ_UART0_RX, |
244 | .end = IRQ_UART0_RX+1, | 249 | .end = IRQ_UART0_RX, |
245 | .flags = IORESOURCE_IRQ, | 250 | .flags = IORESOURCE_IRQ, |
246 | }, | 251 | }, |
247 | { | 252 | { |
@@ -283,8 +288,13 @@ static struct resource bfin_uart1_resources[] = { | |||
283 | .flags = IORESOURCE_MEM, | 288 | .flags = IORESOURCE_MEM, |
284 | }, | 289 | }, |
285 | { | 290 | { |
291 | .start = IRQ_UART1_TX, | ||
292 | .end = IRQ_UART1_TX, | ||
293 | .flags = IORESOURCE_IRQ, | ||
294 | }, | ||
295 | { | ||
286 | .start = IRQ_UART1_RX, | 296 | .start = IRQ_UART1_RX, |
287 | .end = IRQ_UART1_RX+1, | 297 | .end = IRQ_UART1_RX, |
288 | .flags = IORESOURCE_IRQ, | 298 | .flags = IORESOURCE_IRQ, |
289 | }, | 299 | }, |
290 | { | 300 | { |
diff --git a/arch/blackfin/mach-bf537/boards/pnav10.c b/arch/blackfin/mach-bf537/boards/pnav10.c index 3099e91114fc..1567dd875e52 100644 --- a/arch/blackfin/mach-bf537/boards/pnav10.c +++ b/arch/blackfin/mach-bf537/boards/pnav10.c | |||
@@ -309,8 +309,13 @@ static struct resource bfin_uart0_resources[] = { | |||
309 | .flags = IORESOURCE_MEM, | 309 | .flags = IORESOURCE_MEM, |
310 | }, | 310 | }, |
311 | { | 311 | { |
312 | .start = IRQ_UART0_TX, | ||
313 | .end = IRQ_UART0_TX, | ||
314 | .flags = IORESOURCE_IRQ, | ||
315 | }, | ||
316 | { | ||
312 | .start = IRQ_UART0_RX, | 317 | .start = IRQ_UART0_RX, |
313 | .end = IRQ_UART0_RX+1, | 318 | .end = IRQ_UART0_RX, |
314 | .flags = IORESOURCE_IRQ, | 319 | .flags = IORESOURCE_IRQ, |
315 | }, | 320 | }, |
316 | { | 321 | { |
@@ -352,8 +357,13 @@ static struct resource bfin_uart1_resources[] = { | |||
352 | .flags = IORESOURCE_MEM, | 357 | .flags = IORESOURCE_MEM, |
353 | }, | 358 | }, |
354 | { | 359 | { |
360 | .start = IRQ_UART1_TX, | ||
361 | .end = IRQ_UART1_TX, | ||
362 | .flags = IORESOURCE_IRQ, | ||
363 | }, | ||
364 | { | ||
355 | .start = IRQ_UART1_RX, | 365 | .start = IRQ_UART1_RX, |
356 | .end = IRQ_UART1_RX+1, | 366 | .end = IRQ_UART1_RX, |
357 | .flags = IORESOURCE_IRQ, | 367 | .flags = IORESOURCE_IRQ, |
358 | }, | 368 | }, |
359 | { | 369 | { |
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c index 27f955db9976..bff551ab9260 100644 --- a/arch/blackfin/mach-bf537/boards/stamp.c +++ b/arch/blackfin/mach-bf537/boards/stamp.c | |||
@@ -1566,8 +1566,13 @@ static struct resource bfin_uart0_resources[] = { | |||
1566 | .flags = IORESOURCE_MEM, | 1566 | .flags = IORESOURCE_MEM, |
1567 | }, | 1567 | }, |
1568 | { | 1568 | { |
1569 | .start = IRQ_UART0_TX, | ||
1570 | .end = IRQ_UART0_TX, | ||
1571 | .flags = IORESOURCE_IRQ, | ||
1572 | }, | ||
1573 | { | ||
1569 | .start = IRQ_UART0_RX, | 1574 | .start = IRQ_UART0_RX, |
1570 | .end = IRQ_UART0_RX+1, | 1575 | .end = IRQ_UART0_RX, |
1571 | .flags = IORESOURCE_IRQ, | 1576 | .flags = IORESOURCE_IRQ, |
1572 | }, | 1577 | }, |
1573 | { | 1578 | { |
@@ -1621,8 +1626,13 @@ static struct resource bfin_uart1_resources[] = { | |||
1621 | .flags = IORESOURCE_MEM, | 1626 | .flags = IORESOURCE_MEM, |
1622 | }, | 1627 | }, |
1623 | { | 1628 | { |
1629 | .start = IRQ_UART1_TX, | ||
1630 | .end = IRQ_UART1_TX, | ||
1631 | .flags = IORESOURCE_IRQ, | ||
1632 | }, | ||
1633 | { | ||
1624 | .start = IRQ_UART1_RX, | 1634 | .start = IRQ_UART1_RX, |
1625 | .end = IRQ_UART1_RX+1, | 1635 | .end = IRQ_UART1_RX, |
1626 | .flags = IORESOURCE_IRQ, | 1636 | .flags = IORESOURCE_IRQ, |
1627 | }, | 1637 | }, |
1628 | { | 1638 | { |
diff --git a/arch/blackfin/mach-bf537/boards/tcm_bf537.c b/arch/blackfin/mach-bf537/boards/tcm_bf537.c index 841803038d6f..e58c9bc8ebb4 100644 --- a/arch/blackfin/mach-bf537/boards/tcm_bf537.c +++ b/arch/blackfin/mach-bf537/boards/tcm_bf537.c | |||
@@ -306,8 +306,13 @@ static struct resource bfin_uart0_resources[] = { | |||
306 | .flags = IORESOURCE_MEM, | 306 | .flags = IORESOURCE_MEM, |
307 | }, | 307 | }, |
308 | { | 308 | { |
309 | .start = IRQ_UART0_TX, | ||
310 | .end = IRQ_UART0_TX, | ||
311 | .flags = IORESOURCE_IRQ, | ||
312 | }, | ||
313 | { | ||
309 | .start = IRQ_UART0_RX, | 314 | .start = IRQ_UART0_RX, |
310 | .end = IRQ_UART0_RX+1, | 315 | .end = IRQ_UART0_RX, |
311 | .flags = IORESOURCE_IRQ, | 316 | .flags = IORESOURCE_IRQ, |
312 | }, | 317 | }, |
313 | { | 318 | { |
@@ -349,8 +354,13 @@ static struct resource bfin_uart1_resources[] = { | |||
349 | .flags = IORESOURCE_MEM, | 354 | .flags = IORESOURCE_MEM, |
350 | }, | 355 | }, |
351 | { | 356 | { |
357 | .start = IRQ_UART1_TX, | ||
358 | .end = IRQ_UART1_TX, | ||
359 | .flags = IORESOURCE_IRQ, | ||
360 | }, | ||
361 | { | ||
352 | .start = IRQ_UART1_RX, | 362 | .start = IRQ_UART1_RX, |
353 | .end = IRQ_UART1_RX+1, | 363 | .end = IRQ_UART1_RX, |
354 | .flags = IORESOURCE_IRQ, | 364 | .flags = IORESOURCE_IRQ, |
355 | }, | 365 | }, |
356 | { | 366 | { |