static void __init c2k_setup_arch(void) { struct device_node *np; phys_addr_t paddr; const unsigned int *reg; /* * ioremap mpp and gpp registers in case they are later * needed by c2k_reset_board(). */ np = of_find_compatible_node(NULL, NULL, "marvell,mv64360-mpp"); reg = of_get_property(np, "reg", NULL); paddr = of_translate_address(np, reg); of_node_put(np); mv64x60_mpp_reg_base = ioremap(paddr, reg[1]); np = of_find_compatible_node(NULL, NULL, "marvell,mv64360-gpp"); reg = of_get_property(np, "reg", NULL); paddr = of_translate_address(np, reg); of_node_put(np); mv64x60_gpp_reg_base = ioremap(paddr, reg[1]); #ifdef CONFIG_PCI mv64x60_pci_init(); #endif }
static void __init prpmc2800_setup_arch(void) { struct device_node *np; phys_addr_t paddr; const unsigned int *reg; /* */ np = of_find_compatible_node(NULL, NULL, "marvell,mv64360-mpp"); reg = of_get_property(np, "reg", NULL); paddr = of_translate_address(np, reg); of_node_put(np); mv64x60_mpp_reg_base = ioremap(paddr, reg[1]); np = of_find_compatible_node(NULL, NULL, "marvell,mv64360-gpp"); reg = of_get_property(np, "reg", NULL); paddr = of_translate_address(np, reg); of_node_put(np); mv64x60_gpp_reg_base = ioremap(paddr, reg[1]); #ifdef CONFIG_PCI mv64x60_pci_init(); #endif printk("Motorola %s\n", prpmc2800_platform_name); }