]> git.dujemihanovic.xyz Git - u-boot.git/commit
sunxi-common.h: remove pointless #ifdefs
authorAndre Przywara <andre.przywara@arm.com>
Sun, 23 Jan 2022 00:30:29 +0000 (00:30 +0000)
committerAndre Przywara <andre.przywara@arm.com>
Fri, 4 Feb 2022 00:09:57 +0000 (00:09 +0000)
commitf2c33699d1b029438ccaa154d03d632dd80aac11
tree3abbf201858a08834706a66556d6fae5eab59c15
parentb8cd7f439aa95df9509550c722c4e21e6b218d34
sunxi-common.h: remove pointless #ifdefs

Remove some pointless #ifdefs from this file, as there are quite too
many of them already.

Some definitions don't really hurt to have in any case, so remove the
pointless CONFIG_MMC guard around CONFIG_MMC_SUNXI_SLOT.

The BOARD_SIZE_LIMIT applies regardless of ARM64 or not (now), so remove
that guard as well. The maximum number of MMC devices does not depend on
CONFIG_ENV_IS_IN_MMC, so move that out to simplify the file.

Last but not least CONFIG_SPL_BOARD_LOAD_IMAGE serves no real purpose
anymore: it's unconditionally defined for all sunxi boards, and protects
nothing applicable outside of sunxi code anymore. Just remove it.

Reviewed-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
include/configs/sunxi-common.h