diff options
author | Eugene Konev <ejka@imfi.kspu.ru> | 2007-03-25 05:42:16 +0000 |
---|---|---|
committer | Eugene Konev <ejka@imfi.kspu.ru> | 2007-03-25 05:42:16 +0000 |
commit | d81c7f76b91ad14244f1e036f29c806d85db5809 (patch) | |
tree | 6615342c2c9af5a280d19ee6482b379de367b8ef /target/linux/ar7-2.6/files/arch/mips/ar7/setup.c | |
parent | 8c2cf394a32d42ff64605fdfb3168ce745f94b44 (diff) | |
download | upstream-d81c7f76b91ad14244f1e036f29c806d85db5809.tar.gz upstream-d81c7f76b91ad14244f1e036f29c806d85db5809.tar.bz2 upstream-d81c7f76b91ad14244f1e036f29c806d85db5809.zip |
ar7: clocks setup (prerequisite for dsl/usb) and misc cleanups.
SVN-Revision: 6693
Diffstat (limited to 'target/linux/ar7-2.6/files/arch/mips/ar7/setup.c')
-rw-r--r-- | target/linux/ar7-2.6/files/arch/mips/ar7/setup.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/target/linux/ar7-2.6/files/arch/mips/ar7/setup.c b/target/linux/ar7-2.6/files/arch/mips/ar7/setup.c index 301abe0689..fb3d20c183 100644 --- a/target/linux/ar7-2.6/files/arch/mips/ar7/setup.c +++ b/target/linux/ar7-2.6/files/arch/mips/ar7/setup.c @@ -72,13 +72,13 @@ static void ar7_machine_power_off(void) const char *get_system_type(void) { - u16 chip_id = get_chip_id(); + u16 chip_id = ar7_chip_id(); switch (chip_id) { - case 0x5: + case AR7_CHIP_7300: return "TI AR7 (TNETD7300)"; - case 0x18: + case AR7_CHIP_7100: return "TI AR7 (TNETD7100)"; - case 0x2b: + case AR7_CHIP_7200: return "TI AR7 (TNETD7200)"; default: return "TI AR7 (Unknown)"; @@ -95,6 +95,8 @@ static int __init ar7_init_console(void) * given by the bios and saves the command line. */ +extern void ar7_init_clocks(void); + void __init plat_mem_setup(void) { unsigned long io_base; @@ -110,6 +112,7 @@ void __init plat_mem_setup(void) set_io_port_base(io_base); prom_meminit(); + ar7_init_clocks(); ioport_resource.start = 0; ioport_resource.end = ~0; |