static void at91sam9g45_initialize(void) { /* Register the processor-specific clocks */ at91sam9g45_register_clocks(); /* Register GPIO subsystem */ at91_add_rm9200_gpio(0, AT91SAM9G45_BASE_PIOA); at91_add_rm9200_gpio(1, AT91SAM9G45_BASE_PIOB); at91_add_rm9200_gpio(2, AT91SAM9G45_BASE_PIOC); at91_add_rm9200_gpio(3, AT91SAM9G45_BASE_PIOD); at91_add_rm9200_gpio(4, AT91SAM9G45_BASE_PIOE); at91_add_pit(AT91SAM9G45_BASE_PIT); at91_add_sam9_smc(DEVICE_ID_SINGLE, AT91SAM9G45_BASE_SMC, 0x200); restart_handler_register_fn(at91sam9g45_restart); }
static int imx28_init(void) { u32 reg; /* * The default setting for the WDT is to do a POR. If the SoC is only * powered via battery, then a WDT reset powers the chip down instead * of resetting it. Use a software reset only. */ reg = readl(IMX_CCM_BASE + HW_CLKCTRL_RESET) | HW_CLKCTRL_WDOG_POR_DISABLE; writel(reg, IMX_CCM_BASE + HW_CLKCTRL_RESET); restart_handler_register_fn(imx28_restart_soc); return 0; }
static int kirkwood_init_soc(struct device_node *root, void *context) { unsigned long phys_base, phys_size; if (!of_machine_is_compatible("marvell,kirkwood")) return 0; restart_handler_register_fn(kirkwood_restart_soc); barebox_set_model("Marvell Kirkwood"); barebox_set_hostname("kirkwood"); kirkwood_memory_find(&phys_base, &phys_size); mvebu_set_memory(phys_base, phys_size); mvebu_mbus_init(); return 0; }
static int restart_register_feature(void) { restart_handler_register_fn(rockchip_restart_soc); return 0; }
static int restart_register_feature(void) { restart_handler_register_fn(longhorn_restart_soc); return 0; }
static int restart_register_feature(void) { restart_handler_register_fn(samsung_restart_soc); return 0; }
static int restart_register_feature(void) { restart_handler_register_fn(ep92xx_restart_soc); return 0; }
static int restart_register_feature(void) { restart_handler_register_fn(openrisc_restart_cpu, NULL, RESET_SCOPE_CPU); }
static int ar231x_reset_init(void) { restart_handler_register_fn(ar2312x_restart_soc); return platform_driver_register(&ar231x_reset_driver); }