]> git.baikalelectronics.ru Git - uboot.git/commitdiff
global: Migrate CONFIG_USART_BASE to CFG
authorTom Rini <trini@konsulko.com>
Sun, 4 Dec 2022 15:14:02 +0000 (10:14 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 23 Dec 2022 15:15:12 +0000 (10:15 -0500)
Perform a simple rename of CONFIG_USART_BASE to CFG_USART_BASE

Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/serial/atmel_usart.c
include/configs/corvus.h
include/configs/sam9x60_curiosity.h
include/configs/sam9x60ek.h
include/configs/smartweb.h
include/configs/taurus.h
include/configs/vinco.h

index 90ccdf6b2945cf4b96c0551862dde7ce78a0cc87..56655427b06bdf8545002004d74347f7777af17f 100644 (file)
@@ -72,13 +72,13 @@ static void atmel_serial_activate(atmel_usart3_t *usart)
 
 static void atmel_serial_setbrg(void)
 {
-       atmel_serial_setbrg_internal((atmel_usart3_t *)CONFIG_USART_BASE,
+       atmel_serial_setbrg_internal((atmel_usart3_t *)CFG_USART_BASE,
                                     CONFIG_USART_ID, gd->baudrate);
 }
 
 static int atmel_serial_init(void)
 {
-       atmel_usart3_t *usart = (atmel_usart3_t *)CONFIG_USART_BASE;
+       atmel_usart3_t *usart = (atmel_usart3_t *)CFG_USART_BASE;
 
        atmel_serial_init_internal(usart);
        serial_setbrg();
@@ -89,7 +89,7 @@ static int atmel_serial_init(void)
 
 static void atmel_serial_putc(char c)
 {
-       atmel_usart3_t *usart = (atmel_usart3_t *)CONFIG_USART_BASE;
+       atmel_usart3_t *usart = (atmel_usart3_t *)CFG_USART_BASE;
 
        if (c == '\n')
                serial_putc('\r');
@@ -100,7 +100,7 @@ static void atmel_serial_putc(char c)
 
 static int atmel_serial_getc(void)
 {
-       atmel_usart3_t *usart = (atmel_usart3_t *)CONFIG_USART_BASE;
+       atmel_usart3_t *usart = (atmel_usart3_t *)CFG_USART_BASE;
 
        while (!(readl(&usart->csr) & USART3_BIT(RXRDY)))
                 schedule();
@@ -109,7 +109,7 @@ static int atmel_serial_getc(void)
 
 static int atmel_serial_tstc(void)
 {
-       atmel_usart3_t *usart = (atmel_usart3_t *)CONFIG_USART_BASE;
+       atmel_usart3_t *usart = (atmel_usart3_t *)CFG_USART_BASE;
        return (readl(&usart->csr) & USART3_BIT(RXRDY)) != 0;
 }
 
index 8a61086ecc154f756088905656968818d673d925..c9eb75d93088f3069b6404acc72a7f101ba1b3a6 100644 (file)
@@ -28,7 +28,7 @@
 #define CFG_SYS_AT91_MAIN_CLOCK      12000000 /* from 12 MHz crystal */
 
 /* serial console */
-#define CONFIG_USART_BASE              ATMEL_BASE_DBGU
+#define CFG_USART_BASE         ATMEL_BASE_DBGU
 #define CONFIG_USART_ID                        ATMEL_ID_SYS
 
 /* SDRAM */
index f44ce909b918d60bd9837d4de01149a13112a6cc..204020d5ee74dd6c117f9257b0133c498d63dde8 100644 (file)
@@ -13,7 +13,7 @@
 #define CFG_SYS_AT91_SLOW_CLOCK        32768
 #define CFG_SYS_AT91_MAIN_CLOCK        24000000        /* 24 MHz crystal */
 
-#define CONFIG_USART_BASE   ATMEL_BASE_DBGU
+#define CFG_USART_BASE   ATMEL_BASE_DBGU
 #define CONFIG_USART_ID     0 /* ignored in arm */
 
 /* SDRAM */
index 27b39ebf41742df6a23ce9c584f22b6f3eae7bde..800b98ff98afcfff81f9639cb710e55b845369a1 100644 (file)
@@ -14,7 +14,7 @@
 #define CFG_SYS_AT91_SLOW_CLOCK        32768
 #define CFG_SYS_AT91_MAIN_CLOCK        24000000        /* 24 MHz crystal */
 
-#define CONFIG_USART_BASE   ATMEL_BASE_DBGU
+#define CFG_USART_BASE   ATMEL_BASE_DBGU
 #define CONFIG_USART_ID     0 /* ignored in arm */
 
 /*
index 762f61470b15d933b9fc2617a6bfa7ace324c2de..f9a5aa9e32d0b8750d47d0622c1fa91ddac92de9 100644 (file)
@@ -61,7 +61,7 @@
 #define CFG_SYS_NAND_READY_PIN AT91_PIN_PC13
 
 /* serial console */
-#define CONFIG_USART_BASE              ATMEL_BASE_DBGU
+#define CFG_USART_BASE         ATMEL_BASE_DBGU
 #define CONFIG_USART_ID                        ATMEL_ID_SYS
 
 /* DFU class support */
index 855218a8901eb2be246afb0398b07a37fc3d9313..88870d6fdf694e18099119f13bd835848aec9309 100644 (file)
@@ -34,7 +34,7 @@
 
 /* Misc CPU related */
 
-#define CONFIG_USART_BASE              ATMEL_BASE_DBGU
+#define CFG_USART_BASE         ATMEL_BASE_DBGU
 #define CONFIG_USART_ID                        ATMEL_ID_SYS
 
 /*
index 0698ae1d1c6e5d953756a7cc3def326c06690201..3b4032301f6e262bb6458eb183abcdfaef0442f1 100644 (file)
@@ -17,7 +17,7 @@
 /* The value in the common file is too far away for the VInCo platform */
 
 /* serial console */
-#define CONFIG_USART_BASE              0xfc00c000
+#define CFG_USART_BASE         0xfc00c000
 #define CONFIG_USART_ID                        30
 
 /* Timer */