summaryrefslogtreecommitdiff
path: root/drivers/serial
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-05-13 07:13:03 -0400
committerTom Rini <trini@konsulko.com>2019-05-13 07:13:03 -0400
commitd2d8f73da4b648ad21b1afb481f0bcd035ebe029 (patch)
tree9f42385dcb5d164577b972664fcf63b557a50503 /drivers/serial
parent592254b9b8bde7c1844d956fe3ba3dd78f5df054 (diff)
parent1b898ffc040b5977a07af755b8ba3aa151914800 (diff)
Merge branch 'master' of git://git.denx.de/u-boot-socfpga
- A10 FPGA programming support, Gen5 livetree conversion
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/altera_uart.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/serial/altera_uart.c b/drivers/serial/altera_uart.c
index 67d47199aa..436cf2331d 100644
--- a/drivers/serial/altera_uart.c
+++ b/drivers/serial/altera_uart.c
@@ -10,8 +10,6 @@
#include <serial.h>
#include <asm/io.h>
-DECLARE_GLOBAL_DATA_PTR;
-
/* status register */
#define ALTERA_UART_TMT BIT(5) /* tx empty */
#define ALTERA_UART_TRDY BIT(6) /* tx ready */
@@ -91,8 +89,7 @@ static int altera_uart_ofdata_to_platdata(struct udevice *dev)
plat->regs = map_physmem(devfdt_get_addr(dev),
sizeof(struct altera_uart_regs),
MAP_NOCACHE);
- plat->uartclk = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev),
- "clock-frequency", 0);
+ plat->uartclk = dev_read_u32_default(dev, "clock-frequency", 0);
return 0;
}