ARM: at91: debug_ll: make UART base address configurable
This is in line with other platforms such as i.MX, which allow
specifying a debug port. As we can't use port indices because
the UARTs aren't mapped consecutively, allow specifying a hex
base at configuration time.

A side effect of this patch is that sama5d4's HAVE_AT91_DBGU2
is now honored as well. Previously anything besides DBGU0
defaulted to DBGU1.

Fixes: 06a0773ee31 ("ARM: at91: add sama5d4 soc support #2")
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Tested-by: Sam Ravnborg <sam@ravnborg.org>
[afa: moved base address defaults to common/Kconfig]
Signed-off-by: Ahmad Fatoum <afa@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 9a307e8 commit dc5ec8845241eca769d24670bdf5025b0495e44b
@Ahmad Fatoum Ahmad Fatoum authored on 23 May 2019
Sascha Hauer committed on 27 May 2019
Showing 4 changed files
View
arch/arm/boards/at91sam9x5ek/lowlevel.c
View
arch/arm/mach-at91/Kconfig
View
arch/arm/mach-at91/include/mach/debug_ll.h
View
common/Kconfig