162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci#ifndef _ASM_POWERPC_KEYLARGO_H
362306a36Sopenharmony_ci#define _ASM_POWERPC_KEYLARGO_H
462306a36Sopenharmony_ci#ifdef __KERNEL__
562306a36Sopenharmony_ci/*
662306a36Sopenharmony_ci * keylargo.h: definitions for using the "KeyLargo" I/O controller chip.
762306a36Sopenharmony_ci *
862306a36Sopenharmony_ci */
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ci/* "Pangea" chipset has keylargo device-id 0x25 while core99
1162306a36Sopenharmony_ci * has device-id 0x22. The rev. of the pangea one is 0, so we
1262306a36Sopenharmony_ci * fake an artificial rev. in keylargo_rev by oring 0x100
1362306a36Sopenharmony_ci */
1462306a36Sopenharmony_ci#define KL_PANGEA_REV		0x100
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ci/* offset from base for feature control registers */
1762306a36Sopenharmony_ci#define KEYLARGO_MBCR		0x34	/* KL Only, Media bay control/status */
1862306a36Sopenharmony_ci#define KEYLARGO_FCR0		0x38
1962306a36Sopenharmony_ci#define KEYLARGO_FCR1		0x3c
2062306a36Sopenharmony_ci#define KEYLARGO_FCR2		0x40
2162306a36Sopenharmony_ci#define KEYLARGO_FCR3		0x44
2262306a36Sopenharmony_ci#define KEYLARGO_FCR4		0x48
2362306a36Sopenharmony_ci#define KEYLARGO_FCR5		0x4c	/* Pangea only */
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ci/* K2 additional FCRs */
2662306a36Sopenharmony_ci#define K2_FCR6			0x34
2762306a36Sopenharmony_ci#define K2_FCR7			0x30
2862306a36Sopenharmony_ci#define K2_FCR8			0x2c
2962306a36Sopenharmony_ci#define K2_FCR9			0x28
3062306a36Sopenharmony_ci#define K2_FCR10		0x24
3162306a36Sopenharmony_ci
3262306a36Sopenharmony_ci/* GPIO registers */
3362306a36Sopenharmony_ci#define KEYLARGO_GPIO_LEVELS0		0x50
3462306a36Sopenharmony_ci#define KEYLARGO_GPIO_LEVELS1		0x54
3562306a36Sopenharmony_ci#define KEYLARGO_GPIO_EXTINT_0		0x58
3662306a36Sopenharmony_ci#define KEYLARGO_GPIO_EXTINT_CNT	18
3762306a36Sopenharmony_ci#define KEYLARGO_GPIO_0			0x6A
3862306a36Sopenharmony_ci#define KEYLARGO_GPIO_CNT		17
3962306a36Sopenharmony_ci#define KEYLARGO_GPIO_EXTINT_DUAL_EDGE	0x80
4062306a36Sopenharmony_ci#define KEYLARGO_GPIO_OUTPUT_ENABLE	0x04
4162306a36Sopenharmony_ci#define KEYLARGO_GPIO_OUTOUT_DATA	0x01
4262306a36Sopenharmony_ci#define KEYLARGO_GPIO_INPUT_DATA	0x02
4362306a36Sopenharmony_ci
4462306a36Sopenharmony_ci/* K2 does only extint GPIOs and does 51 of them */
4562306a36Sopenharmony_ci#define K2_GPIO_EXTINT_0		0x58
4662306a36Sopenharmony_ci#define K2_GPIO_EXTINT_CNT		51
4762306a36Sopenharmony_ci
4862306a36Sopenharmony_ci/* Specific GPIO regs */
4962306a36Sopenharmony_ci
5062306a36Sopenharmony_ci#define KL_GPIO_MODEM_RESET		(KEYLARGO_GPIO_0+0x03)
5162306a36Sopenharmony_ci#define KL_GPIO_MODEM_POWER		(KEYLARGO_GPIO_0+0x02) /* Pangea */
5262306a36Sopenharmony_ci
5362306a36Sopenharmony_ci#define KL_GPIO_SOUND_POWER		(KEYLARGO_GPIO_0+0x05)
5462306a36Sopenharmony_ci
5562306a36Sopenharmony_ci/* Hrm... this one is only to be used on Pismo. It seems to also
5662306a36Sopenharmony_ci * control the timebase enable on other machines. Still to be
5762306a36Sopenharmony_ci * experimented... --BenH.
5862306a36Sopenharmony_ci */
5962306a36Sopenharmony_ci#define KL_GPIO_FW_CABLE_POWER		(KEYLARGO_GPIO_0+0x09)
6062306a36Sopenharmony_ci#define KL_GPIO_TB_ENABLE		(KEYLARGO_GPIO_0+0x09)
6162306a36Sopenharmony_ci
6262306a36Sopenharmony_ci#define KL_GPIO_ETH_PHY_RESET		(KEYLARGO_GPIO_0+0x10)
6362306a36Sopenharmony_ci
6462306a36Sopenharmony_ci#define KL_GPIO_EXTINT_CPU1		(KEYLARGO_GPIO_0+0x0a)
6562306a36Sopenharmony_ci#define KL_GPIO_EXTINT_CPU1_ASSERT	0x04
6662306a36Sopenharmony_ci#define KL_GPIO_EXTINT_CPU1_RELEASE	0x38
6762306a36Sopenharmony_ci
6862306a36Sopenharmony_ci#define KL_GPIO_RESET_CPU0		(KEYLARGO_GPIO_EXTINT_0+0x03)
6962306a36Sopenharmony_ci#define KL_GPIO_RESET_CPU1		(KEYLARGO_GPIO_EXTINT_0+0x04)
7062306a36Sopenharmony_ci#define KL_GPIO_RESET_CPU2		(KEYLARGO_GPIO_EXTINT_0+0x0f)
7162306a36Sopenharmony_ci#define KL_GPIO_RESET_CPU3		(KEYLARGO_GPIO_EXTINT_0+0x10)
7262306a36Sopenharmony_ci
7362306a36Sopenharmony_ci#define KL_GPIO_PMU_MESSAGE_IRQ		(KEYLARGO_GPIO_EXTINT_0+0x09)
7462306a36Sopenharmony_ci#define KL_GPIO_PMU_MESSAGE_BIT		KEYLARGO_GPIO_INPUT_DATA
7562306a36Sopenharmony_ci
7662306a36Sopenharmony_ci#define KL_GPIO_MEDIABAY_IRQ		(KEYLARGO_GPIO_EXTINT_0+0x0e)
7762306a36Sopenharmony_ci
7862306a36Sopenharmony_ci#define KL_GPIO_AIRPORT_0		(KEYLARGO_GPIO_EXTINT_0+0x0a)
7962306a36Sopenharmony_ci#define KL_GPIO_AIRPORT_1		(KEYLARGO_GPIO_EXTINT_0+0x0d)
8062306a36Sopenharmony_ci#define KL_GPIO_AIRPORT_2		(KEYLARGO_GPIO_0+0x0d)
8162306a36Sopenharmony_ci#define KL_GPIO_AIRPORT_3		(KEYLARGO_GPIO_0+0x0e)
8262306a36Sopenharmony_ci#define KL_GPIO_AIRPORT_4		(KEYLARGO_GPIO_0+0x0f)
8362306a36Sopenharmony_ci
8462306a36Sopenharmony_ci/*
8562306a36Sopenharmony_ci * Bits in feature control register. Those bits different for K2 are
8662306a36Sopenharmony_ci * listed separately
8762306a36Sopenharmony_ci */
8862306a36Sopenharmony_ci#define KL_MBCR_MB0_PCI_ENABLE		0x00000800	/* exist ? */
8962306a36Sopenharmony_ci#define KL_MBCR_MB0_IDE_ENABLE		0x00001000
9062306a36Sopenharmony_ci#define KL_MBCR_MB0_FLOPPY_ENABLE	0x00002000	/* exist ? */
9162306a36Sopenharmony_ci#define KL_MBCR_MB0_SOUND_ENABLE	0x00004000	/* hrm... */
9262306a36Sopenharmony_ci#define KL_MBCR_MB0_DEV_MASK		0x00007800
9362306a36Sopenharmony_ci#define KL_MBCR_MB0_DEV_POWER		0x00000400
9462306a36Sopenharmony_ci#define KL_MBCR_MB0_DEV_RESET		0x00000200
9562306a36Sopenharmony_ci#define KL_MBCR_MB0_ENABLE		0x00000100
9662306a36Sopenharmony_ci#define KL_MBCR_MB1_PCI_ENABLE		0x08000000	/* exist ? */
9762306a36Sopenharmony_ci#define KL_MBCR_MB1_IDE_ENABLE		0x10000000
9862306a36Sopenharmony_ci#define KL_MBCR_MB1_FLOPPY_ENABLE	0x20000000	/* exist ? */
9962306a36Sopenharmony_ci#define KL_MBCR_MB1_SOUND_ENABLE	0x40000000	/* hrm... */
10062306a36Sopenharmony_ci#define KL_MBCR_MB1_DEV_MASK		0x78000000
10162306a36Sopenharmony_ci#define KL_MBCR_MB1_DEV_POWER		0x04000000
10262306a36Sopenharmony_ci#define KL_MBCR_MB1_DEV_RESET		0x02000000
10362306a36Sopenharmony_ci#define KL_MBCR_MB1_ENABLE		0x01000000
10462306a36Sopenharmony_ci
10562306a36Sopenharmony_ci#define KL0_SCC_B_INTF_ENABLE		0x00000001	/* (KL Only) */
10662306a36Sopenharmony_ci#define KL0_SCC_A_INTF_ENABLE		0x00000002
10762306a36Sopenharmony_ci#define KL0_SCC_SLOWPCLK		0x00000004
10862306a36Sopenharmony_ci#define KL0_SCC_RESET			0x00000008
10962306a36Sopenharmony_ci#define KL0_SCCA_ENABLE			0x00000010
11062306a36Sopenharmony_ci#define KL0_SCCB_ENABLE			0x00000020
11162306a36Sopenharmony_ci#define KL0_SCC_CELL_ENABLE		0x00000040
11262306a36Sopenharmony_ci#define KL0_IRDA_HIGH_BAND		0x00000100	/* (KL Only) */
11362306a36Sopenharmony_ci#define KL0_IRDA_SOURCE2_SEL		0x00000200	/* (KL Only) */
11462306a36Sopenharmony_ci#define KL0_IRDA_SOURCE1_SEL		0x00000400	/* (KL Only) */
11562306a36Sopenharmony_ci#define KL0_PG_USB0_PMI_ENABLE		0x00000400	/* (Pangea/Intrepid Only) */
11662306a36Sopenharmony_ci#define KL0_IRDA_RESET			0x00000800	/* (KL Only) */
11762306a36Sopenharmony_ci#define KL0_PG_USB0_REF_SUSPEND_SEL	0x00000800	/* (Pangea/Intrepid Only) */
11862306a36Sopenharmony_ci#define KL0_IRDA_DEFAULT1		0x00001000	/* (KL Only) */
11962306a36Sopenharmony_ci#define KL0_PG_USB0_REF_SUSPEND		0x00001000	/* (Pangea/Intrepid Only) */
12062306a36Sopenharmony_ci#define KL0_IRDA_DEFAULT0		0x00002000	/* (KL Only) */
12162306a36Sopenharmony_ci#define KL0_PG_USB0_PAD_SUSPEND		0x00002000	/* (Pangea/Intrepid Only) */
12262306a36Sopenharmony_ci#define KL0_IRDA_FAST_CONNECT		0x00004000	/* (KL Only) */
12362306a36Sopenharmony_ci#define KL0_PG_USB1_PMI_ENABLE		0x00004000	/* (Pangea/Intrepid Only) */
12462306a36Sopenharmony_ci#define KL0_IRDA_ENABLE			0x00008000	/* (KL Only) */
12562306a36Sopenharmony_ci#define KL0_PG_USB1_REF_SUSPEND_SEL	0x00008000	/* (Pangea/Intrepid Only) */
12662306a36Sopenharmony_ci#define KL0_IRDA_CLK32_ENABLE		0x00010000	/* (KL Only) */
12762306a36Sopenharmony_ci#define KL0_PG_USB1_REF_SUSPEND		0x00010000	/* (Pangea/Intrepid Only) */
12862306a36Sopenharmony_ci#define KL0_IRDA_CLK19_ENABLE		0x00020000	/* (KL Only) */
12962306a36Sopenharmony_ci#define KL0_PG_USB1_PAD_SUSPEND		0x00020000	/* (Pangea/Intrepid Only) */
13062306a36Sopenharmony_ci#define KL0_USB0_PAD_SUSPEND0		0x00040000
13162306a36Sopenharmony_ci#define KL0_USB0_PAD_SUSPEND1		0x00080000
13262306a36Sopenharmony_ci#define KL0_USB0_CELL_ENABLE		0x00100000
13362306a36Sopenharmony_ci#define KL0_USB1_PAD_SUSPEND0		0x00400000
13462306a36Sopenharmony_ci#define KL0_USB1_PAD_SUSPEND1		0x00800000
13562306a36Sopenharmony_ci#define KL0_USB1_CELL_ENABLE		0x01000000
13662306a36Sopenharmony_ci#define KL0_USB_REF_SUSPEND		0x10000000	/* (KL Only) */
13762306a36Sopenharmony_ci
13862306a36Sopenharmony_ci#define KL0_SERIAL_ENABLE		(KL0_SCC_B_INTF_ENABLE | \
13962306a36Sopenharmony_ci					KL0_SCC_SLOWPCLK | \
14062306a36Sopenharmony_ci					KL0_SCC_CELL_ENABLE | KL0_SCCA_ENABLE)
14162306a36Sopenharmony_ci
14262306a36Sopenharmony_ci#define KL1_USB2_PMI_ENABLE		0x00000001	/* Intrepid only */
14362306a36Sopenharmony_ci#define KL1_AUDIO_SEL_22MCLK		0x00000002	/* KL/Pangea only */
14462306a36Sopenharmony_ci#define KL1_USB2_REF_SUSPEND_SEL	0x00000002	/* Intrepid only */
14562306a36Sopenharmony_ci#define KL1_USB2_REF_SUSPEND		0x00000004	/* Intrepid only */
14662306a36Sopenharmony_ci#define KL1_AUDIO_CLK_ENABLE_BIT	0x00000008	/* KL/Pangea only */
14762306a36Sopenharmony_ci#define KL1_USB2_PAD_SUSPEND_SEL	0x00000008	/* Intrepid only */
14862306a36Sopenharmony_ci#define KL1_USB2_PAD_SUSPEND0		0x00000010	/* Intrepid only */
14962306a36Sopenharmony_ci#define KL1_AUDIO_CLK_OUT_ENABLE	0x00000020	/* KL/Pangea only */
15062306a36Sopenharmony_ci#define KL1_USB2_PAD_SUSPEND1		0x00000020	/* Intrepid only */
15162306a36Sopenharmony_ci#define KL1_AUDIO_CELL_ENABLE		0x00000040	/* KL/Pangea only */
15262306a36Sopenharmony_ci#define KL1_USB2_CELL_ENABLE		0x00000040	/* Intrepid only */
15362306a36Sopenharmony_ci#define KL1_AUDIO_CHOOSE		0x00000080	/* KL/Pangea only */
15462306a36Sopenharmony_ci#define KL1_I2S0_CHOOSE			0x00000200	/* KL Only */
15562306a36Sopenharmony_ci#define KL1_I2S0_CELL_ENABLE		0x00000400
15662306a36Sopenharmony_ci#define KL1_I2S0_CLK_ENABLE_BIT		0x00001000
15762306a36Sopenharmony_ci#define KL1_I2S0_ENABLE			0x00002000
15862306a36Sopenharmony_ci#define KL1_I2S1_CELL_ENABLE		0x00020000
15962306a36Sopenharmony_ci#define KL1_I2S1_CLK_ENABLE_BIT		0x00080000
16062306a36Sopenharmony_ci#define KL1_I2S1_ENABLE			0x00100000
16162306a36Sopenharmony_ci#define KL1_EIDE0_ENABLE		0x00800000	/* KL/Intrepid Only */
16262306a36Sopenharmony_ci#define KL1_EIDE0_RESET_N		0x01000000	/* KL/Intrepid Only */
16362306a36Sopenharmony_ci#define KL1_EIDE1_ENABLE		0x04000000	/* KL Only */
16462306a36Sopenharmony_ci#define KL1_EIDE1_RESET_N		0x08000000	/* KL Only */
16562306a36Sopenharmony_ci#define KL1_UIDE_ENABLE			0x20000000	/* KL/Pangea Only */
16662306a36Sopenharmony_ci#define KL1_UIDE_RESET_N		0x40000000	/* KL/Pangea Only */
16762306a36Sopenharmony_ci
16862306a36Sopenharmony_ci#define KL2_IOBUS_ENABLE		0x00000002
16962306a36Sopenharmony_ci#define KL2_SLEEP_STATE_BIT		0x00000100	/* KL Only */
17062306a36Sopenharmony_ci#define KL2_PG_STOP_ALL_CLOCKS		0x00000100	/* Pangea Only */
17162306a36Sopenharmony_ci#define KL2_MPIC_ENABLE			0x00020000
17262306a36Sopenharmony_ci#define KL2_CARDSLOT_RESET		0x00040000	/* Pangea/Intrepid Only */
17362306a36Sopenharmony_ci#define KL2_ALT_DATA_OUT		0x02000000	/* KL Only ??? */
17462306a36Sopenharmony_ci#define KL2_MEM_IS_BIG			0x04000000
17562306a36Sopenharmony_ci#define KL2_CARDSEL_16			0x08000000
17662306a36Sopenharmony_ci
17762306a36Sopenharmony_ci#define KL3_SHUTDOWN_PLL_TOTAL		0x00000001	/* KL/Pangea only */
17862306a36Sopenharmony_ci#define KL3_SHUTDOWN_PLLKW6		0x00000002	/* KL/Pangea only */
17962306a36Sopenharmony_ci#define KL3_IT_SHUTDOWN_PLL3		0x00000002	/* Intrepid only */
18062306a36Sopenharmony_ci#define KL3_SHUTDOWN_PLLKW4		0x00000004	/* KL/Pangea only */
18162306a36Sopenharmony_ci#define KL3_IT_SHUTDOWN_PLL2		0x00000004	/* Intrepid only */
18262306a36Sopenharmony_ci#define KL3_SHUTDOWN_PLLKW35		0x00000008	/* KL/Pangea only */
18362306a36Sopenharmony_ci#define KL3_IT_SHUTDOWN_PLL1		0x00000008	/* Intrepid only */
18462306a36Sopenharmony_ci#define KL3_SHUTDOWN_PLLKW12		0x00000010	/* KL Only */
18562306a36Sopenharmony_ci#define KL3_IT_ENABLE_PLL3_SHUTDOWN	0x00000010	/* Intrepid only */
18662306a36Sopenharmony_ci#define KL3_PLL_RESET			0x00000020	/* KL/Pangea only */
18762306a36Sopenharmony_ci#define KL3_IT_ENABLE_PLL2_SHUTDOWN	0x00000020	/* Intrepid only */
18862306a36Sopenharmony_ci#define KL3_IT_ENABLE_PLL1_SHUTDOWN	0x00000010	/* Intrepid only */
18962306a36Sopenharmony_ci#define KL3_SHUTDOWN_PLL2X		0x00000080	/* KL Only */
19062306a36Sopenharmony_ci#define KL3_CLK66_ENABLE		0x00000100	/* KL Only */
19162306a36Sopenharmony_ci#define KL3_CLK49_ENABLE		0x00000200
19262306a36Sopenharmony_ci#define KL3_CLK45_ENABLE		0x00000400
19362306a36Sopenharmony_ci#define KL3_CLK31_ENABLE		0x00000800	/* KL/Pangea only */
19462306a36Sopenharmony_ci#define KL3_TIMER_CLK18_ENABLE		0x00001000
19562306a36Sopenharmony_ci#define KL3_I2S1_CLK18_ENABLE		0x00002000
19662306a36Sopenharmony_ci#define KL3_I2S0_CLK18_ENABLE		0x00004000
19762306a36Sopenharmony_ci#define KL3_VIA_CLK16_ENABLE		0x00008000	/* KL/Pangea only */
19862306a36Sopenharmony_ci#define KL3_IT_VIA_CLK32_ENABLE		0x00008000	/* Intrepid only */
19962306a36Sopenharmony_ci#define KL3_STOPPING33_ENABLED		0x00080000	/* KL Only */
20062306a36Sopenharmony_ci#define KL3_PG_PLL_ENABLE_TEST		0x00080000	/* Pangea Only */
20162306a36Sopenharmony_ci
20262306a36Sopenharmony_ci/* Intrepid USB bus 2, port 0,1 */
20362306a36Sopenharmony_ci#define KL3_IT_PORT_WAKEUP_ENABLE(p)		(0x00080000 << ((p)<<3))
20462306a36Sopenharmony_ci#define KL3_IT_PORT_RESUME_WAKE_EN(p)		(0x00040000 << ((p)<<3))
20562306a36Sopenharmony_ci#define KL3_IT_PORT_CONNECT_WAKE_EN(p)		(0x00020000 << ((p)<<3))
20662306a36Sopenharmony_ci#define KL3_IT_PORT_DISCONNECT_WAKE_EN(p)	(0x00010000 << ((p)<<3))
20762306a36Sopenharmony_ci#define KL3_IT_PORT_RESUME_STAT(p)		(0x00300000 << ((p)<<3))
20862306a36Sopenharmony_ci#define KL3_IT_PORT_CONNECT_STAT(p)		(0x00200000 << ((p)<<3))
20962306a36Sopenharmony_ci#define KL3_IT_PORT_DISCONNECT_STAT(p)		(0x00100000 << ((p)<<3))
21062306a36Sopenharmony_ci
21162306a36Sopenharmony_ci/* Port 0,1 : bus 0, port 2,3 : bus 1 */
21262306a36Sopenharmony_ci#define KL4_PORT_WAKEUP_ENABLE(p)	(0x00000008 << ((p)<<3))
21362306a36Sopenharmony_ci#define KL4_PORT_RESUME_WAKE_EN(p)	(0x00000004 << ((p)<<3))
21462306a36Sopenharmony_ci#define KL4_PORT_CONNECT_WAKE_EN(p)	(0x00000002 << ((p)<<3))
21562306a36Sopenharmony_ci#define KL4_PORT_DISCONNECT_WAKE_EN(p)	(0x00000001 << ((p)<<3))
21662306a36Sopenharmony_ci#define KL4_PORT_RESUME_STAT(p)		(0x00000040 << ((p)<<3))
21762306a36Sopenharmony_ci#define KL4_PORT_CONNECT_STAT(p)	(0x00000020 << ((p)<<3))
21862306a36Sopenharmony_ci#define KL4_PORT_DISCONNECT_STAT(p)	(0x00000010 << ((p)<<3))
21962306a36Sopenharmony_ci
22062306a36Sopenharmony_ci/* Pangea and Intrepid only */
22162306a36Sopenharmony_ci#define KL5_VIA_USE_CLK31		0000000001	/* Pangea Only */
22262306a36Sopenharmony_ci#define KL5_SCC_USE_CLK31		0x00000002	/* Pangea Only */
22362306a36Sopenharmony_ci#define KL5_PWM_CLK32_EN		0x00000004
22462306a36Sopenharmony_ci#define KL5_CLK3_68_EN			0x00000010
22562306a36Sopenharmony_ci#define KL5_CLK32_EN			0x00000020
22662306a36Sopenharmony_ci
22762306a36Sopenharmony_ci
22862306a36Sopenharmony_ci/* K2 definitions */
22962306a36Sopenharmony_ci#define K2_FCR0_USB0_SWRESET		0x00200000
23062306a36Sopenharmony_ci#define K2_FCR0_USB1_SWRESET		0x02000000
23162306a36Sopenharmony_ci#define K2_FCR0_RING_PME_DISABLE	0x08000000
23262306a36Sopenharmony_ci
23362306a36Sopenharmony_ci#define K2_FCR1_PCI1_BUS_RESET_N	0x00000010
23462306a36Sopenharmony_ci#define K2_FCR1_PCI1_SLEEP_RESET_EN	0x00000020
23562306a36Sopenharmony_ci#define K2_FCR1_I2S0_CELL_ENABLE	0x00000400
23662306a36Sopenharmony_ci#define K2_FCR1_I2S0_RESET		0x00000800
23762306a36Sopenharmony_ci#define K2_FCR1_I2S0_CLK_ENABLE_BIT	0x00001000
23862306a36Sopenharmony_ci#define K2_FCR1_I2S0_ENABLE    		0x00002000
23962306a36Sopenharmony_ci#define K2_FCR1_PCI1_CLK_ENABLE		0x00004000
24062306a36Sopenharmony_ci#define K2_FCR1_FW_CLK_ENABLE		0x00008000
24162306a36Sopenharmony_ci#define K2_FCR1_FW_RESET_N		0x00010000
24262306a36Sopenharmony_ci#define K2_FCR1_I2S1_CELL_ENABLE	0x00020000
24362306a36Sopenharmony_ci#define K2_FCR1_I2S1_CLK_ENABLE_BIT	0x00080000
24462306a36Sopenharmony_ci#define K2_FCR1_I2S1_ENABLE		0x00100000
24562306a36Sopenharmony_ci#define K2_FCR1_GMAC_CLK_ENABLE		0x00400000
24662306a36Sopenharmony_ci#define K2_FCR1_GMAC_POWER_DOWN		0x00800000
24762306a36Sopenharmony_ci#define K2_FCR1_GMAC_RESET_N		0x01000000
24862306a36Sopenharmony_ci#define K2_FCR1_SATA_CLK_ENABLE		0x02000000
24962306a36Sopenharmony_ci#define K2_FCR1_SATA_POWER_DOWN		0x04000000
25062306a36Sopenharmony_ci#define K2_FCR1_SATA_RESET_N		0x08000000
25162306a36Sopenharmony_ci#define K2_FCR1_UATA_CLK_ENABLE		0x10000000
25262306a36Sopenharmony_ci#define K2_FCR1_UATA_RESET_N		0x40000000
25362306a36Sopenharmony_ci#define K2_FCR1_UATA_CHOOSE_CLK66	0x80000000
25462306a36Sopenharmony_ci
25562306a36Sopenharmony_ci/* Shasta definitions */
25662306a36Sopenharmony_ci#define SH_FCR1_I2S2_CELL_ENABLE	0x00000010
25762306a36Sopenharmony_ci#define SH_FCR1_I2S2_CLK_ENABLE_BIT	0x00000040
25862306a36Sopenharmony_ci#define SH_FCR1_I2S2_ENABLE		0x00000080
25962306a36Sopenharmony_ci#define SH_FCR3_I2S2_CLK18_ENABLE	0x00008000
26062306a36Sopenharmony_ci
26162306a36Sopenharmony_ci#endif /* __KERNEL__ */
26262306a36Sopenharmony_ci#endif /* _ASM_POWERPC_KEYLARGO_H */
263