diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2010-01-25 09:54:51 +0100 |
---|---|---|
committer | Francois Retief <fgretief@spaceteq.co.za> | 2015-11-13 10:23:32 +0200 |
commit | 898cc81da3dd5bfa0f77f1791f76d3512b5e4dce (patch) | |
tree | c3ebbab26c559c40e7b7a8edf4238b2c4daf5b62 /arch/sparc/cpu/leon3/serial.c | |
parent | 0070109f683657ba3f864792ae134f74282ae4e8 (diff) |
sparc: leon3: Reimplemented AMBA Plug&Play scanning routines.
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
Diffstat (limited to 'arch/sparc/cpu/leon3/serial.c')
-rw-r--r-- | arch/sparc/cpu/leon3/serial.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/sparc/cpu/leon3/serial.c b/arch/sparc/cpu/leon3/serial.c index f1dcab3377..c4a49ed369 100644 --- a/arch/sparc/cpu/leon3/serial.c +++ b/arch/sparc/cpu/leon3/serial.c @@ -14,6 +14,11 @@ DECLARE_GLOBAL_DATA_PTR; +/* Select which UART that will become u-boot console */ +#ifndef CONFIG_SYS_GRLIB_APBUART_INDEX +#define CONFIG_SYS_GRLIB_APBUART_INDEX 0 +#endif + static int leon3_serial_init(void) { ambapp_dev_apbuart *uart; @@ -21,7 +26,8 @@ static int leon3_serial_init(void) unsigned int tmp; /* find UART */ - if (ambapp_apb_first(VENDOR_GAISLER, GAISLER_APBUART, &apbdev) != 1) + if (ambapp_apb_find(&ambapp_plb, VENDOR_GAISLER, GAISLER_APBUART, + CONFIG_SYS_GRLIB_APBUART_INDEX, &apbdev) != 1) return -1; /* didn't find hardware */ /* found apbuart, let's init .. */ |