exynos4_boards.c (97c6671cf16640f997fc8c54ef456bbad125b635) exynos4_boards.c (e264d29de28c5b0be3d063307ce9fb613b427cc3)
1/*
2 * Samsung exynos4 SoC based boards emulation
3 *
4 * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
5 * Maksim Kozlov <m.kozlov@samsung.com>
6 * Evgeny Voevodin <e.voevodin@samsung.com>
7 * Igor Mitsyanko <i.mitsyanko@samsung.com>
8 *

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

139 Exynos4210State *s = exynos4_boards_init_common(machine,
140 EXYNOS4_BOARD_SMDKC210);
141
142 lan9215_init(SMDK_LAN9118_BASE_ADDR,
143 qemu_irq_invert(s->irq_table[exynos4210_get_irq(37, 1)]));
144 arm_load_kernel(ARM_CPU(first_cpu), &exynos4_board_binfo);
145}
146
1/*
2 * Samsung exynos4 SoC based boards emulation
3 *
4 * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
5 * Maksim Kozlov <m.kozlov@samsung.com>
6 * Evgeny Voevodin <e.voevodin@samsung.com>
7 * Igor Mitsyanko <i.mitsyanko@samsung.com>
8 *

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

139 Exynos4210State *s = exynos4_boards_init_common(machine,
140 EXYNOS4_BOARD_SMDKC210);
141
142 lan9215_init(SMDK_LAN9118_BASE_ADDR,
143 qemu_irq_invert(s->irq_table[exynos4210_get_irq(37, 1)]));
144 arm_load_kernel(ARM_CPU(first_cpu), &exynos4_board_binfo);
145}
146
147static QEMUMachine exynos4_machine_nuri = {
148 .name = "nuri",
149 .desc = "Samsung NURI board (Exynos4210)",
150 .init = nuri_init,
151 .max_cpus = EXYNOS4210_NCPUS,
152};
147static void exynos4_machine_nuri_machine_init(MachineClass *mc)
148{
149 mc->desc = "Samsung NURI board (Exynos4210)";
150 mc->init = nuri_init;
151 mc->max_cpus = EXYNOS4210_NCPUS;
152}
153
153
154static QEMUMachine exynos4_machine_smdkc210 = {
155 .name = "smdkc210",
156 .desc = "Samsung SMDKC210 board (Exynos4210)",
157 .init = smdkc210_init,
158 .max_cpus = EXYNOS4210_NCPUS,
159};
154DEFINE_MACHINE("nuri", exynos4_machine_nuri_machine_init)
160
155
161static void exynos4_machine_init(void)
156static void exynos4_machine_smdkc210_machine_init(MachineClass *mc)
162{
157{
163 qemu_register_machine(&exynos4_machine_nuri);
164 qemu_register_machine(&exynos4_machine_smdkc210);
158 mc->desc = "Samsung SMDKC210 board (Exynos4210)";
159 mc->init = smdkc210_init;
160 mc->max_cpus = EXYNOS4210_NCPUS;
165}
166
161}
162
167machine_init(exynos4_machine_init);
163DEFINE_MACHINE("smdkc210", exynos4_machine_smdkc210_machine_init)