Commit 92a1babf75e90b45026ef0b0e83a6be0343fb70a
1 parent
94ba26f2bc
Exists in
smarc_8mq_lf_v2020.04
and in
22 other branches
arm: Clean up MACH_TYPE_xxx usage after re-sync of mach-types
With the latest mach-types values we have many instances where we no longer need to define a value and a few cases where the name (but not value) have changed slightly. Signed-off-by: Tom Rini <trini@konsulko.com>
Showing 45 changed files with 12 additions and 103 deletions Side-by-side Diff
- board/Marvell/gplugd/gplugd.c
- board/Seagate/nas220/nas220.c
- board/gumstix/duovero/duovero.c
- include/configs/am335x_evm.h
- include/configs/am335x_igep0033.h
- include/configs/apx4devkit.h
- include/configs/baltos.h
- include/configs/bav335x.h
- include/configs/beaver.h
- include/configs/calimain.h
- include/configs/cm_t335.h
- include/configs/dalmore.h
- include/configs/devkit3250.h
- include/configs/dns325.h
- include/configs/draco.h
- include/configs/dreamplug.h
- include/configs/duovero.h
- include/configs/eco5pk.h
- include/configs/ethernut5.h
- include/configs/exynos5250-common.h
- include/configs/flea3.h
- include/configs/gplugd.h
- include/configs/h2200.h
- include/configs/km/km_arm.h
- include/configs/lacie_kw.h
- include/configs/m28evk.h
- include/configs/mcx.h
- include/configs/meesc.h
- include/configs/mt_ventoux.h
- include/configs/mx6slevk.h
- include/configs/nas220.h
- include/configs/pcm051.h
- include/configs/pepper.h
- include/configs/pm9261.h
- include/configs/pm9263.h
- include/configs/pm9g45.h
- include/configs/pogo_e02.h
- include/configs/pxm2.h
- include/configs/rut.h
- include/configs/sc_sps_1.h
- include/configs/tao3530.h
- include/configs/trats.h
- include/configs/twister.h
- include/configs/wandboard.h
- include/configs/woodburn_common.h
board/Marvell/gplugd/gplugd.c
... | ... | @@ -76,7 +76,7 @@ |
76 | 76 | (struct armd1apb2_registers *)ARMD1_APBC2_BASE; |
77 | 77 | |
78 | 78 | /* arch number of Board */ |
79 | - gd->bd->bi_arch_number = MACH_TYPE_SHEEVAD; | |
79 | + gd->bd->bi_arch_number = MACH_TYPE_GPLUGD; | |
80 | 80 | /* adress of boot parameters */ |
81 | 81 | gd->bd->bi_boot_params = armd1_sdram_base(0) + 0x100; |
82 | 82 | /* Assert PHY_RST# */ |
board/Seagate/nas220/nas220.c
board/gumstix/duovero/duovero.c
include/configs/am335x_evm.h
... | ... | @@ -26,8 +26,7 @@ |
26 | 26 | |
27 | 27 | #define CONFIG_SYS_BOOTM_LEN (16 << 20) |
28 | 28 | |
29 | -#define MACH_TYPE_TIAM335EVM 3589 /* Until the next sync */ | |
30 | -#define CONFIG_MACH_TYPE MACH_TYPE_TIAM335EVM | |
29 | +#define CONFIG_MACH_TYPE MACH_TYPE_AM335XEVM | |
31 | 30 | |
32 | 31 | /* Clock Defines */ |
33 | 32 | #define V_OSCK 24000000 /* Clock output from T2 */ |
include/configs/am335x_igep0033.h
include/configs/apx4devkit.h
include/configs/baltos.h
... | ... | @@ -19,8 +19,7 @@ |
19 | 19 | #include <linux/sizes.h> |
20 | 20 | #include <configs/ti_am335x_common.h> |
21 | 21 | |
22 | -#define MACH_TYPE_TIAM335EVM 3589 /* Until the next sync */ | |
23 | -#define CONFIG_MACH_TYPE MACH_TYPE_TIAM335EVM | |
22 | +#define CONFIG_MACH_TYPE MACH_TYPE_AM335XEVM | |
24 | 23 | |
25 | 24 | /* Clock Defines */ |
26 | 25 | #define V_OSCK 24000000 /* Clock output from T2 */ |
include/configs/bav335x.h
... | ... | @@ -29,8 +29,7 @@ |
29 | 29 | |
30 | 30 | #define CONFIG_SYS_BOOTM_LEN (16 << 20) |
31 | 31 | |
32 | -#define MACH_TYPE_TIAM335EVM 3589 /* Until the next sync */ | |
33 | -#define CONFIG_MACH_TYPE MACH_TYPE_TIAM335EVM | |
32 | +#define CONFIG_MACH_TYPE MACH_TYPE_AM335XEVM | |
34 | 33 | |
35 | 34 | /* Clock Defines */ |
36 | 35 | #define V_OSCK 24000000 /* Clock output from T2 */ |
include/configs/beaver.h
include/configs/calimain.h
include/configs/cm_t335.h
include/configs/dalmore.h
... | ... | @@ -32,8 +32,6 @@ |
32 | 32 | #define CONFIG_SYS_MMC_ENV_PART 2 |
33 | 33 | #define CONFIG_ENV_OFFSET (-CONFIG_ENV_SIZE) |
34 | 34 | |
35 | -#define MACH_TYPE_DALMORE 4304 /* not yet in mach-types.h */ | |
36 | - | |
37 | 35 | /* SPI */ |
38 | 36 | #define CONFIG_SF_DEFAULT_MODE SPI_MODE_0 |
39 | 37 | #define CONFIG_SF_DEFAULT_SPEED 24000000 |
include/configs/devkit3250.h
... | ... | @@ -13,10 +13,6 @@ |
13 | 13 | #include <linux/sizes.h> |
14 | 14 | #include <asm/arch/cpu.h> |
15 | 15 | |
16 | -/* | |
17 | - * Define DevKit3250 machine type by hand until it lands in mach-types | |
18 | - */ | |
19 | -#define MACH_TYPE_DEVKIT3250 3697 | |
20 | 16 | #define CONFIG_MACH_TYPE MACH_TYPE_DEVKIT3250 |
21 | 17 | |
22 | 18 | #define CONFIG_SYS_ICACHE_OFF |
include/configs/dns325.h
include/configs/draco.h
include/configs/dreamplug.h
... | ... | @@ -13,19 +13,6 @@ |
13 | 13 | #define _CONFIG_DREAMPLUG_H |
14 | 14 | |
15 | 15 | /* |
16 | - * FIXME: This belongs in mach-types.h. However, we only pull mach-types | |
17 | - * from Linus' kernel.org tree. This hasn't been updated primarily due to | |
18 | - * the recent arch/arm reshuffling. So, in the meantime, we'll place it | |
19 | - * here. | |
20 | - */ | |
21 | -#include <asm/mach-types.h> | |
22 | -#ifdef MACH_TYPE_DREAMPLUG | |
23 | -#error "MACH_TYPE_DREAMPLUG has been defined properly, please remove this." | |
24 | -#else | |
25 | -#define MACH_TYPE_DREAMPLUG 3550 | |
26 | -#endif | |
27 | - | |
28 | -/* | |
29 | 16 | * High Level Configuration Options (easy to change) |
30 | 17 | */ |
31 | 18 | #define CONFIG_SHEEVA_88SV131 1 /* CPU Core subversion */ |
include/configs/duovero.h
... | ... | @@ -16,8 +16,7 @@ |
16 | 16 | * High Level Configuration Options |
17 | 17 | */ |
18 | 18 | #define CONFIG_DUOVERO |
19 | -#define MACH_TYPE_OMAP4_DUOVERO 4097 /* Until the next sync */ | |
20 | -#define CONFIG_MACH_TYPE MACH_TYPE_OMAP4_DUOVERO | |
19 | +#define CONFIG_MACH_TYPE MACH_TYPE_DUOVERO | |
21 | 20 | |
22 | 21 | #include <configs/ti_omap4_common.h> |
23 | 22 |
include/configs/eco5pk.h
include/configs/ethernut5.h
include/configs/exynos5250-common.h
... | ... | @@ -15,8 +15,6 @@ |
15 | 15 | #define CONFIG_SYS_SDRAM_BASE 0x40000000 |
16 | 16 | #define CONFIG_SYS_TEXT_BASE 0x43E00000 |
17 | 17 | |
18 | -/* MACH_TYPE_SMDK5250 macro will be removed once added to mach-types */ | |
19 | -#define MACH_TYPE_SMDK5250 3774 | |
20 | 18 | #define CONFIG_MACH_TYPE MACH_TYPE_SMDK5250 |
21 | 19 | |
22 | 20 | #define CONFIG_SPL_MAX_FOOTPRINT (14 * 1024) |
include/configs/flea3.h
... | ... | @@ -20,11 +20,6 @@ |
20 | 20 | |
21 | 21 | #define CONFIG_SYS_DCACHE_OFF |
22 | 22 | |
23 | -/* Only in case the value is not present in mach-types.h */ | |
24 | -#ifndef MACH_TYPE_FLEA3 | |
25 | -#define MACH_TYPE_FLEA3 3668 | |
26 | -#endif | |
27 | - | |
28 | 23 | #define CONFIG_MACH_TYPE MACH_TYPE_FLEA3 |
29 | 24 | |
30 | 25 | /* Set TEXT at the beginning of the NOR flash */ |
include/configs/gplugd.h
... | ... | @@ -16,22 +16,12 @@ |
16 | 16 | #define __CONFIG_GPLUGD_H |
17 | 17 | |
18 | 18 | /* |
19 | - * FIXME: fix for error caused due to recent update to mach-types.h | |
20 | - */ | |
21 | -#include <asm/mach-types.h> | |
22 | -#ifdef MACH_TYPE_SHEEVAD | |
23 | -#error "MACH_TYPE_SHEEVAD has been defined properly, please remove this." | |
24 | -#else | |
25 | -#define MACH_TYPE_SHEEVAD 2625 | |
26 | -#endif | |
27 | - | |
28 | -/* | |
29 | 19 | * High Level Configuration Options |
30 | 20 | */ |
31 | 21 | #define CONFIG_SHEEVA_88SV331xV5 1 /* CPU Core subversion */ |
32 | 22 | #define CONFIG_ARMADA100 1 /* SOC Family Name */ |
33 | 23 | #define CONFIG_ARMADA168 1 /* SOC Used on this Board */ |
34 | -#define CONFIG_MACH_TYPE MACH_TYPE_SHEEVAD /* Machine type */ | |
24 | +#define CONFIG_MACH_TYPE MACH_TYPE_GPLUGD /* Machine type */ | |
35 | 25 | #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */ |
36 | 26 | |
37 | 27 | #define CONFIG_SYS_TEXT_BASE 0x00f00000 |
include/configs/h2200.h
include/configs/km/km_arm.h
include/configs/lacie_kw.h
... | ... | @@ -15,10 +15,8 @@ |
15 | 15 | #elif defined(CONFIG_NETSPACE_V2) |
16 | 16 | #define CONFIG_MACH_TYPE MACH_TYPE_NETSPACE_V2 |
17 | 17 | #elif defined(CONFIG_NETSPACE_LITE_V2) |
18 | -#define MACH_TYPE_NETSPACE_LITE_V2 2983 /* missing in mach-types.h */ | |
19 | 18 | #define CONFIG_MACH_TYPE MACH_TYPE_NETSPACE_LITE_V2 |
20 | 19 | #elif defined(CONFIG_NETSPACE_MINI_V2) |
21 | -#define MACH_TYPE_NETSPACE_MINI_V2 2831 /* missing in mach-types.h */ | |
22 | 20 | #define CONFIG_MACH_TYPE MACH_TYPE_NETSPACE_MINI_V2 |
23 | 21 | #elif defined(CONFIG_NETSPACE_MAX_V2) |
24 | 22 | #define CONFIG_MACH_TYPE MACH_TYPE_NETSPACE_MAX_V2 |
include/configs/m28evk.h
include/configs/mcx.h
include/configs/meesc.h
... | ... | @@ -29,14 +29,6 @@ |
29 | 29 | */ |
30 | 30 | #define CONFIG_SYS_TEXT_BASE 0x21F00000 |
31 | 31 | |
32 | -/* | |
33 | - * since a number of boards are not being listed in linux | |
34 | - * arch/arm/tools/mach-types any more, the mach-types have to be | |
35 | - * defined here | |
36 | - */ | |
37 | -#define MACH_TYPE_MEESC 2165 | |
38 | -#define MACH_TYPE_ETHERCAN2 2407 | |
39 | - | |
40 | 32 | /* ARM asynchronous clock */ |
41 | 33 | #define CONFIG_SYS_AT91_SLOW_CLOCK 32768 /* 32.768 kHz crystal */ |
42 | 34 | #define CONFIG_SYS_AT91_MAIN_CLOCK 16000000/* 16.0 MHz crystal */ |
include/configs/mt_ventoux.h
include/configs/mx6slevk.h
include/configs/nas220.h
... | ... | @@ -13,10 +13,9 @@ |
13 | 13 | #define _CONFIG_NAS220_H |
14 | 14 | |
15 | 15 | /* |
16 | - * Machine type definition and ID | |
16 | + * Machine type ID | |
17 | 17 | */ |
18 | -#define MACH_TYPE_NAS220 MACH_TYPE_RD88F6192_NAS | |
19 | -#define CONFIG_MACH_TYPE MACH_TYPE_NAS220 | |
18 | +#define CONFIG_MACH_TYPE MACH_TYPE_RD88F6192_NAS | |
20 | 19 | |
21 | 20 | /* |
22 | 21 | * High Level Configuration Options (easy to change) |
include/configs/pcm051.h
include/configs/pepper.h
include/configs/pm9261.h
include/configs/pm9263.h
include/configs/pm9g45.h
include/configs/pogo_e02.h
include/configs/pxm2.h
include/configs/rut.h
include/configs/sc_sps_1.h
include/configs/tao3530.h
include/configs/trats.h
... | ... | @@ -40,10 +40,6 @@ |
40 | 40 | #define CONFIG_SERIAL2 |
41 | 41 | #define CONFIG_BAUDRATE 115200 |
42 | 42 | |
43 | -/* Console configuration */ | |
44 | - | |
45 | -/* MACH_TYPE_TRATS macro will be removed once added to mach-types */ | |
46 | -#define MACH_TYPE_TRATS 3928 | |
47 | 43 | #define CONFIG_MACH_TYPE MACH_TYPE_TRATS |
48 | 44 | |
49 | 45 | #define CONFIG_BOOTARGS "Please use defined boot" |
include/configs/twister.h
include/configs/wandboard.h
include/configs/woodburn_common.h
... | ... | @@ -20,11 +20,6 @@ |
20 | 20 | |
21 | 21 | #define CONFIG_SYS_DCACHE_OFF |
22 | 22 | |
23 | -/* Only in case the value is not present in mach-types.h */ | |
24 | -#ifndef MACH_TYPE_FLEA3 | |
25 | -#define MACH_TYPE_FLEA3 3668 | |
26 | -#endif | |
27 | - | |
28 | 23 | #define CONFIG_MACH_TYPE MACH_TYPE_FLEA3 |
29 | 24 | |
30 | 25 | /* This is required to setup the ESDC controller */ |