diff options
author | Alexander Shiyan <eagle.alexander923@gmail.com> | 2022-06-28 11:04:14 +0300 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-06-30 20:55:13 +0200 |
commit | 6740aa3d3286e6b680446f8c979003ba8ccd7684 (patch) | |
tree | 8dd7f591322ae9e4dec4e07915b1c76cc21ce9a5 /arch/arm/mach-omap | |
parent | 8e3f799d622ee993a8eb9f0737e991ee1ecaecba (diff) | |
download | barebox-6740aa3d3286e6b680446f8c979003ba8ccd7684.tar.gz barebox-6740aa3d3286e6b680446f8c979003ba8ccd7684.tar.xz |
serial: ns16550: Reuse 48MHz default clock definition for non-DT OMAP boards
Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com>
Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20220628080414.28960-1-eagle.alexander923@gmail.com
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-omap')
-rw-r--r-- | arch/arm/mach-omap/omap_devices.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/arm/mach-omap/omap_devices.c b/arch/arm/mach-omap/omap_devices.c index beae59f74d..022616ba54 100644 --- a/arch/arm/mach-omap/omap_devices.c +++ b/arch/arm/mach-omap/omap_devices.c @@ -1,7 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only #include <driver.h> -#include <platform_data/serial-ns16550.h> #include <asm/armlinux.h> #include <mach/omap3-devices.h> @@ -16,15 +15,10 @@ void omap_add_sram0(resource_size_t base, resource_size_t size) add_mem_device("sram0", base, size, IORESOURCE_MEM_WRITEABLE); } -static struct NS16550_plat serial_plat = { - .clock = 48000000, /* 48MHz (APLL96/2) */ - .shift = 2, -}; - struct device_d *omap_add_uart(int id, unsigned long base) { return add_generic_device("omap-uart", id, NULL, base, 1024, - IORESOURCE_MEM | IORESOURCE_MEM_8BIT, &serial_plat); + IORESOURCE_MEM | IORESOURCE_MEM_8BIT, NULL); } #if defined(CONFIG_DRIVER_VIDEO_OMAP) |