aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc/platforms/mpc5200.c
blob: a58db438c162380b49b363a4b65dc31a3406c48f (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
43
44
45
46
47
48
49
50
51
52
53
/*
 * arch/ppc/platforms/mpc5200.c
 *
 * OCP Definitions for the boards based on MPC5200 processor. Contains
 * definitions for every common peripherals. (Mostly all but PSCs)
 * 
 * Maintainer : Sylvain Munaut <tnt@246tNt.com>
 *
 * Copyright 2004 Sylvain Munaut <tnt@246tNt.com>
 *
 * This file is licensed under the terms of the GNU General Public License
 * version 2. This program is licensed "as is" without any warranty of any
 * kind, whether express or implied.
 */

#include <asm/ocp.h>
#include <asm/mpc52xx.h>


static struct ocp_fs_i2c_data mpc5200_i2c_def = {
        .flags  = FS_I2C_CLOCK_5200,
};


/* Here is the core_ocp struct.
 * With all the devices common to all board. Even if port multiplexing is
 * not setup for them (if the user don't want them, just don't select the
 * config option). The potentially conflicting devices (like PSCs) goes in
 * board specific file.
 */
struct ocp_def core_ocp[] = {
	{
		.vendor         = OCP_VENDOR_FREESCALE,
		.function       = OCP_FUNC_IIC,
		.index          = 0,
		.paddr          = MPC52xx_I2C1,
		.irq            = OCP_IRQ_NA,   /* MPC52xx_IRQ_I2C1 - Buggy */
		.pm             = OCP_CPM_NA,
		.additions      = &mpc5200_i2c_def,
	},
	{
		.vendor         = OCP_VENDOR_FREESCALE,
		.function       = OCP_FUNC_IIC,
		.index          = 1,
		.paddr          = MPC52xx_I2C2,
		.irq            = OCP_IRQ_NA,   /* MPC52xx_IRQ_I2C2 - Buggy */
		.pm             = OCP_CPM_NA,
		.additions      = &mpc5200_i2c_def,
	},
	{	/* Terminating entry */
		.vendor		= OCP_VENDOR_INVALID
	}
};