Lukasz Majewski
56c4046038
spi: Convert CONFIG_DM_SPI* to CONFIG_$(SPL_TPL_)DM_SPI*
...
This change allows more fine tuning of driver model based SPI support in
SPL and TPL. It is now possible to explicitly enable/disable the DM_SPI
support in SPL and TPL via Kconfig option.
Before this change it was necessary to use:
/* SPI Flash Configs */
#if defined(CONFIG_SPL_BUILD)
#undef CONFIG_DM_SPI
#undef CONFIG_DM_SPI_FLASH
#undef CONFIG_SPI_FLASH_MTD
#endif
in the ./include/configs/<board>.h, which is error prone and shall be
avoided when we strive to switch to Kconfig.
The goal of this patch:
Provide distinction for DM_SPI support in both U-Boot proper and SPL (TPL).
Valid use case is when U-Boot proper wants to use DM_SPI, but SPL must
still support non DM driver.
Another use case is the conversion of non DM/DTS SPI driver to support
DM/DTS. When such driver needs to work in both SPL and U-Boot proper, the
distinction is needed in Kconfig (also if SPL version of the driver
supports OF_PLATDATA).
In the end of the day one would have to support following use cases (in
single driver file - e.g. mxs_spi.c):
- U-Boot proper driver supporting DT/DTS
- U-Boot proper driver without DT/DTS support (deprecated)
- SPL driver without DT/DTS support
- SPL (and TPL) driver with DT/DTS (when the SoC has enough resources to
run full blown DT/DTS)
- SPL driver with DT/DTS and SPL_OF_PLATDATA (when one have constrained
environment with no fitImage and OF_LIBFDT support).
Some boards do require SPI support (with DM) in SPL (TPL) and some only
have DM_SPI{_FLASH} defined to allow compiling SPL.
This patch converts #ifdef CONFIG_DM_SPI* to #if CONFIG_IS_ENABLED(DM_SPI)
and provides corresponding defines in Kconfig.
Signed-off-by: Lukasz Majewski <lukma@denx.de >
Tested-by: Adam Ford <aford173@gmail.com > #da850-evm
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
[trini: Fixup a few platforms]
Signed-off-by: Tom Rini <trini@konsulko.com >
2020-06-29 13:34:43 -04:00
..
2020-05-18 21:19:23 -04:00
2020-06-25 13:24:12 -04:00
2020-05-18 18:36:55 -04:00
2020-06-26 10:29:26 -04:00
2020-05-04 12:26:11 +02:00
2020-06-19 16:25:50 -04:00
2020-06-16 17:00:12 +05:30
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2019-12-06 16:44:20 -05:00
2020-06-02 13:06:11 -04:00
2019-10-16 05:42:27 +02:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 17:33:33 -04:00
2020-05-18 18:36:55 -04:00
2020-06-12 13:14:07 -04:00
2020-05-02 12:32:28 +02:00
2020-05-18 18:36:55 -04:00
2019-07-30 10:21:11 +02:00
2020-05-18 17:33:33 -04:00
2019-07-11 14:11:19 -04:00
2019-10-15 09:56:04 -04:00
2020-05-11 10:16:49 +05:30
2020-04-17 12:32:36 -04:00
2020-05-18 21:19:23 -04:00
2019-08-02 11:19:14 -04:00
2020-05-18 17:33:33 -04:00
2019-12-15 08:48:33 +08:00
2020-05-18 21:19:23 -04:00
2020-05-18 18:36:55 -04:00
2020-02-05 19:33:46 -07:00
2020-01-07 11:13:24 -05:00
2019-12-02 18:23:08 -05:00
2020-05-18 18:36:55 -04:00
2020-05-18 17:33:33 -04:00
2020-04-22 20:41:56 +08:00
2020-05-18 17:33:33 -04:00
2019-09-03 09:31:03 +08:00
2020-05-27 14:40:09 +08:00
2020-05-09 09:30:28 +02:00
2020-02-05 19:33:46 -07:00
2020-05-11 01:30:49 +05:30
2020-01-24 23:06:48 +05:30
2020-05-18 18:36:55 -04:00
2020-05-18 21:19:23 -04:00
2020-01-24 23:06:49 +05:30
2019-10-04 12:21:23 -04:00
2019-10-31 07:22:53 -04:00
2020-05-18 21:19:23 -04:00
2020-04-28 15:57:58 -04:00
2019-12-15 08:52:29 +08:00
2020-02-05 19:33:46 -07:00
2019-11-04 12:56:37 -05:00
2020-05-18 18:36:55 -04:00
2020-05-03 15:45:49 +02:00
2020-03-16 16:42:50 -04:00
2020-05-25 11:54:53 -04:00
2019-07-29 00:21:49 +02:00
2020-02-05 19:33:46 -07:00
2020-05-18 21:19:23 -04:00
2019-10-13 23:34:43 +02:00
2019-07-29 00:32:59 +02:00
2020-05-18 21:19:23 -04:00
2020-05-29 18:13:19 +08:00
2020-05-18 21:19:23 -04:00
2020-01-16 13:16:25 +08:00
2019-10-08 13:57:44 +08:00
2019-07-29 00:21:40 +02:00
2020-05-07 09:01:42 -04:00
2020-05-21 10:00:17 +02:00
2020-02-28 19:37:14 +01:00
2020-06-03 17:19:17 +02:00
2020-01-07 18:08:22 +01:00
2020-05-09 09:30:28 +02:00
2020-05-21 10:00:17 +02:00
2020-05-18 21:19:23 -04:00
2020-04-24 10:09:59 -04:00
2020-06-26 10:29:26 -04:00
2019-09-04 11:37:19 -05:00
2020-04-24 10:10:00 -04:00
2019-12-06 16:44:18 -05:00
2019-10-31 07:22:53 -04:00
2020-05-10 13:24:48 +02:00
2020-05-18 18:36:55 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 17:33:33 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 17:33:33 -04:00
2020-05-18 17:33:33 -04:00
2019-06-14 12:39:54 +02:00
2020-04-26 14:24:08 -06:00
2020-04-24 10:10:01 -04:00
2020-05-20 13:20:19 +02:00
2020-05-18 14:53:28 -04:00
2019-06-19 12:54:57 +05:30
2019-07-30 10:21:16 +02:00
2020-05-18 17:33:33 -04:00
2020-05-18 18:36:55 -04:00
2019-07-29 00:08:49 +02:00
2020-05-18 18:36:55 -04:00
2019-06-23 14:18:48 +08:00
2020-06-15 09:45:22 +08:00
2020-05-18 17:33:33 -04:00
2020-01-14 22:54:00 +01:00
2020-04-29 11:10:54 +05:30
2020-05-04 09:12:37 +05:30
2019-11-08 11:13:38 +05:30
2020-05-18 18:36:55 -04:00
2020-05-14 09:02:12 +02:00
2020-05-11 01:30:49 +05:30
2020-05-18 17:33:33 -04:00
2019-10-08 13:51:03 +08:00
2020-01-24 23:06:49 +05:30
2020-06-12 13:14:07 -04:00
2019-11-12 23:13:54 +01:00
2020-03-16 08:03:05 +01:00
2020-05-18 21:19:18 -04:00
2020-06-12 13:14:07 -04:00
2020-04-24 10:10:00 -04:00
2019-10-14 09:31:41 +02:00
2020-05-01 13:46:21 +02:00
2020-01-20 15:38:16 +01:00
2020-06-25 13:24:12 -04:00
2020-05-18 21:19:18 -04:00
2019-10-11 17:37:19 +08:00
2019-12-02 18:25:01 -05:00
2020-02-07 22:46:32 +08:00
2019-11-07 18:39:16 -05:00
2020-05-18 18:36:55 -04:00
2019-08-11 16:43:41 -04:00
2020-04-17 12:32:36 -04:00
2020-05-18 18:36:55 -04:00
2019-12-02 18:23:11 -05:00
2020-02-05 19:33:46 -07:00
2020-02-05 19:33:46 -07:00
2020-05-07 09:01:42 -04:00
2020-05-01 13:46:22 +02:00
2019-12-09 09:47:43 -06:00
2019-10-13 21:24:47 +02:00
2020-05-18 21:19:23 -04:00
2020-05-17 21:59:53 +02:00
2020-05-18 21:19:23 -04:00
2020-05-19 14:01:47 -04:00
2020-01-25 12:04:36 -05:00
2019-07-15 10:16:49 +08:00
2020-05-10 20:55:20 +02:00
2020-06-12 13:17:23 -04:00
2020-05-01 12:35:03 +02:00
2020-02-04 01:19:13 +08:00
2019-10-06 16:02:37 +02:00
2019-12-10 08:23:10 +08:00
2020-02-05 19:33:46 -07:00
2019-12-15 11:44:11 +08:00
2020-01-07 18:08:20 +01:00
2020-05-18 17:33:33 -04:00
2020-05-18 21:19:23 -04:00
2019-07-11 10:05:15 -04:00
2020-05-15 13:53:50 -04:00
2020-01-07 18:08:19 +01:00
2020-04-20 13:35:11 +05:30
2020-06-12 13:17:23 -04:00
2020-02-05 19:33:46 -07:00
2019-10-15 08:40:03 -06:00
2019-12-15 11:44:25 +08:00
2020-06-14 21:07:20 +02:00
2020-05-18 21:19:23 -04:00
2020-05-18 17:33:33 -04:00
2020-01-07 11:13:25 -05:00
2020-02-05 19:33:46 -07:00
2020-06-14 21:07:20 +02:00
2019-12-06 16:44:19 -05:00
2019-08-22 00:10:09 +02:00
2020-05-18 17:33:33 -04:00
2020-05-18 17:33:31 -04:00
2020-05-18 21:19:23 -04:00
2019-06-27 13:50:28 +02:00
2020-05-18 18:36:55 -04:00
2020-05-15 14:47:35 -04:00
2019-12-02 18:23:08 -05:00
2020-02-05 19:33:46 -07:00
2020-06-29 13:34:43 -04:00
2020-04-29 01:44:35 +05:30
2020-06-29 13:34:43 -04:00
2020-05-18 21:19:18 -04:00
2019-12-02 18:23:06 -05:00
2020-05-18 21:19:23 -04:00
2020-01-24 23:06:49 +05:30
2020-01-21 15:56:15 +01:00
2020-05-18 18:36:55 -04:00
2020-05-18 21:19:23 -04:00
2020-02-07 22:46:35 +08:00
2019-07-10 16:52:58 -06:00
2019-07-25 13:13:31 -05:00
2020-05-18 17:33:33 -04:00
2019-07-09 07:00:25 +02:00
2020-01-17 10:15:49 -05:00
2019-10-23 20:47:12 -04:00
2020-05-15 13:53:50 -04:00
2020-04-24 16:40:09 -04:00
2019-10-08 09:11:14 +02:00
2020-01-07 11:15:24 +01:00
2019-07-30 10:20:06 +02:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-04-24 16:40:09 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 21:19:18 -04:00
2019-08-12 13:27:55 -04:00
2020-05-18 21:19:18 -04:00
2019-10-08 09:11:14 +02:00
2020-05-18 21:19:23 -04:00
2020-05-18 17:33:33 -04:00
2019-10-24 13:37:01 +02:00
2020-05-18 21:19:23 -04:00
2020-06-24 13:07:57 +02:00