summaryrefstree
path: root/kernel/arch/arm/mach-exynos/mach-xyref5422.c
blob: 1dae1d05629fb2a3946874748df3516e544d858a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
 * SAMSUNG XYREF5422 Flattened Device Tree enabled machine
 *
 * Copyright (c) 2013 Samsung Electronics Co., Ltd.
 *             http://www.samsung.com
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
*/

#include <linux/of_platform.h>
#include <linux/of_fdt.h>
#include <linux/memblock.h>
#include <linux/io.h>
#include <linux/clocksource.h>
#include <linux/exynos_ion.h>

#include <asm/mach/arch.h>
#include <mach/regs-pmu.h>

#include <plat/cpu.h>
#include <plat/mfc.h>

#include "common.h"

static void __init xyref5422_dt_map_io(void)
{
	exynos_init_io(NULL, 0);
}

static void __init xyref5422_dt_machine_init(void)
{
	of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
}

static char const *xyref5422_dt_compat[] __initdata = {
	"samsung,exynos5422",
	NULL
};

static void __init exynos5_reserve(void)
{
	init_exynos_ion_contig_heap();
}

DT_MACHINE_START(XYREF5422, "xyref5422")
	.init_irq	= exynos5_init_irq,
	.smp		= smp_ops(exynos_smp_ops),
	.map_io		= xyref5422_dt_map_io,
	.init_machine	= xyref5422_dt_machine_init,
	.init_late	= exynos_init_late,
	.init_time	= exynos_init_time,
	.dt_compat	= xyref5422_dt_compat,
	.restart	= exynos5_restart,
	.reserve	= exynos5_reserve,
MACHINE_END