static void __init nec_cmbvr4133_setup(void) { #ifdef CONFIG_ROCKHOPPER extern void disable_pcnet(void); disable_pcnet(); #endif set_io_port_base(KSEG1ADDR(0x16000000)); mips_machgroup = MACH_GROUP_NEC_VR41XX; mips_machtype = MACH_NEC_CMBVR4133; #ifdef CONFIG_PCI #ifdef CONFIG_ROCKHOPPER ali_m5229_preinit(); #endif #endif #ifdef CONFIG_ROCKHOPPER rockhopper_init_irq(); #endif #ifdef CONFIG_MTD /* we use generic physmap mapping driver and we use partitions */ physmap_configure(0x1C000000, 0x02000000, 4, NULL); physmap_set_partitions(cmbvr4133_mtd_parts, number_partitions); #endif /* 128 MB memory support */ add_memory_region(0, 0x08000000, BOOT_MEM_RAM); #ifdef CONFIG_ROCKHOPPER i8259_init(); #endif }
static void __init linkstation_setup_arch(void) { struct device_node *np; #ifdef CONFIG_MTD_PHYSMAP physmap_set_partitions(linkstation_physmap_partitions, ARRAY_SIZE(linkstation_physmap_partitions)); #endif #ifdef CONFIG_BLK_DEV_INITRD if (initrd_start) ROOT_DEV = Root_RAM0; else #endif #ifdef CONFIG_ROOT_NFS ROOT_DEV = Root_NFS; #else ROOT_DEV = Root_HDA1; #endif /* Lookup PCI host bridges */ for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;) add_bridge(np); printk(KERN_INFO "BUFFALO Network Attached Storage Series\n"); printk(KERN_INFO "(C) 2002-2005 BUFFALO INC.\n"); }
static int __init nxc2600_nor_mtd(void) { nxc2600_sm_nor_boot_flash_init(CONFIG_MTD_PHYSMAP_START); physmap_set_partitions(nxc2600_partitions, ARRAY_SIZE(nxc2600_partitions)); return 0; }
void mpc85xx_ads_mtd_setup() { /* * Support for MTD on MPC85xx ADS. Use the generic physmap driver */ physmap_configure(0xff000000, 0x1000000, 4, NULL); physmap_set_partitions(mpc85xx_ads_partitions, number_partitions); }
static int __init chestnut_setup_mtd(void) { memset(&ptbl, 0, sizeof(ptbl)); ptbl.name = "User FS"; ptbl.size = CHESTNUT_32BIT_SIZE; physmap_map.size = CHESTNUT_32BIT_SIZE; physmap_set_partitions(&ptbl, 1); return 0; }
static int __init platform_devices_setup(void) { physmap_set_partitions(markeins_parts, ARRAY_SIZE(markeins_parts)); return platform_add_devices(devices, ARRAY_SIZE(devices)); }