summaryrefslogtreecommitdiff
path: root/tizen/src/hw/maru_board.c
blob: a45d1251eaa96e93b3e87993951f0cb1d05efbf1 (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/*
 * TIZEN base board
 *
 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
 *
 * Contact:
 * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
 * SeokYeon Hwang <syeon.hwang@samsung.com>
 * SangJin Kim <sangjin3.kim@samsung.com>
 * KiTae Kim <kt920.kim@samsung.com>
 * JinHyung Jo <jinhyung.jo@samsung.com>
 * SungMin Ha <sungmin82.ha@samsung.com>
 * MunKyu Im <munkyu.im@samsung.com>
 * JiHye Kim <jihye1128.kim@samsung.com>
 * GiWoong Kim <giwoong.kim@samsung.com>
 * DongKyun Yun
 * DoHyung Hong
 * Hyunjun Son
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 *
 * Contributors:
 * - S-Core Co., Ltd
 *
 * x86 board from pc_piix.c...
 * add some TIZEN-speciaized device...
 */

#include "hw/boards.h"
#include "hw/i386/pc.h"

#include "emulator_common.h"
#include "maru_pm.h"

/* maru specialized device init */
static void maru_device_init(void)
{
    // do nothing for now...
}

extern void maru_pc_init_pci(MachineState *args);
static void maru_x86_board_init(MachineState *args)
{
    maru_pc_init_pci(args);

    maru_device_init();
}

static QEMUMachine maru_x86_machine = {
    PC_DEFAULT_MACHINE_OPTIONS,
    .name = "maru-x86-machine",
    .alias = "maru-x86-machine",
    .desc = "Maru Board (x86)",
    .init = maru_x86_board_init,
    .hot_add_cpu = pc_hot_add_cpu,
    .no_parallel = 1,
    .no_floppy = 1,
    .no_cdrom = 1,
    .no_sdcard = 1,
    .default_machine_opts = "firmware=bios-256k.bin",
    .default_boot_order = "c",
};

static void maru_machine_init(void)
{
    qemu_register_pc_machine(&maru_x86_machine);
}

machine_init(maru_machine_init);