blob: cd4977678b85a64f91df611db7fdd663e3cf3875 [file] [log] [blame]
wanzongshun35c92212009-08-21 07:07:46 +01001/*
2 * linux/arch/arm/mach-w90x900/nuc910.c
3 *
4 * Based on linux/arch/arm/plat-s3c24xx/s3c244x.c by Ben Dooks
5 *
6 * Copyright (c) 2009 Nuvoton corporation.
7 *
8 * Wan ZongShun <mcuos.com@gmail.com>
9 *
10 * NUC910 cpu support
11 *
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation;version 2 of the License.
15 *
16 */
17
18#include <linux/platform_device.h>
19#include <asm/mach/map.h>
20#include <mach/hardware.h>
21#include "cpu.h"
22#include "clock.h"
23
24/* define specific CPU platform device */
25
26static struct platform_device *nuc910_dev[] __initdata = {
27 &nuc900_device_ts,
28 &nuc900_device_rtc,
wanzongshun6a446b902010-07-18 15:15:11 +010029 &nuc900_device_lcd,
wanzongshun35c92212009-08-21 07:07:46 +010030};
31
32/* define specific CPU platform io map */
33
34static struct map_desc nuc910evb_iodesc[] __initdata = {
35 IODESC_ENT(USBEHCIHOST),
36 IODESC_ENT(USBOHCIHOST),
37 IODESC_ENT(KPI),
38 IODESC_ENT(USBDEV),
39 IODESC_ENT(ADC),
40};
41
42/*Init NUC910 evb io*/
43
44void __init nuc910_map_io(void)
45{
46 nuc900_map_io(nuc910evb_iodesc, ARRAY_SIZE(nuc910evb_iodesc));
47}
48
49/*Init NUC910 clock*/
50
51void __init nuc910_init_clocks(void)
52{
53 nuc900_init_clocks();
54}
55
56/*Init NUC910 board info*/
57
58void __init nuc910_board_init(void)
59{
60 nuc900_board_init(nuc910_dev, ARRAY_SIZE(nuc910_dev));
61}