diff options
author | Anatolij Gustschin <agust@denx.de> | 2010-04-24 19:27:05 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-04-24 22:56:30 +0200 |
commit | e3b28e67329de99a315d509920760dcbc565f8c6 (patch) | |
tree | ba5e030b1b654974ae4ed4ecc870b66cfd95b96b /include/serial.h | |
parent | fbb0030e3894119c089256f16626edd166c7629c (diff) |
mpc512x: add multi serial PSC support
Extend mpc512x serial driver to support multiple PSC ports.
Subsequent patches for PDM360NG board support make use of this
functionality by defining CONFIG_SERIAL_MULTI in the board config
file. Additionally the used PSC devices are specified by defining
e.g. CONFIG_SYS_PSC1, CONFIG_SYS_PSC4 and CONFIG_SYS_PSC6.
Support for PSC devices other than 1, 3, 4 and 6 is not added
by this patch because these aren't used currently. In the future
it can be easily added using DECLARE_PSC_SERIAL_FUNCTIONS(N) and
INIT_PSC_SERIAL_STRUCTURE(N) macros in cpu/mpc512x/serial.c.
Additionally you have to add code for registering added
devices in serial_initialize() in common/serial.c.
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'include/serial.h')
-rw-r--r-- | include/serial.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/serial.h b/include/serial.h index fbf101bd7f7..3f3edbc954d 100644 --- a/include/serial.h +++ b/include/serial.h @@ -38,6 +38,13 @@ extern struct serial_device eserial4_device; #endif +#if defined(CONFIG_MPC512X) +extern struct serial_device serial1_device; +extern struct serial_device serial3_device; +extern struct serial_device serial4_device; +extern struct serial_device serial6_device; +#endif + #if defined(CONFIG_S3C2410) extern struct serial_device s3c24xx_serial0_device; extern struct serial_device s3c24xx_serial1_device; |