summaryrefslogtreecommitdiff
path: root/arch/sparc/include/asm/global_data.h
diff options
context:
space:
mode:
authorFrancois Retief <fgretief@spaceteq.co.za>2015-10-28 10:35:12 +0200
committerFrancois Retief <fgretief@spaceteq.co.za>2015-11-13 10:23:32 +0200
commita50adb7b4d86b924789dbe437ae92006d2f654f8 (patch)
treef2ea8c19a9c1e41f6b54562862b8674aacef7793 /arch/sparc/include/asm/global_data.h
parentc33759aebdb390ba20fa40a97e9d6f3cd19371f6 (diff)
downloadu-boot-imx-a50adb7b4d86b924789dbe437ae92006d2f654f8.zip
u-boot-imx-a50adb7b4d86b924789dbe437ae92006d2f654f8.tar.gz
u-boot-imx-a50adb7b4d86b924789dbe437ae92006d2f654f8.tar.bz2
sparc: Update LEON serial drivers to use readl/writel macros
Update the LEON2/3 serial driver to make use of the readl and writel macros as well as the WATCHDOG_RESET() macro. Add readl/writel and friends to the asm/io.h file. Introduce the gd->arch.uart variable to store register address. Lastly, remove baudrate scaler macro variables from board config. It is now calculated in the serial driver using the global data variable. Signed-off-by: Francois Retief <fgretief@spaceteq.co.za>
Diffstat (limited to 'arch/sparc/include/asm/global_data.h')
-rw-r--r--arch/sparc/include/asm/global_data.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/global_data.h b/arch/sparc/include/asm/global_data.h
index 667e7d6..0680a56 100644
--- a/arch/sparc/include/asm/global_data.h
+++ b/arch/sparc/include/asm/global_data.h
@@ -15,6 +15,7 @@
/* Architecture-specific global data */
struct arch_global_data {
+ void *uart;
};
#include <asm-generic/global_data.h>