summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2019-05-23 17:39:36 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-05-27 10:07:00 +0200
commitdc5ec8845241eca769d24670bdf5025b0495e44b (patch)
treeecbb84055024b584f2f8ad56bfce41c41b694ef7 /arch/arm/boards
parent9a307e8da54d34e328d7face138bd096e99bb746 (diff)
downloadbarebox-dc5ec8845241eca769d24670bdf5025b0495e44b.tar.gz
barebox-dc5ec8845241eca769d24670bdf5025b0495e44b.tar.xz
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>
Diffstat (limited to 'arch/arm/boards')
-rw-r--r--arch/arm/boards/at91sam9x5ek/lowlevel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/boards/at91sam9x5ek/lowlevel.c b/arch/arm/boards/at91sam9x5ek/lowlevel.c
index 9aa0e8ba9b..50119108c9 100644
--- a/arch/arm/boards/at91sam9x5ek/lowlevel.c
+++ b/arch/arm/boards/at91sam9x5ek/lowlevel.c
@@ -1,6 +1,7 @@
#include <common.h>
#include <linux/sizes.h>
#include <mach/at91sam9_ddrsdr.h>
+#include <mach/hardware.h>
#include <asm/barebox-arm-head.h>
#include <asm/barebox-arm.h>
#include <io.h>