socfpga.c (9938b04472d5c59f8bd8152a548533a8599596a2) socfpga.c (c5fb04cc96c1812eb09a3b0f3672f4a00d76730c)
1/*
2 * Copyright (C) 2012-2015 Altera Corporation
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *

--- 52 unchanged lines hidden (view full) ---

61 socfpga_sysmgr_init();
62 if (IS_ENABLED(CONFIG_EDAC_ALTERA_L2C))
63 socfpga_init_l2_ecc();
64
65 if (IS_ENABLED(CONFIG_EDAC_ALTERA_OCRAM))
66 socfpga_init_ocram_ecc();
67}
68
1/*
2 * Copyright (C) 2012-2015 Altera Corporation
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *

--- 52 unchanged lines hidden (view full) ---

61 socfpga_sysmgr_init();
62 if (IS_ENABLED(CONFIG_EDAC_ALTERA_L2C))
63 socfpga_init_l2_ecc();
64
65 if (IS_ENABLED(CONFIG_EDAC_ALTERA_OCRAM))
66 socfpga_init_ocram_ecc();
67}
68
69static void __init socfpga_arria10_init_irq(void)
70{
71 irqchip_init();
72 socfpga_sysmgr_init();
73 if (IS_ENABLED(CONFIG_EDAC_ALTERA_L2C))
74 socfpga_init_arria10_l2_ecc();
75 if (IS_ENABLED(CONFIG_EDAC_ALTERA_OCRAM))
76 socfpga_init_arria10_ocram_ecc();
77}
78
69static void socfpga_cyclone5_restart(enum reboot_mode mode, const char *cmd)
70{
71 u32 temp;
72
73 temp = readl(rst_manager_base_addr + SOCFPGA_RSTMGR_CTRL);
74
75 if (mode == REBOOT_HARD)
76 temp |= RSTMGR_CTRL_SWCOLDRSTREQ;

--- 31 unchanged lines hidden (view full) ---

108static const char *altera_a10_dt_match[] = {
109 "altr,socfpga-arria10",
110 NULL
111};
112
113DT_MACHINE_START(SOCFPGA_A10, "Altera SOCFPGA Arria10")
114 .l2c_aux_val = 0,
115 .l2c_aux_mask = ~0,
79static void socfpga_cyclone5_restart(enum reboot_mode mode, const char *cmd)
80{
81 u32 temp;
82
83 temp = readl(rst_manager_base_addr + SOCFPGA_RSTMGR_CTRL);
84
85 if (mode == REBOOT_HARD)
86 temp |= RSTMGR_CTRL_SWCOLDRSTREQ;

--- 31 unchanged lines hidden (view full) ---

118static const char *altera_a10_dt_match[] = {
119 "altr,socfpga-arria10",
120 NULL
121};
122
123DT_MACHINE_START(SOCFPGA_A10, "Altera SOCFPGA Arria10")
124 .l2c_aux_val = 0,
125 .l2c_aux_mask = ~0,
116 .init_irq = socfpga_init_irq,
126 .init_irq = socfpga_arria10_init_irq,
117 .restart = socfpga_arria10_restart,
118 .dt_compat = altera_a10_dt_match,
119MACHINE_END
127 .restart = socfpga_arria10_restart,
128 .dt_compat = altera_a10_dt_match,
129MACHINE_END