common.c (e36087998a3b01f3c6c93fa9465e40103f427315) common.c (bbcf071969b20f356877c8067986be0a2dcaa2aa)
1/*
2 * This file contains common code that is intended to be used across
3 * boards so that it's not replicated.
4 *
5 * Copyright (C) 2011 Xilinx
6 *
7 * This software is licensed under the terms of the GNU General Public
8 * License version 2, as published by the Free Software Foundation, and

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

93 revision >>= ZYNQ_DEVCFG_PS_VERSION_SHIFT;
94 revision &= ZYNQ_DEVCFG_PS_VERSION_MASK;
95
96 iounmap(zynq_devcfg_base);
97
98 return revision;
99}
100
1/*
2 * This file contains common code that is intended to be used across
3 * boards so that it's not replicated.
4 *
5 * Copyright (C) 2011 Xilinx
6 *
7 * This software is licensed under the terms of the GNU General Public
8 * License version 2, as published by the Free Software Foundation, and

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

93 revision >>= ZYNQ_DEVCFG_PS_VERSION_SHIFT;
94 revision &= ZYNQ_DEVCFG_PS_VERSION_MASK;
95
96 iounmap(zynq_devcfg_base);
97
98 return revision;
99}
100
101static void __init zynq_init_late(void)
102{
103 zynq_core_pm_init();
104 zynq_pm_late_init();
105}
106
107/**
108 * zynq_init_machine - System specific initialization, intended to be
109 * called from board specific initialization.
110 */
111static void __init zynq_init_machine(void)
112{
101/**
102 * zynq_init_machine - System specific initialization, intended to be
103 * called from board specific initialization.
104 */
105static void __init zynq_init_machine(void)
106{
113 struct platform_device_info devinfo = { .name = "cpufreq-cpu0", };
107 struct platform_device_info devinfo = { .name = "cpufreq-dt", };
114 struct soc_device_attribute *soc_dev_attr;
115 struct soc_device *soc_dev;
116 struct device *parent = NULL;
117
118 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL);
119 if (!soc_dev_attr)
120 goto out;
121

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

199
200static const char * const zynq_dt_match[] = {
201 "xlnx,zynq-7000",
202 NULL
203};
204
205DT_MACHINE_START(XILINX_EP107, "Xilinx Zynq Platform")
206 /* 64KB way size, 8-way associativity, parity disabled */
108 struct soc_device_attribute *soc_dev_attr;
109 struct soc_device *soc_dev;
110 struct device *parent = NULL;
111
112 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL);
113 if (!soc_dev_attr)
114 goto out;
115

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

193
194static const char * const zynq_dt_match[] = {
195 "xlnx,zynq-7000",
196 NULL
197};
198
199DT_MACHINE_START(XILINX_EP107, "Xilinx Zynq Platform")
200 /* 64KB way size, 8-way associativity, parity disabled */
207 .l2c_aux_val = 0x00000000,
208 .l2c_aux_mask = 0xffffffff,
201 .l2c_aux_val = 0x02000000,
202 .l2c_aux_mask = 0xf0ffffff,
209 .smp = smp_ops(zynq_smp_ops),
210 .map_io = zynq_map_io,
211 .init_irq = zynq_irq_init,
212 .init_machine = zynq_init_machine,
203 .smp = smp_ops(zynq_smp_ops),
204 .map_io = zynq_map_io,
205 .init_irq = zynq_irq_init,
206 .init_machine = zynq_init_machine,
213 .init_late = zynq_init_late,
214 .init_time = zynq_timer_init,
215 .dt_compat = zynq_dt_match,
216 .reserve = zynq_memory_init,
217 .restart = zynq_system_reset,
218MACHINE_END
207 .init_time = zynq_timer_init,
208 .dt_compat = zynq_dt_match,
209 .reserve = zynq_memory_init,
210 .restart = zynq_system_reset,
211MACHINE_END