Files
u-boot/include/configs
Marek Vasut be23774ed1 ARM: imx: imx27: Introduce and use UART_BASE_ADDR(n)
Introduce helper macro UART_BASE_ADDR(n), which returns Nth UART base
address. Convert all board configurations to this new macro. This is the
first step toward switching CONFIG_MXC_UART_BASE to Kconfig. This is a
clean up, no functional change.

The new macro contains compile-time test to verify N is in suitable
range. The test works such that it multiplies constant N by constant
double-negation of size of a non-empty structure, i.e. it multiplies
constant N by constant 1 in each successful compilation case.

The non-empty structure may contain C11 _Static_assert(), make use of
this and place the kernel variant of static assert in there, so that
it performs the compile-time check for N in the correct range. Note
that it is not possible to directly use static_assert in compound
statements, hence this convoluted construct.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <festevam@denx.de>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
2022-05-20 09:03:01 +02:00
..
2022-04-21 15:18:17 +02:00
2022-04-21 23:00:26 +02:00
2022-01-21 14:01:34 -05:00
2022-04-01 10:28:47 -04:00
2022-03-18 12:48:17 -04:00
2022-04-21 23:00:26 +02:00
2022-04-01 10:28:46 -04:00
2022-05-11 09:22:24 -04:00
2022-03-25 12:01:15 +00:00
2022-03-18 18:12:03 +08:00
2021-12-27 16:20:18 -05:00
2022-03-25 12:01:15 +00:00
2021-09-04 12:26:02 -04:00
2022-04-21 15:18:17 +02:00
2022-04-01 10:28:47 -04:00
2022-04-21 23:00:26 +02:00
2022-03-25 12:01:15 +00:00
2022-04-21 23:00:26 +02:00
2022-04-21 23:00:26 +02:00
2021-11-05 11:23:29 -04:00
2022-02-09 09:16:47 -05:00
2022-04-18 11:25:13 +08:00
2021-09-07 16:22:30 -04:00
2021-09-07 16:22:30 -04:00
2022-03-28 20:16:56 +02:00
2022-04-21 15:18:17 +02:00
2022-04-21 23:00:26 +02:00
2022-04-21 15:18:17 +02:00
2022-04-21 15:18:17 +02:00
2022-04-21 15:18:17 +02:00
2022-03-03 16:51:20 -05:00
2022-03-03 16:51:20 -05:00
2022-03-18 12:48:17 -04:00
2021-11-05 11:23:29 -04:00
2022-04-21 23:00:26 +02:00
2021-11-05 11:23:29 -04:00
2022-04-21 23:00:26 +02:00
2022-04-21 23:00:26 +02:00
2021-12-27 16:20:18 -05:00
2022-04-01 10:28:46 -04:00
2022-04-01 10:28:46 -04:00
2022-04-08 09:05:20 -04:00
2022-04-01 10:28:47 -04:00
2022-03-03 16:51:19 -05:00
2021-09-07 16:22:30 -04:00
2021-12-27 16:20:18 -05:00
2022-04-21 23:00:26 +02:00
2022-04-21 15:27:17 -04:00
2022-03-25 12:01:15 +00:00
2021-12-05 09:26:26 -07:00
2022-04-21 23:00:26 +02:00
2022-03-25 12:01:15 +00:00
2022-04-21 23:00:26 +02:00
2022-03-28 20:16:56 +02:00
2022-03-03 16:51:20 -05:00
2022-04-21 23:00:26 +02:00