diff options
author | Tom Rini <trini@konsulko.com> | 2021-08-30 16:16:32 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-09-08 02:17:32 +0300 |
commit | 5f588f831b7459ea910aaf75f4ddd2522987b0e6 (patch) | |
tree | ba4e04647da735f6ac5ddc547a26578d8e99855c /board/Synology | |
parent | 87e8d38a3977ee284e1bbaad03f08d652ca1c7ec (diff) | |
download | u-boot-5f588f831b7459ea910aaf75f4ddd2522987b0e6.tar.xz |
arm: Finish migration of CONFIG_MACH_TYPE
As this is only useful when booting with ATAGs, which are now largely
disabled, remove this value for the remaining platforms. We have a few
places in the code that had been testing for MACH_TYPE as a sort of
internal logic. Update those to use different but still correct CONFIG
symbols.
Cc: Phil Sutter <phil@nwl.cc>
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/Synology')
-rw-r--r-- | board/Synology/common/legacy.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/board/Synology/common/legacy.c b/board/Synology/common/legacy.c index 3c89e92ae7..06f964f53a 100644 --- a/board/Synology/common/legacy.c +++ b/board/Synology/common/legacy.c @@ -15,14 +15,15 @@ static unsigned int syno_board_id(void) { +#ifdef CONFIG_MACH_TYPE switch (CONFIG_MACH_TYPE) { case 527: return SYNO_DS109_ID; case 3036: return SYNO_AXP_4BAY_2BAY; - default: - return 0; } +#endif + return 0; } static unsigned int usb_port_modes(void) |