Skip to content

Commit ff0a516

Browse files
tobetterparalin
authored andcommitted
ODROID-XU4: ARM: exynos: add machine description for ODROID-XU3/4
Change-Id: Ice75e06366f107f761504512a84fb92affffb124 Signed-off-by: Dongjin Kim <[email protected]>
1 parent 6704087 commit ff0a516

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

arch/arm/mach-exynos/exynos.c

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,3 +220,31 @@ DT_MACHINE_START(EXYNOS_DT, "Samsung Exynos (Flattened Device Tree)")
220220
.dt_compat = exynos_dt_compat,
221221
.dt_fixup = exynos_dt_fixup,
222222
MACHINE_END
223+
224+
#define ODROID_MACHINE_START(name, compat) \
225+
DT_MACHINE_START(EXYNOS5422_ODROID_##name, "ODROID-"#name) \
226+
.l2c_aux_val = 0x3c400001, \
227+
.l2c_aux_mask = 0xc20fffff, \
228+
.smp = smp_ops(exynos_smp_ops), \
229+
.map_io = exynos_init_io, \
230+
.init_early = exynos_firmware_init, \
231+
.init_irq = exynos_init_irq, \
232+
.init_machine = exynos_dt_machine_init, \
233+
.init_late = exynos_init_late, \
234+
.dt_compat = compat, \
235+
.dt_fixup = exynos_dt_fixup, \
236+
MACHINE_END
237+
238+
static char const *const exynos5422_odroidxu3_dt_compat[] __initconst = {
239+
"hardkernel,odroid-xu3",
240+
"hardkernel,odroid-xu3-lite",
241+
NULL,
242+
};
243+
244+
static char const *const exynos5422_odroidxu4_dt_compat[] __initconst = {
245+
"hardkernel,odroid-xu4",
246+
NULL,
247+
};
248+
249+
ODROID_MACHINE_START(XU3, exynos5422_odroidxu3_dt_compat)
250+
ODROID_MACHINE_START(XU4, exynos5422_odroidxu4_dt_compat)

0 commit comments

Comments
 (0)