|
@@ -29,6 +29,7 @@
|
|
void __iomem *socfpga_scu_base_addr = ((void __iomem *)(SOCFPGA_SCU_VIRT_BASE));
|
|
void __iomem *socfpga_scu_base_addr = ((void __iomem *)(SOCFPGA_SCU_VIRT_BASE));
|
|
void __iomem *sys_manager_base_addr;
|
|
void __iomem *sys_manager_base_addr;
|
|
void __iomem *rst_manager_base_addr;
|
|
void __iomem *rst_manager_base_addr;
|
|
|
|
+unsigned long cpu1start_addr;
|
|
|
|
|
|
static struct map_desc scu_io_desc __initdata = {
|
|
static struct map_desc scu_io_desc __initdata = {
|
|
.virtual = SOCFPGA_SCU_VIRT_BASE,
|
|
.virtual = SOCFPGA_SCU_VIRT_BASE,
|
|
@@ -72,6 +73,11 @@ void __init socfpga_sysmgr_init(void)
|
|
struct device_node *np;
|
|
struct device_node *np;
|
|
|
|
|
|
np = of_find_compatible_node(NULL, NULL, "altr,sys-mgr");
|
|
np = of_find_compatible_node(NULL, NULL, "altr,sys-mgr");
|
|
|
|
+
|
|
|
|
+ if (of_property_read_u32(np, "cpu1-start-addr",
|
|
|
|
+ (u32 *) &cpu1start_addr))
|
|
|
|
+ pr_err("SMP: Need cpu1-start-addr in device tree.\n");
|
|
|
|
+
|
|
sys_manager_base_addr = of_iomap(np, 0);
|
|
sys_manager_base_addr = of_iomap(np, 0);
|
|
|
|
|
|
np = of_find_compatible_node(NULL, NULL, "altr,rst-mgr");
|
|
np = of_find_compatible_node(NULL, NULL, "altr,rst-mgr");
|