OMAP3: Various: Update serial platdata to update reg_offset to 0
PATCH 1/1 OMAP3: Various: Update serial platdata to update reg_offset to 0
With commit: d9a3bec682f9 "dm: ns16550: Add support for reg-offset property" reg_offset is added to the struct ns16550_platdata to be
dt compatible with Linux kernel driver. A variety of OMAP3 boards are broken as the serial platdata is missing offsets. By explicitly naming the entry, this should also help 'future-proof' if more entries get added but are not needed for OMAP3. Tested on the Logic PD Torpedo + Wireless.
I only changed a handful of devices that used the same syntax as the Logic board. Appologies if I missed one or stepped on toes. Thanks to Derald Woods and Alexander Graf.
Signed-off-by Adam Ford <[email protected]>
--- board/isee/igep00x0/igep00x0.c | 7 ++++--- board/logicpd/omap3som/omap3logic.c | 7 ++++--- board/logicpd/zoom1/zoom1.c | 7 ++++--- board/overo/overo.c | 7 ++++--- board/quipos/cairo/cairo.c | 7 ++++--- board/ti/beagle/beagle.c | 7 ++++--- board/timll/devkit8000/devkit8000.c | 7 ++++--- 7 files changed, 28 insertions(+), 21 deletions(-)
board/isee/igep00x0/igep00x0.c +4 -3
@@ -34,9 +34,10 @@ static const u32 gpmc_lan_config[] = {#endif static const struct ns16550_platdata igep_serial = { -OMAP34XX_UART3 , -2 , -V_NS16550_CLK + .base =OMAP34XX_UART1 , + .reg_offset =0 , + .reg_shift =2 , + .clock =V_NS16550_CLK };U_BOOT_DEVICE (igep_uart) = {
board/logicpd/omap3som/omap3logic.c +4 -3
@@ -47,9 +47,10 @@ DECLARE_GLOBAL_DATA_PTR;*/ static const struct ns16550_platdata omap3logic_serial = { -OMAP34XX_UART1 , -2 , -V_NS16550_CLK + .base =OMAP34XX_UART1 , + .reg_offset =0 , + .reg_shift =2 , + .clock =V_NS16550_CLK };U_BOOT_DEVICE (omap3logic_uart) = {
board/logicpd/zoom1/zoom1.c +4 -3
@@ -44,9 +44,10 @@ static const u32 gpmc_lab_enet[] = { };static const struct ns16550_platdata zoom1_serial = { -OMAP34XX_UART3 , -2 , -V_NS16550_CLK + .base =OMAP34XX_UART1 , + .reg_offset =0 , + .reg_shift =2 , + .clock =V_NS16550_CLK };U_BOOT_DEVICE (zoom1_uart) = {
board/overo/overo.c +4 -3
@@ -68,9 +68,10 @@ static struct { } expansion_config = {0x0};static const struct ns16550_platdata overo_serial = { -OMAP34XX_UART3 , -2 , -V_NS16550_CLK + .base =OMAP34XX_UART1 , + .reg_offset =0 , + .reg_shift =2 , + .clock =V_NS16550_CLK };U_BOOT_DEVICE (overo_uart) = {
board/quipos/cairo/cairo.c +4 -3
@@ -91,9 +91,10 @@ void get_board_mem_timings(struct board_sdrc_timings *timings)#endif static const struct ns16550_platdata cairo_serial = { -OMAP34XX_UART2 , -2 , -V_NS16550_CLK + .base =OMAP34XX_UART1 , + .reg_offset =0 , + .reg_shift =2 , + .clock =V_NS16550_CLK };U_BOOT_DEVICE (cairo_uart) = {
board/ti/beagle/beagle.c +4 -3
@@ -73,9 +73,10 @@ static struct { } expansion_config;static const struct ns16550_platdata beagle_serial = { -OMAP34XX_UART3 , -2 , -V_NS16550_CLK + .base =OMAP34XX_UART1 , + .reg_offset =0 , + .reg_shift =2 , + .clock =V_NS16550_CLK };U_BOOT_DEVICE (beagle_uart) = {
board/timll/devkit8000/devkit8000.c +4 -3
@@ -46,9 +46,10 @@ static u32 gpmc_net_config[GPMC_MAX_REG] = { };static const struct ns16550_platdata devkit8000_serial = { -OMAP34XX_UART3 , -2 , -V_NS16550_CLK + .base =OMAP34XX_UART1 , + .reg_offset =0 , + .reg_shift =2 , + .clock =V_NS16550_CLK };U_BOOT_DEVICE (devkit8000_uart) = {
Signature · 1 line
1.9.1