/* Initializes basic routines and structures pointers, memory size (as given by the bios and saves the command line.  */
void __init plat_mem_setup(void)
/* Initializes basic routines and structures pointers, memory size (as given by the bios and saves the command line.  */
void __init plat_mem_setup(void)
{
	unsigned long io_base;
	_machine_restart = ar7_machine_restart;
	_machine_halt = ar7_machine_halt;
	pm_power_off = ar7_machine_power_off;
	panic_timeout = 3;
	io_base = (unsigned long)ioremap(AR7_REGS_BASE, 0x10000);
	if (!io_base)
		panic("Can't remap IO base!\n");
	set_io_port_base(io_base);
	prom_meminit();
	printk(KERN_INFO "%s, ID: 0x%04x, Revision: 0x%02x\n",
					get_system_type(),
		ar7_chip_id(), ar7_chip_rev());
}