pxa320.c (9a64e8e0ace51b309fdcff4b4754b3649250382a) pxa320.c (a1c0a6adbc705a9a760416796ce9cb3349fd476f)
1/*
2 * linux/arch/arm/mach-pxa/pxa320.c
3 *
4 * Code specific to PXA320
5 *
6 * Copyright (C) 2007 Marvell Internation Ltd.
7 *
8 * 2007-08-21: eric miao <eric.miao@marvell.com>

--- 8 unchanged lines hidden (view full) ---

17#include <linux/kernel.h>
18#include <linux/platform_device.h>
19#include <linux/io.h>
20
21#include <mach/pxa320.h>
22
23#include "generic.h"
24#include "devices.h"
1/*
2 * linux/arch/arm/mach-pxa/pxa320.c
3 *
4 * Code specific to PXA320
5 *
6 * Copyright (C) 2007 Marvell Internation Ltd.
7 *
8 * 2007-08-21: eric miao <eric.miao@marvell.com>

--- 8 unchanged lines hidden (view full) ---

17#include <linux/kernel.h>
18#include <linux/platform_device.h>
19#include <linux/io.h>
20
21#include <mach/pxa320.h>
22
23#include "generic.h"
24#include "devices.h"
25#include "clock.h"
26
27static struct mfp_addr_map pxa320_mfp_addr_map[] __initdata = {
28
29 MFP_ADDR_X(GPIO0, GPIO4, 0x0124),
30 MFP_ADDR_X(GPIO5, GPIO9, 0x028C),
31 MFP_ADDR(GPIO10, 0x0458),
32 MFP_ADDR_X(GPIO11, GPIO26, 0x02A0),
33 MFP_ADDR_X(GPIO27, GPIO48, 0x0400),

--- 39 unchanged lines hidden (view full) ---

73 MFP_ADDR(DF_IO6, 0x027C),
74 MFP_ADDR(DF_IO14, 0x0280),
75 MFP_ADDR(DF_IO7, 0x0284),
76 MFP_ADDR(DF_IO15, 0x0288),
77
78 MFP_ADDR_END,
79};
80
25
26static struct mfp_addr_map pxa320_mfp_addr_map[] __initdata = {
27
28 MFP_ADDR_X(GPIO0, GPIO4, 0x0124),
29 MFP_ADDR_X(GPIO5, GPIO9, 0x028C),
30 MFP_ADDR(GPIO10, 0x0458),
31 MFP_ADDR_X(GPIO11, GPIO26, 0x02A0),
32 MFP_ADDR_X(GPIO27, GPIO48, 0x0400),

--- 39 unchanged lines hidden (view full) ---

72 MFP_ADDR(DF_IO6, 0x027C),
73 MFP_ADDR(DF_IO14, 0x0280),
74 MFP_ADDR(DF_IO7, 0x0284),
75 MFP_ADDR(DF_IO15, 0x0288),
76
77 MFP_ADDR_END,
78};
79
81static DEFINE_PXA3_CKEN(pxa320_nand, NAND, 104000000, 0);
82static DEFINE_PXA3_CKEN(gcu, PXA320_GCU, 0, 0);
83
84static struct clk_lookup pxa320_clkregs[] = {
85 INIT_CLKREG(&clk_pxa320_nand, "pxa3xx-nand", NULL),
86 INIT_CLKREG(&clk_gcu, "pxa3xx-gcu", NULL),
87};
88
89static int __init pxa320_init(void)
90{
91 if (cpu_is_pxa320()) {
92 mfp_init_base(io_p2v(MFPR_BASE));
93 mfp_init_addr(pxa320_mfp_addr_map);
80static int __init pxa320_init(void)
81{
82 if (cpu_is_pxa320()) {
83 mfp_init_base(io_p2v(MFPR_BASE));
84 mfp_init_addr(pxa320_mfp_addr_map);
94 clkdev_add_table(ARRAY_AND_SIZE(pxa320_clkregs));
95 }
96
97 return 0;
98}
99
100core_initcall(pxa320_init);
85 }
86
87 return 0;
88}
89
90core_initcall(pxa320_init);