void __init plat_mem_setup(void) { set_io_port_base(SNI_PORT_BASE); // ioport_resource.end = sni_io_resource.end; /* * Setup (E)ISA I/O memory access stuff */ isa_slot_offset = 0xb0000000; #ifdef CONFIG_EISA EISA_bus = 1; #endif switch (sni_brd_type) { case SNI_BRD_10: case SNI_BRD_10NEW: case SNI_BRD_TOWER_OASIC: case SNI_BRD_MINITOWER: sni_a20r_init(); break; case SNI_BRD_PCI_TOWER: case SNI_BRD_PCI_TOWER_CPLUS: sni_pcit_init(); break; case SNI_BRD_RM200: sni_rm200_init(); break; case SNI_BRD_PCI_MTOWER: case SNI_BRD_PCI_DESKTOP: case SNI_BRD_PCI_MTOWER_CPLUS: sni_pcimt_init(); break; } _machine_restart = sni_machine_restart; _machine_halt = sni_machine_halt; pm_power_off = sni_machine_power_off; sni_display_setup(); }
void __init plat_mem_setup(void) { int cputype; set_io_port_base(SNI_PORT_BASE); // ioport_resource.end = sni_io_resource.end; /* * Setup (E)ISA I/O memory access stuff */ #ifdef CONFIG_EISA EISA_bus = 1; #endif sni_brd_type = *(unsigned char *)SNI_IDPROM_BRDTYPE; cputype = *(unsigned char *)SNI_IDPROM_CPUTYPE; switch (sni_brd_type) { case SNI_BRD_TOWER_OASIC: switch (cputype) { case SNI_CPU_M8030: system_type = "RM400-330"; break; case SNI_CPU_M8031: system_type = "RM400-430"; break; case SNI_CPU_M8037: system_type = "RM400-530"; break; case SNI_CPU_M8034: system_type = "RM400-730"; break; default: system_type = "RM400-xxx"; break; } break; case SNI_BRD_MINITOWER: switch (cputype) { case SNI_CPU_M8021: case SNI_CPU_M8043: system_type = "RM400-120"; break; case SNI_CPU_M8040: system_type = "RM400-220"; break; case SNI_CPU_M8053: system_type = "RM400-225"; break; case SNI_CPU_M8050: system_type = "RM400-420"; break; default: system_type = "RM400-xxx"; break; } break; case SNI_BRD_PCI_TOWER: system_type = "RM400-Cxx"; break; case SNI_BRD_RM200: system_type = "RM200-xxx"; break; case SNI_BRD_PCI_MTOWER: system_type = "RM300-Cxx"; break; case SNI_BRD_PCI_DESKTOP: switch (read_c0_prid() & 0xff00) { case PRID_IMP_R4600: case PRID_IMP_R4700: system_type = "RM200-C20"; break; case PRID_IMP_R5000: system_type = "RM200-C40"; break; default: system_type = "RM200-Cxx"; break; } break; case SNI_BRD_PCI_TOWER_CPLUS: system_type = "RM400-Exx"; break; case SNI_BRD_PCI_MTOWER_CPLUS: system_type = "RM300-Exx"; break; } pr_debug("Found SNI brdtype %02x name %s\n", sni_brd_type, system_type); #ifdef DEBUG sni_idprom_dump(); #endif switch (sni_brd_type) { case SNI_BRD_10: case SNI_BRD_10NEW: case SNI_BRD_TOWER_OASIC: case SNI_BRD_MINITOWER: sni_a20r_init(); break; case SNI_BRD_PCI_TOWER: case SNI_BRD_PCI_TOWER_CPLUS: sni_pcit_init(); break; case SNI_BRD_RM200: sni_rm200_init(); break; case SNI_BRD_PCI_MTOWER: case SNI_BRD_PCI_DESKTOP: case SNI_BRD_PCI_MTOWER_CPLUS: sni_pcimt_init(); break; } _machine_restart = sni_machine_restart; pm_power_off = sni_machine_power_off; sni_display_setup(); sni_console_setup(); }