25 #include <linux/kernel.h>
30 static void __iomem *system_controller_base;
42 .rstoutn_mask_offset = 0x60,
43 .system_soft_reset_offset = 0x64,
44 .rstoutn_mask_reset_out_en = 0x1,
45 .system_soft_reset = 0x1,
49 .rstoutn_mask_offset = 0x108,
50 .system_soft_reset_offset = 0x10c,
51 .rstoutn_mask_reset_out_en = 0x4,
52 .system_soft_reset = 0x1,
55 static struct of_device_id of_system_controller_table[] = {
57 .compatible =
"marvell,orion-system-controller",
58 .data = (
void *) &orion_system_controller,
60 .compatible =
"marvell,armada-370-xp-system-controller",
61 .data = (
void *) &armada_370_xp_system_controller,
68 if (!system_controller_base) {
69 pr_err(
"Cannot restart, system-controller not available: check the device tree\n");
75 system_controller_base +
81 system_controller_base +
89 static int __init mvebu_system_controller_init(
void)
98 system_controller_base =
of_iomap(np, 0);