summaryrefslogtreecommitdiffstats
path: root/include/configs/gr_ep2s60.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 /include/configs/gr_ep2s60.h
parentc33759aebdb390ba20fa40a97e9d6f3cd19371f6 (diff)
downloadtalos-obmc-uboot-a50adb7b4d86b924789dbe437ae92006d2f654f8.tar.gz
talos-obmc-uboot-a50adb7b4d86b924789dbe437ae92006d2f654f8.zip
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 'include/configs/gr_ep2s60.h')
-rw-r--r--include/configs/gr_ep2s60.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/configs/gr_ep2s60.h b/include/configs/gr_ep2s60.h
index 5c466f2929..005f7796fb 100644
--- a/include/configs/gr_ep2s60.h
+++ b/include/configs/gr_ep2s60.h
@@ -309,10 +309,6 @@
#define CONFIG_SYS_GRLIB_DDR2_CFG1 0x00000000
#define CONFIG_SYS_GRLIB_DDR2_CFG3 0x00000000
-/* Calculate scaler register value from default baudrate */
-#define CONFIG_SYS_GRLIB_APBUART_SCALER \
- ((((CONFIG_SYS_CLK_FREQ*10)/(CONFIG_BAUDRATE*8))-5)/10)
-
/* Identification string */
#define CONFIG_IDENT_STRING "GAISLER LEON3 EP2S60"
OpenPOWER on IntegriCloud