diff options
author | Andre Przywara <andre.przywara@arm.com> | 2020-01-28 00:46:41 +0000 |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2020-03-18 18:11:41 +0530 |
commit | 56f51f3875144822415757f1887d2254b6b8e937 (patch) | |
tree | 76544732b4e32d0f88d4ae5f0fb7a9656dff63ff /include/dwc_ahsata.h | |
parent | 2775e08a2b73e53b26c23c67301ecfdae182b899 (diff) | |
download | u-boot-56f51f3875144822415757f1887d2254b6b8e937.tar.gz u-boot-56f51f3875144822415757f1887d2254b6b8e937.tar.xz u-boot-56f51f3875144822415757f1887d2254b6b8e937.zip |
sunxi: SPL SPI: Introduce is_sun6i_gen_spi()
So far we were using the CONFIG_SUNXI_GEN_SUN6I symbol to select between
the two SPI controller generations used on Allwinner SoCs. This is a
convenience symbol to roughly differentiate between "older" and "newer"
generation of SoCs.
The H6 SoCs is the newest SoC so far, but is sufficiently different to
not define this symbol. However it is using a SPI controller compatible
to the "new gen" SoCs.
To prepare for H6 support, we replace the check for this single symbol
with an explicit function, which can later be extended.
For now we just return CONFIG_SUNXI_GEN_SUN6I in there, so this does not
create a functional change.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Diffstat (limited to 'include/dwc_ahsata.h')
0 files changed, 0 insertions, 0 deletions