summaryrefslogtreecommitdiff
path: root/arch/arm/mach-nuc93x/dev.c
blob: a962ae9578d682d61010270238f463d1fd1ef8a9 (plain) (blame)
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
/*
 * linux/arch/arm/mach-nuc93x/dev.c
 *
 * Copyright (C) 2009 Nuvoton corporation.
 *
 * Wan ZongShun <mcuos.com@gmail.com>
 *
 * 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;version 2 of the License.
 *
 */

#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/interrupt.h>
#include <linux/list.h>
#include <linux/timer.h>
#include <linux/init.h>
#include <linux/platform_device.h>

#include <asm/mach/arch.h>
#include <asm/mach/map.h>
#include <asm/mach/irq.h>
#include <asm/mach-types.h>

#include "cpu.h"

/*Here should be your evb resourse,such as LCD*/

static struct platform_device *nuc93x_public_dev[] __initdata = {
	&nuc93x_serial_device,
};

/* Provide adding specific CPU platform devices API */

void __init nuc93x_board_init(struct platform_device **device, int size)
{
	platform_add_devices(device, size);
	platform_add_devices(nuc93x_public_dev, ARRAY_SIZE(nuc93x_public_dev));
}