diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-07-17 17:51:46 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-07-18 09:46:14 +0200 |
commit | 64d72e8d4e44f3385c5528aba31ed26e4e5e40da (patch) | |
tree | 1a30e0f0088724f74e693cfb97b32eae7a698e6b /c/src/lib/libbsp/powerpc/mpc55xxevb/console/console-esci.c | |
parent | bsp/mpc55xx: Add MPC55XX_SYSTEM_CLOCK_DIVIDER (diff) | |
download | rtems-64d72e8d4e44f3385c5528aba31ed26e4e5e40da.tar.bz2 |
bsp/mpc55xx: Add ESCI_C and ESCI_D support
Diffstat (limited to 'c/src/lib/libbsp/powerpc/mpc55xxevb/console/console-esci.c')
-rw-r--r-- | c/src/lib/libbsp/powerpc/mpc55xxevb/console/console-esci.c | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/console/console-esci.c b/c/src/lib/libbsp/powerpc/mpc55xxevb/console/console-esci.c index 737936b75f..9aa19ac78a 100644 --- a/c/src/lib/libbsp/powerpc/mpc55xxevb/console/console-esci.c +++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/console/console-esci.c @@ -5,7 +5,7 @@ */ /* - * Copyright (c) 2008-2011 embedded brains GmbH. All rights reserved. + * Copyright (c) 2008-2012 embedded brains GmbH. All rights reserved. * * embedded brains GmbH * Obere Lagerstr. 30 @@ -29,10 +29,25 @@ mpc55xx_esci_context mpc55xx_esci_devices [] = { { .regs = &ESCI_A, .irq = MPC55XX_IRQ_ESCI(0) - }, { - .regs = &ESCI_B, - .irq = MPC55XX_IRQ_ESCI(1) } + #ifdef ESCI_B + , { + .regs = &ESCI_B, + .irq = MPC55XX_IRQ_ESCI(1) + } + #endif + #ifdef ESCI_C + , { + .regs = &ESCI_C, + .irq = MPC55XX_IRQ_ESCI(2) + } + #endif + #ifdef ESCI_D + , { + .regs = &ESCI_D, + .irq = MPC55XX_IRQ_ESCI(3) + } + #endif }; static void mpc55xx_esci_poll_write(int minor, char c) |