From 752aae30a791326581efafbb761c0cebaba8d3ea Mon Sep 17 00:00:00 2001 From: Marcel Ziswiler Date: Tue, 21 Oct 2014 16:50:03 +0200 Subject: Revert "dm: tegra: Enable driver model for serial" Migrating our BSPs towards mainline U-Boot I noticed it suddenly booting slower. With mainline Linux I noticed about a 1 to 2 second increase while booting downstream L4T takes 10 to 15 seconds longer! This reverts commit 858530a8c0a7ce7e573e513934804a00d6676813. Conflicts: drivers/serial/Makefile --- drivers/serial/Makefile | 1 - drivers/serial/serial_tegra.c | 38 -------------------------------------- include/configs/tegra-common.h | 9 +-------- 3 files changed, 1 insertion(+), 47 deletions(-) delete mode 100644 drivers/serial/serial_tegra.c diff --git a/drivers/serial/Makefile b/drivers/serial/Makefile index b4f299bb0e..1e4158d09b 100644 --- a/drivers/serial/Makefile +++ b/drivers/serial/Makefile @@ -38,7 +38,6 @@ obj-$(CONFIG_BFIN_SERIAL) += serial_bfin.o obj-$(CONFIG_FSL_LPUART) += serial_lpuart.o obj-$(CONFIG_MXS_AUART) += mxs_auart.o obj-$(CONFIG_ARC_SERIAL) += serial_arc.o -obj-$(CONFIG_TEGRA_SERIAL) += serial_tegra.o obj-$(CONFIG_UNIPHIER_SERIAL) += serial_uniphier.o ifndef CONFIG_SPL_BUILD diff --git a/drivers/serial/serial_tegra.c b/drivers/serial/serial_tegra.c deleted file mode 100644 index 7eb70e1de1..0000000000 --- a/drivers/serial/serial_tegra.c +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2014 Google, Inc - * - * SPDX-License-Identifier: GPL-2.0+ - */ - -#include -#include -#include -#include - -static const struct udevice_id tegra_serial_ids[] = { - { .compatible = "nvidia,tegra20-uart" }, - { } -}; - -static int tegra_serial_ofdata_to_platdata(struct udevice *dev) -{ - struct ns16550_platdata *plat = dev_get_platdata(dev); - int ret; - - ret = ns16550_serial_ofdata_to_platdata(dev); - if (ret) - return ret; - plat->clock = V_NS16550_CLK; - - return 0; -} -U_BOOT_DRIVER(serial_ns16550) = { - .name = "serial_tegra20", - .id = UCLASS_SERIAL, - .of_match = tegra_serial_ids, - .ofdata_to_platdata = tegra_serial_ofdata_to_platdata, - .platdata_auto_alloc_size = sizeof(struct ns16550_platdata), - .priv_auto_alloc_size = sizeof(struct NS16550), - .probe = ns16550_serial_probe, - .ops = &ns16550_serial_ops, -}; diff --git a/include/configs/tegra-common.h b/include/configs/tegra-common.h index fcd390772f..e5dd3e3c46 100644 --- a/include/configs/tegra-common.h +++ b/include/configs/tegra-common.h @@ -21,9 +21,6 @@ #define CONFIG_DM #define CONFIG_CMD_DM #define CONFIG_DM_GPIO -#ifndef CONFIG_SPL_BUILD -#define CONFIG_DM_SERIAL -#endif #define CONFIG_SYS_TIMER_RATE 1000000 #define CONFIG_SYS_TIMER_COUNTER NV_PA_TMRUS_BASE @@ -53,14 +50,10 @@ /* * NS16550 Configuration */ -#ifdef CONFIG_SPL_BUILD +#define CONFIG_SYS_NS16550 #define CONFIG_SYS_NS16550_SERIAL #define CONFIG_SYS_NS16550_REG_SIZE (-4) #define CONFIG_SYS_NS16550_CLK V_NS16550_CLK -#else -#define CONFIG_TEGRA_SERIAL -#endif -#define CONFIG_SYS_NS16550 /* * Common HW configuration. -- cgit v1.2.3