2248ba791ec6638ed5a99e45c9eeb2c2ef464e90
[coreboot.git] / src / mainboard / rca / rm4100 / mainboard.c
1 /*
2  * This file is part of the coreboot project.
3  *
4  * Copyright (C) 2008-2010 Joseph Smith <joe@settoplinux.org>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
19  */
20
21 #include <device/device.h>
22 #include <boot/tables.h>
23 #include <arch/coreboot_tables.h>
24 #include "chip.h"
25
26 int add_mainboard_resources(struct lb_memory *mem)
27 {
28         return add_northbridge_resources(mem);
29 }
30
31 static void mainboard_init(device_t dev)
32 {
33         // TODO Switch parport LEDs again
34 }
35
36 static void mainboard_enable(device_t dev)
37 {
38         // TODO Switch parport LEDs
39         dev->ops->init = mainboard_init;
40 }
41  
42 struct chip_operations mainboard_ops = {
43         .enable_dev = mainboard_enable,
44         CHIP_NAME("RCA RM4100 Mainboard")
45 };