| Ralf Baechle | 0711962 | 2005-09-03 15:56:11 -0700 | [diff] [blame] | 1 | #include <linux/init.h> |
| Ralf Baechle | d865bea | 2007-10-11 23:46:10 +0100 | [diff] [blame] | 2 | |
| 3 | #include <asm/i8253.h> | ||||
| Ralf Baechle | 0711962 | 2005-09-03 15:56:11 -0700 | [diff] [blame] | 4 | #include <asm/io.h> |
| 5 | #include <asm/time.h> | ||||
| 6 | |||||
| Thiemo Seufer | c583122 | 2006-05-15 18:59:34 +0100 | [diff] [blame] | 7 | extern void qemu_reboot_setup(void); |
| 8 | |||||
| Ralf Baechle | 0711962 | 2005-09-03 15:56:11 -0700 | [diff] [blame] | 9 | #define QEMU_PORT_BASE 0xb4000000 |
| 10 | |||||
| Ralf Baechle | fd0197d | 2005-08-15 11:24:34 +0000 | [diff] [blame] | 11 | const char *get_system_type(void) |
| 12 | { | ||||
| 13 | return "Qemu"; | ||||
| 14 | } | ||||
| 15 | |||||
| Ralf Baechle | d865bea | 2007-10-11 23:46:10 +0100 | [diff] [blame] | 16 | void __init plat_time_init(void) |
| Ralf Baechle | 0711962 | 2005-09-03 15:56:11 -0700 | [diff] [blame] | 17 | { |
| Ralf Baechle | d865bea | 2007-10-11 23:46:10 +0100 | [diff] [blame] | 18 | setup_pit_timer(); |
| Ralf Baechle | 0711962 | 2005-09-03 15:56:11 -0700 | [diff] [blame] | 19 | } |
| 20 | |||||
| Ralf Baechle | 2925aba | 2006-06-18 01:32:22 +0100 | [diff] [blame] | 21 | void __init plat_mem_setup(void) |
| Ralf Baechle | 0711962 | 2005-09-03 15:56:11 -0700 | [diff] [blame] | 22 | { |
| 23 | set_io_port_base(QEMU_PORT_BASE); | ||||
| Thiemo Seufer | c583122 | 2006-05-15 18:59:34 +0100 | [diff] [blame] | 24 | qemu_reboot_setup(); |
| Ralf Baechle | 0711962 | 2005-09-03 15:56:11 -0700 | [diff] [blame] | 25 | } |