Commit 68c48f7c authored by Paul Cercueil's avatar Paul Cercueil Committed by Thomas Bogendoerfer

MIPS: ingenic: Use enum instead of macros for Ingenic SoCs

Use an enum instead of macros to represent the various versions of the
Ingenic SoCs, and add some of the SoC versions that were previously
missing.
Signed-off-by: default avatarPaul Cercueil <paul@crapouillou.net>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
parent 92404db7
...@@ -65,12 +65,22 @@ enum loongson2ef_machine_type { ...@@ -65,12 +65,22 @@ enum loongson2ef_machine_type {
/* /*
* Valid machtype for group INGENIC * Valid machtype for group INGENIC
*/ */
#define MACH_INGENIC_JZ4730 0 /* JZ4730 SOC */ enum ingenic_machine_type {
#define MACH_INGENIC_JZ4740 1 /* JZ4740 SOC */ MACH_INGENIC_UNKNOWN,
#define MACH_INGENIC_JZ4770 2 /* JZ4770 SOC */ MACH_INGENIC_JZ4720,
#define MACH_INGENIC_JZ4780 3 /* JZ4780 SOC */ MACH_INGENIC_JZ4725,
#define MACH_INGENIC_X1000 4 /* X1000 SOC */ MACH_INGENIC_JZ4725B,
#define MACH_INGENIC_X1830 5 /* X1830 SOC */ MACH_INGENIC_JZ4730,
MACH_INGENIC_JZ4740,
MACH_INGENIC_JZ4750,
MACH_INGENIC_JZ4755,
MACH_INGENIC_JZ4760,
MACH_INGENIC_JZ4770,
MACH_INGENIC_JZ4775,
MACH_INGENIC_JZ4780,
MACH_INGENIC_X1000,
MACH_INGENIC_X1830,
};
extern char *system_type; extern char *system_type;
const char *get_system_type(void); const char *get_system_type(void);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment