summaryrefslogtreecommitdiff
path: root/include/configs/grsim_leon2.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/grsim_leon2.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 'include/configs/grsim_leon2.h')
-rw-r--r--include/configs/grsim_leon2.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/configs/grsim_leon2.h b/include/configs/grsim_leon2.h
index bd2eaa9..83fd7fa 100644
--- a/include/configs/grsim_leon2.h
+++ b/include/configs/grsim_leon2.h
@@ -264,8 +264,6 @@
#define CONFIG_SYS_GRLIB_MEMCFG3 0x00136000
/*** LEON2 UART 1 ***/
-#define CONFIG_SYS_LEON2_UART1_SCALER \
- ((((CONFIG_SYS_CLK_FREQ*10)/(CONFIG_BAUDRATE*8))-5)/10)
/* UART1 Define to 1 or 0 */
#define LEON2_UART1_LOOPBACK_ENABLE 0
@@ -275,9 +273,6 @@
/*** LEON2 UART 2 ***/
-#define CONFIG_SYS_LEON2_UART2_SCALER \
- ((((CONFIG_SYS_CLK_FREQ*10)/(CONFIG_BAUDRATE*8))-5)/10)
-
/* UART2 Define to 1 or 0 */
#define LEON2_UART2_LOOPBACK_ENABLE 0
#define LEON2_UART2_FLOWCTRL_ENABLE 0