Commit 41702bac01c585cc11fa5dd1f38dea1e5a7c642d
Committed by
Simon Glass
1 parent
aada6276c6
Exists in
v2017.01-smarct4x
and in
37 other branches
x86: Rename coreboot-serial to x86-serial
Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
Showing 7 changed files with 43 additions and 43 deletions Side-by-side Diff
arch/x86/dts/coreboot.dtsi
drivers/serial/Makefile
... | ... | @@ -43,7 +43,7 @@ |
43 | 43 | obj-$(CONFIG_TEGRA_SERIAL) += serial_tegra.o |
44 | 44 | obj-$(CONFIG_UNIPHIER_SERIAL) += serial_uniphier.o |
45 | 45 | obj-$(CONFIG_OMAP_SERIAL) += serial_omap.o |
46 | -obj-$(CONFIG_COREBOOT_SERIAL) += serial_coreboot.o | |
46 | +obj-$(CONFIG_X86_SERIAL) += serial_x86.o | |
47 | 47 | |
48 | 48 | ifndef CONFIG_SPL_BUILD |
49 | 49 | obj-$(CONFIG_USB_TTY) += usbtty.o |
drivers/serial/serial_coreboot.c
1 | -/* | |
2 | - * Copyright (c) 2014 Google, Inc | |
3 | - * | |
4 | - * SPDX-License-Identifier: GPL-2.0+ | |
5 | - */ | |
6 | - | |
7 | -#include <common.h> | |
8 | -#include <dm.h> | |
9 | -#include <ns16550.h> | |
10 | -#include <serial.h> | |
11 | - | |
12 | -static const struct udevice_id coreboot_serial_ids[] = { | |
13 | - { .compatible = "coreboot-uart" }, | |
14 | - { } | |
15 | -}; | |
16 | - | |
17 | -static int coreboot_serial_ofdata_to_platdata(struct udevice *dev) | |
18 | -{ | |
19 | - struct ns16550_platdata *plat = dev_get_platdata(dev); | |
20 | - int ret; | |
21 | - | |
22 | - ret = ns16550_serial_ofdata_to_platdata(dev); | |
23 | - if (ret) | |
24 | - return ret; | |
25 | - plat->clock = 1843200; | |
26 | - | |
27 | - return 0; | |
28 | -} | |
29 | -U_BOOT_DRIVER(serial_ns16550) = { | |
30 | - .name = "serial_coreboot", | |
31 | - .id = UCLASS_SERIAL, | |
32 | - .of_match = coreboot_serial_ids, | |
33 | - .ofdata_to_platdata = coreboot_serial_ofdata_to_platdata, | |
34 | - .platdata_auto_alloc_size = sizeof(struct ns16550_platdata), | |
35 | - .priv_auto_alloc_size = sizeof(struct NS16550), | |
36 | - .probe = ns16550_serial_probe, | |
37 | - .ops = &ns16550_serial_ops, | |
38 | -}; |
drivers/serial/serial_x86.c
1 | +/* | |
2 | + * Copyright (c) 2014 Google, Inc | |
3 | + * | |
4 | + * SPDX-License-Identifier: GPL-2.0+ | |
5 | + */ | |
6 | + | |
7 | +#include <common.h> | |
8 | +#include <dm.h> | |
9 | +#include <ns16550.h> | |
10 | +#include <serial.h> | |
11 | + | |
12 | +static const struct udevice_id x86_serial_ids[] = { | |
13 | + { .compatible = "x86-uart" }, | |
14 | + { } | |
15 | +}; | |
16 | + | |
17 | +static int x86_serial_ofdata_to_platdata(struct udevice *dev) | |
18 | +{ | |
19 | + struct ns16550_platdata *plat = dev_get_platdata(dev); | |
20 | + int ret; | |
21 | + | |
22 | + ret = ns16550_serial_ofdata_to_platdata(dev); | |
23 | + if (ret) | |
24 | + return ret; | |
25 | + plat->clock = 1843200; | |
26 | + | |
27 | + return 0; | |
28 | +} | |
29 | +U_BOOT_DRIVER(serial_ns16550) = { | |
30 | + .name = "serial_x86", | |
31 | + .id = UCLASS_SERIAL, | |
32 | + .of_match = x86_serial_ids, | |
33 | + .ofdata_to_platdata = x86_serial_ofdata_to_platdata, | |
34 | + .platdata_auto_alloc_size = sizeof(struct ns16550_platdata), | |
35 | + .priv_auto_alloc_size = sizeof(struct NS16550), | |
36 | + .probe = ns16550_serial_probe, | |
37 | + .ops = &ns16550_serial_ops, | |
38 | +}; |
include/configs/chromebook_link.h
include/configs/coreboot.h
include/configs/crownbay.h