]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: serial: rename U_BOOT_DRIVER name to rockchip_uart
authorJohan Jonker <jbx6244@gmail.com>
Sat, 9 Apr 2022 16:55:12 +0000 (18:55 +0200)
committerKever Yang <kever.yang@rock-chips.com>
Mon, 18 Apr 2022 03:25:13 +0000 (11:25 +0800)
When a defconfig for rk3288 is compiled it gives the warning:

rockchip_rk3288_uart: Missing .compatible in
                      ./drivers/serial/serial_rockchip.c
                    : WARNING: the driver rockchip_rk3288_uart
                      was not found in the driver list

Fix by renaming U_BOOT_DRIVER name of serial_rockchip.c
to rockchip_uart. Add rk3288 serial support with
a DM_DRIVER_ALIAS define.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/serial/serial_rockchip.c

index 10e731caa18a20651ccd9e7ba1ab9aacfe554b4c..f4e9422ed91c95e965f43b043f5be82db245586d 100644 (file)
 
 struct rockchip_uart_plat {
 #if CONFIG_IS_ENABLED(OF_PLATDATA)
-       struct dtd_rockchip_rk3288_uart dtplat;
+       struct dtd_rockchip_uart dtplat;
 #endif
        struct ns16550_plat plat;
 };
 
 #if CONFIG_IS_ENABLED(OF_PLATDATA)
-struct dtd_rockchip_rk3288_uart *dtplat, s_dtplat;
+struct dtd_rockchip_uart *dtplat, s_dtplat;
 #endif
 
 static int rockchip_serial_probe(struct udevice *dev)
@@ -41,8 +41,8 @@ static int rockchip_serial_probe(struct udevice *dev)
 #endif
 }
 
-U_BOOT_DRIVER(rockchip_rk3288_uart) = {
-       .name           = "rockchip_rk3288_uart",
+U_BOOT_DRIVER(rockchip_uart) = {
+       .name           = "rockchip_uart",
        .id             = UCLASS_SERIAL,
        .priv_auto      = sizeof(struct ns16550),
        .plat_auto      = sizeof(struct rockchip_uart_plat),
@@ -50,7 +50,8 @@ U_BOOT_DRIVER(rockchip_rk3288_uart) = {
        .ops            = &ns16550_serial_ops,
        .flags          = DM_FLAG_PRE_RELOC,
 };
-DM_DRIVER_ALIAS(rockchip_rk3288_uart, rockchip_rk3066_uart)
-DM_DRIVER_ALIAS(rockchip_rk3288_uart, rockchip_rk3188_uart)
-DM_DRIVER_ALIAS(rockchip_rk3288_uart, rockchip_rk3328_uart)
-DM_DRIVER_ALIAS(rockchip_rk3288_uart, rockchip_rk3368_uart)
+DM_DRIVER_ALIAS(rockchip_uart, rockchip_rk3066_uart)
+DM_DRIVER_ALIAS(rockchip_uart, rockchip_rk3188_uart)
+DM_DRIVER_ALIAS(rockchip_uart, rockchip_rk3288_uart)
+DM_DRIVER_ALIAS(rockchip_uart, rockchip_rk3328_uart)
+DM_DRIVER_ALIAS(rockchip_uart, rockchip_rk3368_uart)