diff options
author | TsiChung Liew <tsicliew@gmail.com> | 2010-03-09 19:17:52 -0600 |
---|---|---|
committer | TsiChung Liew <tsicliew@gmail.com> | 2010-03-24 11:09:05 -0500 |
commit | 52affe04fa5493597d8a5f6202507190950a32e6 (patch) | |
tree | 257449a1a8179215731e313e5744ed8830767628 /cpu/mcf547x_8x | |
parent | d04c1efae3d834db6e21e9976e338bf1e588e987 (diff) | |
download | u-boot-imx-52affe04fa5493597d8a5f6202507190950a32e6.zip u-boot-imx-52affe04fa5493597d8a5f6202507190950a32e6.tar.gz u-boot-imx-52affe04fa5493597d8a5f6202507190950a32e6.tar.bz2 |
ColdFire: Update processors' serial port configuration
Provide parameter passing to uart_port_config(). Update port
configuration - un-mask it before enable the bits.
Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
Diffstat (limited to 'cpu/mcf547x_8x')
-rw-r--r-- | cpu/mcf547x_8x/cpu_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu/mcf547x_8x/cpu_init.c b/cpu/mcf547x_8x/cpu_init.c index 96a3132..60c9126 100644 --- a/cpu/mcf547x_8x/cpu_init.c +++ b/cpu/mcf547x_8x/cpu_init.c @@ -113,13 +113,13 @@ int cpu_init_r(void) return (0); } -void uart_port_conf(void) +void uart_port_conf(int port) { volatile gpio_t *gpio = (gpio_t *) MMAP_GPIO; volatile u8 *pscsicr = (u8 *) (CONFIG_SYS_UART_BASE + 0x40); /* Setup Ports: */ - switch (CONFIG_SYS_UART_PORT) { + switch (port) { case 0: gpio->par_psc0 = (GPIO_PAR_PSC0_TXD0 | GPIO_PAR_PSC0_RXD0); break; |