diff options
Diffstat (limited to 'arch/mips/ar7/setup.c')
-rw-r--r-- | arch/mips/ar7/setup.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/mips/ar7/setup.c b/arch/mips/ar7/setup.c index 3a801d2cb6e5..f20b53e597c4 100644 --- a/arch/mips/ar7/setup.c +++ b/arch/mips/ar7/setup.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <asm/reboot.h> | 23 | #include <asm/reboot.h> |
24 | #include <asm/mach-ar7/ar7.h> | 24 | #include <asm/mach-ar7/ar7.h> |
25 | #include <asm/mach-ar7/prom.h> | 25 | #include <asm/mach-ar7/prom.h> |
26 | #include <asm/mach-ar7/gpio.h> | ||
26 | 27 | ||
27 | static void ar7_machine_restart(char *command) | 28 | static void ar7_machine_restart(char *command) |
28 | { | 29 | { |
@@ -49,6 +50,8 @@ static void ar7_machine_power_off(void) | |||
49 | const char *get_system_type(void) | 50 | const char *get_system_type(void) |
50 | { | 51 | { |
51 | u16 chip_id = ar7_chip_id(); | 52 | u16 chip_id = ar7_chip_id(); |
53 | u16 titan_variant_id = titan_chip_id(); | ||
54 | |||
52 | switch (chip_id) { | 55 | switch (chip_id) { |
53 | case AR7_CHIP_7100: | 56 | case AR7_CHIP_7100: |
54 | return "TI AR7 (TNETD7100)"; | 57 | return "TI AR7 (TNETD7100)"; |
@@ -56,6 +59,17 @@ const char *get_system_type(void) | |||
56 | return "TI AR7 (TNETD7200)"; | 59 | return "TI AR7 (TNETD7200)"; |
57 | case AR7_CHIP_7300: | 60 | case AR7_CHIP_7300: |
58 | return "TI AR7 (TNETD7300)"; | 61 | return "TI AR7 (TNETD7300)"; |
62 | case AR7_CHIP_TITAN: | ||
63 | switch (titan_variant_id) { | ||
64 | case TITAN_CHIP_1050: | ||
65 | return "TI AR7 (TNETV1050)"; | ||
66 | case TITAN_CHIP_1055: | ||
67 | return "TI AR7 (TNETV1055)"; | ||
68 | case TITAN_CHIP_1056: | ||
69 | return "TI AR7 (TNETV1056)"; | ||
70 | case TITAN_CHIP_1060: | ||
71 | return "TI AR7 (TNETV1060)"; | ||
72 | } | ||
59 | default: | 73 | default: |
60 | return "TI AR7 (unknown)"; | 74 | return "TI AR7 (unknown)"; |
61 | } | 75 | } |