s5pv210.c (adbd1ad139789ec8a5f8c7ab397d6636d6a3d277) | s5pv210.c (0a90d4d62c71e27cedebf938d7c37db543b93e78) |
---|---|
1/* 2 * Samsung's S5PC110/S5PV210 flattened device tree enabled machine. 3 * 4 * Copyright (c) 2013-2014 Samsung Electronics Co., Ltd. 5 * Mateusz Krawczuk <m.krawczuk@partner.samsung.com> 6 * Tomasz Figa <t.figa@samsung.com> 7 * 8 * This program is free software; you can redistribute it and/or modify --- 6 unchanged lines hidden (view full) --- 15 16#include <asm/mach/arch.h> 17#include <asm/mach/map.h> 18#include <asm/system_misc.h> 19 20#include <plat/map-base.h> 21#include <mach/regs-clock.h> 22 | 1/* 2 * Samsung's S5PC110/S5PV210 flattened device tree enabled machine. 3 * 4 * Copyright (c) 2013-2014 Samsung Electronics Co., Ltd. 5 * Mateusz Krawczuk <m.krawczuk@partner.samsung.com> 6 * Tomasz Figa <t.figa@samsung.com> 7 * 8 * This program is free software; you can redistribute it and/or modify --- 6 unchanged lines hidden (view full) --- 15 16#include <asm/mach/arch.h> 17#include <asm/mach/map.h> 18#include <asm/system_misc.h> 19 20#include <plat/map-base.h> 21#include <mach/regs-clock.h> 22 |
23#include "common.h" 24 |
|
23static int __init s5pv210_fdt_map_sys(unsigned long node, const char *uname, 24 int depth, void *data) 25{ 26 struct map_desc iodesc; 27 const __be32 *reg; 28 int len; 29 30 if (!of_flat_dt_is_compatible(node, "samsung,s5pv210-clock")) --- 19 unchanged lines hidden (view full) --- 50 of_scan_flat_dt(s5pv210_fdt_map_sys, NULL); 51} 52 53static void s5pv210_dt_restart(enum reboot_mode mode, const char *cmd) 54{ 55 __raw_writel(0x1, S5P_SWRESET); 56} 57 | 25static int __init s5pv210_fdt_map_sys(unsigned long node, const char *uname, 26 int depth, void *data) 27{ 28 struct map_desc iodesc; 29 const __be32 *reg; 30 int len; 31 32 if (!of_flat_dt_is_compatible(node, "samsung,s5pv210-clock")) --- 19 unchanged lines hidden (view full) --- 52 of_scan_flat_dt(s5pv210_fdt_map_sys, NULL); 53} 54 55static void s5pv210_dt_restart(enum reboot_mode mode, const char *cmd) 56{ 57 __raw_writel(0x1, S5P_SWRESET); 58} 59 |
60static void __init s5pv210_dt_init_late(void) 61{ 62 s5pv210_pm_init(); 63} 64 |
|
58static char const *s5pv210_dt_compat[] __initconst = { 59 "samsung,s5pc110", 60 "samsung,s5pv210", 61 NULL 62}; 63 64DT_MACHINE_START(S5PV210_DT, "Samsung S5PC110/S5PV210-based board") 65 .dt_compat = s5pv210_dt_compat, 66 .map_io = s5pv210_dt_map_io, 67 .restart = s5pv210_dt_restart, | 65static char const *s5pv210_dt_compat[] __initconst = { 66 "samsung,s5pc110", 67 "samsung,s5pv210", 68 NULL 69}; 70 71DT_MACHINE_START(S5PV210_DT, "Samsung S5PC110/S5PV210-based board") 72 .dt_compat = s5pv210_dt_compat, 73 .map_io = s5pv210_dt_map_io, 74 .restart = s5pv210_dt_restart, |
75 .init_late = s5pv210_dt_init_late, |
|
68MACHINE_END | 76MACHINE_END |