PageRenderTime 13ms CodeModel.GetById 5ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

/arch/arm/mach-nuc93x/dev.c

https://github.com/AICP/kernel_asus_grouper
C | 42 lines | 20 code | 8 blank | 14 comment | 0 complexity | febb3e96083f45f5729ab726294070b4 MD5 | raw file
 1/*
 2 * linux/arch/arm/mach-nuc93x/dev.c
 3 *
 4 * Copyright (C) 2009 Nuvoton corporation.
 5 *
 6 * Wan ZongShun <mcuos.com@gmail.com>
 7 *
 8 * This program is free software; you can redistribute it and/or
 9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation;version 2 of the License.
11 *
12 */
13
14#include <linux/kernel.h>
15#include <linux/types.h>
16#include <linux/interrupt.h>
17#include <linux/list.h>
18#include <linux/timer.h>
19#include <linux/init.h>
20#include <linux/platform_device.h>
21
22#include <asm/mach/arch.h>
23#include <asm/mach/map.h>
24#include <asm/mach/irq.h>
25#include <asm/mach-types.h>
26
27#include "cpu.h"
28
29/*Here should be your evb resourse,such as LCD*/
30
31static struct platform_device *nuc93x_public_dev[] __initdata = {
32	&nuc93x_serial_device,
33};
34
35/* Provide adding specific CPU platform devices API */
36
37void __init nuc93x_board_init(struct platform_device **device, int size)
38{
39	platform_add_devices(device, size);
40	platform_add_devices(nuc93x_public_dev, ARRAY_SIZE(nuc93x_public_dev));
41}
42