aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-socfpga/socfpga.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-socfpga/socfpga.c')
-rw-r--r--arch/arm/mach-socfpga/socfpga.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/arch/arm/mach-socfpga/socfpga.c b/arch/arm/mach-socfpga/socfpga.c
index d86231e11b34..adbf38314ca8 100644
--- a/arch/arm/mach-socfpga/socfpga.c
+++ b/arch/arm/mach-socfpga/socfpga.c
@@ -98,22 +98,17 @@ static void socfpga_cyclone5_restart(enum reboot_mode mode, const char *cmd)
98 writel(temp, rst_manager_base_addr + SOCFPGA_RSTMGR_CTRL); 98 writel(temp, rst_manager_base_addr + SOCFPGA_RSTMGR_CTRL);
99} 99}
100 100
101static void __init socfpga_cyclone5_init(void)
102{
103 l2x0_of_init(0, ~0UL);
104 of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
105}
106
107static const char *altera_dt_match[] = { 101static const char *altera_dt_match[] = {
108 "altr,socfpga", 102 "altr,socfpga",
109 NULL 103 NULL
110}; 104};
111 105
112DT_MACHINE_START(SOCFPGA, "Altera SOCFPGA") 106DT_MACHINE_START(SOCFPGA, "Altera SOCFPGA")
107 .l2c_aux_val = 0,
108 .l2c_aux_mask = ~0,
113 .smp = smp_ops(socfpga_smp_ops), 109 .smp = smp_ops(socfpga_smp_ops),
114 .map_io = socfpga_map_io, 110 .map_io = socfpga_map_io,
115 .init_irq = socfpga_init_irq, 111 .init_irq = socfpga_init_irq,
116 .init_machine = socfpga_cyclone5_init,
117 .restart = socfpga_cyclone5_restart, 112 .restart = socfpga_cyclone5_restart,
118 .dt_compat = altera_dt_match, 113 .dt_compat = altera_dt_match,
119MACHINE_END 114MACHINE_END