sparc: Update LEON serial drivers to use readl/writel macros
authorFrancois Retief <fgretief@spaceteq.co.za>
Wed, 28 Oct 2015 08:35:12 +0000 (10:35 +0200)
committerFrancois Retief <fgretief@spaceteq.co.za>
Fri, 13 Nov 2015 08:23:32 +0000 (10:23 +0200)
commita50adb7b4d86b924789dbe437ae92006d2f654f8
treef2ea8c19a9c1e41f6b54562862b8674aacef7793
parentc33759aebdb390ba20fa40a97e9d6f3cd19371f6
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>
arch/sparc/cpu/leon2/serial.c
arch/sparc/cpu/leon3/prom.c
arch/sparc/cpu/leon3/serial.c
arch/sparc/include/asm/global_data.h
arch/sparc/include/asm/io.h
include/configs/gr_cpci_ax2000.h
include/configs/gr_ep2s60.h
include/configs/gr_xc3s_1500.h
include/configs/grsim.h
include/configs/grsim_leon2.h