1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-12-30 20:57:09 +01:00
Files
u-boot-megous/include
Tom Rini 5bbf9c927a dm: ns16550: Restore how we define UART_REG
Prior to commit 9591b63531 ("Convert CONFIG_SYS_NS16550_MEM32 et al to
Kconfig") we had defined CONFIG_SYS_NS16550_REG_SIZE to -1 with
DM_SERIAL such that we would then have a size 0 character array. This
resulted in functionally no padding. The confusion on my part came from
dealing with the constraints around platforms that do not use DM_SERIAL
in SPL/TPL. After Andre Przywara reported that sunxi was broken, I've
re-read the code and comments again and thought on this harder. What we
want I believe is what this patch does now.

If DM_SERIAL is defined for this stage, regardless of
CONFIG_SYS_NS16550_REG_SIZE then we will dynamically handle reg shifts
and 'struct ns16550' needs no padding (which is functionally what
unsigned char foo[0] provides). This is the same case as NS16550_DYNAMIC
and DEBUG_UART. Expand the existing comment here slightly.

Otherwise, we will have CONFIG_SYS_NS16550_REG_SIZE set to a non-zero
value, and handle padding within the struct.

Cc: Simon Glass <sjg@chromium.org>
Cc: Sergei Antonov <saproj@gmail.com>
Cc: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Cc: Andre Przywara <andre.przywara@arm.com>
Fixes: 9591b63531 ("Convert CONFIG_SYS_NS16550_MEM32 et al to Kconfig")
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Tested-by: Andre Przywara <andre.przywara@arm.com>
Tested-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
2023-01-20 12:27:06 -05:00
..
2022-07-05 14:37:16 +02:00
2022-12-07 16:04:17 -05:00
2022-11-28 13:06:39 -05:00
2022-07-11 14:58:57 -04:00
2022-10-30 20:07:16 +01:00
2022-01-19 18:11:34 +01:00
2022-09-29 16:07:57 -04:00
2022-09-24 10:47:01 -04:00
2022-01-19 18:11:34 +01:00
2022-07-26 02:30:56 -06:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2020-05-11 10:16:49 +05:30
2021-01-15 14:36:12 -05:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-30 01:25:00 +00:00
2022-01-30 01:25:00 +00:00
2022-01-30 01:25:00 +00:00
2022-01-30 01:25:00 +00:00
2022-01-30 01:25:00 +00:00
2022-01-30 01:25:00 +00:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-04-25 10:00:04 -04:00
2022-09-29 16:07:57 -04:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-04-06 14:01:42 -04:00
2022-03-30 13:02:55 -04:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2021-01-30 14:25:42 -07:00
2022-11-02 08:42:03 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-03-15 16:19:29 -04:00
2022-04-06 14:01:42 -04:00
2022-10-31 14:47:32 -04:00
2023-01-16 18:26:50 -05:00
2023-01-11 15:02:24 -05:00
2022-01-19 18:11:34 +01:00
2022-08-04 16:18:47 -04:00
2022-12-22 10:31:49 -05:00
2022-08-31 12:16:01 -04:00
2022-10-18 09:32:53 +08:00
2023-01-20 12:27:06 -05:00
2021-07-07 19:52:22 -04:00
2022-07-26 11:29:00 +02:00
2023-01-20 12:27:06 -05:00
2021-04-10 08:04:42 -04:00
2020-10-30 10:56:11 -04:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-06-08 13:59:53 -04:00
2022-01-19 18:11:34 +01:00
2021-08-30 14:13:28 -04:00
2022-06-28 17:03:32 -04:00
2022-07-26 11:29:02 +02:00
2022-01-19 18:11:34 +01:00
2021-10-31 08:46:44 -04:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-04-28 09:26:44 -04:00
2020-04-17 12:32:36 -04:00
2022-10-30 20:07:17 +01:00
2022-08-10 13:38:30 -04:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2023-01-16 18:26:50 -05:00
2022-01-24 10:35:10 -05:00
2021-09-28 12:03:20 -04:00
2022-12-05 12:47:16 -05:00
2022-12-07 16:04:17 -05:00
2022-12-22 10:31:49 -05:00
2022-06-08 14:00:22 -04:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-10-31 11:02:44 -04:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-10-29 07:36:33 -06:00
2022-12-07 16:04:17 -05:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2021-04-12 17:44:55 -04:00
2022-01-19 18:11:34 +01:00
2020-06-14 21:07:20 +02:00
2023-01-16 18:01:10 +08:00
2022-07-08 12:20:28 -04:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2020-06-14 21:07:20 +02:00
2022-12-09 14:10:28 -05:00
2022-01-19 18:11:34 +01:00
2022-04-01 15:03:13 -04:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-09-13 12:08:40 -04:00
2022-10-16 12:23:22 +02:00
2022-01-19 18:11:34 +01:00
2022-04-06 14:03:17 -04:00
2022-09-24 10:47:01 -04:00
2022-01-19 18:11:34 +01:00
2020-08-03 22:19:54 -04:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2022-12-07 16:04:17 -05:00
2022-12-07 16:04:17 -05:00
2022-12-22 10:31:49 -05:00
2022-12-22 10:31:49 -05:00
2021-01-27 17:03:16 -05:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2023-01-16 18:26:50 -05:00
2022-01-19 18:11:34 +01:00
2022-09-18 10:26:49 +02:00
2022-01-19 18:11:34 +01:00
2021-01-15 14:36:12 -05:00