dm: Add a uclass for serial devices sandbox: Convert serial driver to use driver model sandbox: serial: Support a coloured console sandbox: dts: Add a serial console node dm: exynos: Mark exynos5 console as pre-reloc dm: exynos: Move serial to driver model dm: serial: Move baud rate ca...
Enable RX buffer support for the serial driver. This enables pasting longer strings, even when the RX FIFO of the UART is not big enough (e.g. 16 bytes on the normal NS16550). config SERIAL_RX_BUFFER_SIZE int "RX buffer size" depends on SERIAL_RX_BUFFER default 256 help The size of...
And if the console setup fails at this step, than we should be caught by panic_str("No serial driver found"). But... If we disable CONFIG_REQUIRE_SERIAL_CONSOLE, than we return from serial_init() with gd->cur_serial_dev pointing to the "old"(non-relocated) serial device. And if ...
UCLASS_DRIVER(sm) = { .name = "sm", .id = UCLASS_SM, }; 1 change: 1 addition & 0 deletions 1 include/dm/uclass-id.h Original file line numberDiff line numberDiff line change @@ -89,6 +89,7 @@ enum uclass_id { UCLASS_MDIO, /* MDIO bus */ UCLASS_MDIO_MUX, /* MDIO ...
UCLASS_DRIVER(soc) = { .id = UCLASS_SOC, .name = "soc", }; 1 change: 1 addition & 0 deletions 1 include/dm/uclass-id.h Original file line numberDiff line numberDiff line change @@ -97,6 +97,7 @@ enum uclass_id { UCLASS_SERIAL, /* Serial UART */ UCLASS_SIMPLE_BUS, /*...
@@ -116,7 +116,7 @@ static void serial_find_console_or_panic(void) 116 116 #endif 117 117 if (!uclass_get_device_by_seq(UCLASS_SERIAL, INDEX, &dev) || 118 118 !uclass_get_device(UCLASS_SERIAL, INDEX, &dev) || 119 - (!uclass_first_device(UCLASS_SERIAL, &dev) && dev)...
* We should do as little as possible before the serial console is @@ -210,11 +210,9 @@ int print_cpuinfo(void) /* Early chipset init required before RAM init can work */ uclass_first_device(UCLASS_NORTHBRIDGE, &dev); ret = uclass_first_device(UCLASS_LPC, &lpc); ret = uclass_fi...
char *s = env_get("serial#"); int mc = 0; int con = 0; if (board_get(&board)) puts("Could not find board information device.\n"); if (sysinfo_get(&sysinfo)) puts("Could not find sysinfo information device.\n"); board_get_int(board, BOARD_MULTICHANNEL, &mc); board_get...
UCLASS_SERIAL, /* Serial UART */ UCLASS_SIMPLE_BUS, /* Bus with child devices */ UCLASS_SMEM, /* Shared memory interface */ UCLASS_SPI, /* SPI bus */ UCLASS_SPMI, /* System Power Management Interface bus */ 0 comments on commit 25cbb47 Please sign in to comment. Footer...
if (dev->driver->priv_auto) { free(dev->priv); dev->priv = NULL; free(dev_get_priv(dev)); dev_set_priv(dev, NULL); } size = dev->uclass->uc_drv->per_device_auto; if (size) { free(dev->uclass_priv); free(dev_get_uclass_priv(dev)); dev->uclass_priv = NULL; } if ...