common.c (b59f2b4d30c187160df597bae41cabe497b6acf4) | common.c (fe08bf9f46d6ae8e08de32d29234a2c928eebf8f) |
---|---|
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 --- 77 unchanged lines hidden (view full) --- 86 * zynq_map_io - Create memory mappings needed for early I/O. 87 */ 88static void __init zynq_map_io(void) 89{ 90 debug_ll_io_init(); 91 zynq_scu_map_io(); 92} 93 | 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 --- 77 unchanged lines hidden (view full) --- 86 * zynq_map_io - Create memory mappings needed for early I/O. 87 */ 88static void __init zynq_map_io(void) 89{ 90 debug_ll_io_init(); 91 zynq_scu_map_io(); 92} 93 |
94static void zynq_system_reset(char mode, const char *cmd) | 94static void zynq_system_reset(enum reboot_mode mode, const char *cmd) |
95{ 96 zynq_slcr_system_reset(); 97} 98 99static const char * const zynq_dt_match[] = { 100 "xlnx,zynq-7000", 101 NULL 102}; 103 104DT_MACHINE_START(XILINX_EP107, "Xilinx Zynq Platform") 105 .smp = smp_ops(zynq_smp_ops), 106 .map_io = zynq_map_io, 107 .init_machine = zynq_init_machine, 108 .init_time = zynq_timer_init, 109 .dt_compat = zynq_dt_match, 110 .restart = zynq_system_reset, 111MACHINE_END | 95{ 96 zynq_slcr_system_reset(); 97} 98 99static const char * const zynq_dt_match[] = { 100 "xlnx,zynq-7000", 101 NULL 102}; 103 104DT_MACHINE_START(XILINX_EP107, "Xilinx Zynq Platform") 105 .smp = smp_ops(zynq_smp_ops), 106 .map_io = zynq_map_io, 107 .init_machine = zynq_init_machine, 108 .init_time = zynq_timer_init, 109 .dt_compat = zynq_dt_match, 110 .restart = zynq_system_reset, 111MACHINE_END |