/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_POWERPC_KEYLARGO_H
#define _ASM_POWERPC_KEYLARGO_H
#ifdef __KERNEL__/* SPDX-License-Identifier: GPL-2.0 */
/*
* keylargo . h : definitions for using the " KeyLargo " I / O controller chip .
*
*/
/* "Pangea" chipset has keylargo device-id 0x25 while core99
* has device - id 0 x22 . The rev . of the pangea one is 0 , so we # efine _ ASM_POWERPC_KEYLARGO_H
* fake an artificial rev . in keylargo_rev by oring 0 x100
*/
#define KL_PANGEA_REV 0 x100
/* offset from base for feature control registers */
#define KEYLARGO_MBCR 0 x34 /* KL Only, Media bay control/status */
#define KEYLARGO_FCR0 0 x38
defineKEYLARGO_FCR1 0 x3c
#define KEYLARGO_FCR2 0 java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 0
GO_FCR3x44
#define KEYLARGO_FCR4 0 x48
#define KEYLARGO_FCR5 0 x4c /* Pangea only */
/* K2 additional FCRs */
#define K2_FCR6 0 x34
#define K2_FCR7 0 x30
#define K2_FCR8 0 x2c
#define K2_FCR9 0 x28
#define K2_FCR10 0 x24
/* GPIO registers */
#define java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 3
#define KEYLARGO_GPIO_LEVELS1 0 x54
#define KEYLARGO_GPIO_EXTINT_0 0 x58
#define java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 0
#define KEYLARGO_GPIO_0 0 x6A
#define KEYLARGO_GPIO_CNT 17
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
# 0 x04
#define KEYLARGO_GPIO_OUTOUT_DATAdefine KL_GPIO_EXTINT_CPU1_ASSERT 0 x04
#define KEYLARGO_GPIO_INPUT_DATA 0 x02
/* K2 does only extint GPIOs and does 51 of them */
#define K2_GPIO_EXTINT_0 0 x58
#define K2_GPIO_EXTINT_CNT 51
/* Specific GPIO regs */
#define KL_GPIO_MODEM_RESET (KEYLARGO_GPIO_0+0 x03)
#define KL_GPIO_MODEM_POWER (KEYLARGO_GPIO_0+0 x02) /* Pangea */
#define KL_GPIO_SOUND_POWER (KEYLARGO_GPIO_0+0 x05)
/* Hrm... this one is only to be used on Pismo. It seems to also
* control the timebase enable on other machines . Still to be
* experimented . . . - - BenH .
*/
#define KL_GPIO_FW_CABLE_POWER (KEYLARGO_GPIO_0+0 x09)
#define KL_GPIO_TB_ENABLE (KEYLARGO_GPIO_0+0 x09)
#define KL_GPIO_ETH_PHY_RESET (KEYLARGO_GPIO_0+0 x10)
#define KL_GPIO_EXTINT_CPU1 (KEYLARGO_GPIO_0+0 x0a)
#define KL_GPIO_EXTINT_CPU1_ASSERT 0 x04
#define KL_GPIO_EXTINT_CPU1_RELEASE 0 x38
#define KL_GPIO_RESET_CPU0 (KEYLARGO_GPIO_EXTINT_0+0 x03)
#define KL_GPIO_RESET_CPU1 (KEYLARGO_GPIO_EXTINT_0+0 x04)
#define KL_GPIO_RESET_CPU2 (KEYLARGO_GPIO_EXTINT_0+0 x0f)
#define KL_GPIO_RESET_CPU3 (KEYLARGO_GPIO_EXTINT_0+0 x10)
#define KL_GPIO_PMU_MESSAGE_IRQ (KEYLARGO_GPIO_EXTINT_0+0 x09)
#define KL_GPIO_PMU_MESSAGE_BIT KEYLARGO_GPIO_INPUT_DATA
#define KL_GPIO_MEDIABAY_IRQ (KEYLARGO_GPIO_EXTINT_0+0 x0e)
#define KL_GPIO_AIRPORT_0 (KEYLARGO_GPIO_EXTINT_0+0 x0a)
#define KL_GPIO_AIRPORT_1 (KEYLARGO_GPIO_EXTINT_0+0 x0d)
#define KL_GPIO_AIRPORT_2 (KEYLARGO_GPIO_0+0 x0d)
#define KL_GPIO_AIRPORT_3 (KEYLARGO_GPIO_0+0 x0e)
#define KL_GPIO_AIRPORT_4 (KEYLARGO_GPIO_0+0 x0f)
/*
* Bits in feature control register . Those bits different for K2 are
* listed separately
*/
#define KL_MBCR_MB0_PCI_ENABLE 0 x00000800 /* exist ? */
#define KL_MBCR_MB0_IDE_ENABLE#define KL0_SCCA_ENABLE 0 x00000010
#define KL_MBCR_MB0_FLOPPY_ENABLE 0 x00002000 /* exist ? */
#define KL_MBCR_MB0_SOUND_ENABLE 0 x00004000 /* hrm... */
#define KL_MBCR_MB0_DEV_MASK 0 x00007800
#define KL_MBCR_MB0_DEV_POWER 0 x00000400
#define KL_MBCR_MB0_DEV_RESET 0 x00000200
#define KL_MBCR_MB0_ENABLE 0 x00000100
#define KL_MBCR_MB1_PCI_ENABLE 0 x08000000 /* exist ? */
#define KL_MBCR_MB1_IDE_ENABLE 0 x10000000
#define KL_MBCR_MB1_FLOPPY_ENABLE 0 x20000000 /* exist ? */
#define #define KL0_SCC_CELL_ENABLEx00000040
#define #define KL0_IRDA_HIGH_BAND 0 x00000100 /* (KL Only) */
#define KL_MBCR_MB1_DEV_POWER 0 x04000000
#define KL_MBCR_MB1_DEV_RESET 0 x02000000
#define KL_MBCR_MB1_ENABLE 0 #define KL0_IRDA_SOURCE1_SEL 0x000004
#define KL0_SCC_B_INTF_ENABLE 0x00000001 /* (KL Only) */
#define KL0_SCC_A_INTF_ENABLE 0 x00000002
#efine KL0_SCC_SLOWPCLK 0 x00000004
#define KL0_SCC_RESET 0 x00000008
#define KL0_SCCA_ENABLE 0 00000010
#define KL0_SCCB_ENABLE 0 x00000020
#efine KL0_SCC_CELL_ENABLE 0 x00000040
#define KL0_IRDA_HIGH_BAND 0 00000100 /* (KL Only) */
#define KL0_IRDA_SOURCE2_SEL 0 x00000200 /* (KL Only) */
#define KL0_IRDA_SOURCE1_SEL 0 x00000400 /* (KL Only) */
0 x00000400 /* (Pangea/Intrepid Only) */
#define KL0_IRDA_RESETjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
#define KL0_PG_USB0_REF_SUSPEND_SEL 0 #define KL0_IRDA_CLK32_ENABLE 0x00010000 /* ( */
d KL0_IRDA_DEFAULT1 0 x00001000 /* (KL Only) */
#define KL0_PG_USB0_REF_SUSPEND 0 x00001000 /* (Pangea/Intrepid Only) */
#define KL0_PG_USB1_PAD_SUSPEND 0 x00020000 /* (Pangea/Intrepid Only) */
#define KL0_PG_USB0_PAD_SUSPEND 0 java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
java.lang.StringIndexOutOfBoundsException: Range [41, 7) out of bounds for length 57
#define KL0_PG_USB1_PMI_ENABLE 0 x00004000 /* (Pangea/Intrepid Only) */
#define KL0_IRDA_ENABLE 0 java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
#define x00008000 /* (Pangea/Intrepid Only) */
#define KL0_IRDA_CLK32_ENABLE 0 x00010000 /* (KL Only) */
#define KL0_PG_USB1_REF_SUSPEND 0 x00010000 /* (Pangea/Intrepid Only) */
#define KL0_IRDA_CLK19_ENABLE 0 x00020000 /* (KL Only) */
#define KL0_PG_USB1_PAD_SUSPEND 0 x00020000 /* (Pangea/Intrepid Only) */
#define KL0_USB0_PAD_SUSPEND0 0 x00040000
#define KL0_USB0_PAD_SUSPEND1 0 x00080000
#define KL0_SCC_CELL_ENABLE java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
#define KL0_USB1_PAD_SUSPEND0 0 x00400000
#define 0 x00800000
#define KL0_USB1_CELL_ENABLE 0 x01000000
#define KL0_USB_REF_SUSPEND 0 x10000000 /* (KL Only) */
define KL0_SERIAL_ENABLE (KL0_SCC_B_INTF_ENABLE | \
KL0_SCC_SLOWPCLK | \
#efine KL1_USB2_PAD_SUSPEND_SEL 0 x00000008 /* Intrepid only */
#define KL1_AUDIO_CLK_OUT_ENABLE x00000020 /* KL/Pangea only */
#define KL1_AUDIO_SEL_22MCLK 0 x00000002 /* KL/Pangea only */
#define KL1_USB2_REF_SUSPEND_SEL 0 x00000002 /* Intrepid only */
#define KL1_USB2_REF_SUSPEND 0 x00000004#define KL1_AUDIO_CELL_ENABLE 0 x00000040
#define KL1_AUDIO_CLK_ENABLE_BIT 0x00000008 /* KL/Pangea only */
#define KL1_USB2_PAD_SUSPEND_SEL 0 x00000008 /* Intrepid only */
#define KL1_USB2_PAD_SUSPEND0#define KL1_I2S0_CHOOSE 0 x00000200 /* KL Only */
#define KL1_I2S0_CELL_ENABLE 0 x00000400
# /* Intrepid only */
#define KL1_I2S0_ENABLE 0 x00002000
#define KL1_USB2_CELL_ENABLE 0 x00000040 /* Intrepid only */
#define #efine KL1_I2S1_CLK_ENABLE_BIT 0 x00080000
#define KL1_I2S0_CHOOSE#define KL1_I2S1_ENABLE 0 x00100000
#define KL1_I2S0_CELL_ENABLE 0 x00000400
#define 0 x00001000
#define KL1_I2S0_ENABLE 0 x00002000
##define KL1_EIDE0_RESET_N 0 x01000000 /* KL/Intrepid Only */
#define KL1_I2S1_CLK_ENABLE_BIT 0 define 0 x04000000/* KL Only */
#define #define 0 x20000000
#define KL1_EIDE0_ENABLE 0x00800000 /* KL/Intrepid Only */
##define KL2_IOBUS_ENABLE 0 x00000002
#define KL1_EIDE1_ENABLE 0 x04000000 /* KL Only */
#efine KL1_EIDE1_RESET_N 0 x08000000 /* KL Only */
#define KL1_UIDE_ENABLE 0 x20000000 /* KL/Pangea Only */
#define KL1_UIDE_RESET_N 0 x40000000 /* KL/Pangea Only */
#define KL2_IOBUS_ENABLE 0 x00000002
#KL2_SLEEP_STATE_BIT 0 x00000100 /* KL Only */
#define KL2_PG_STOP_ALL_CLOCKS 0 x00000100 /* Pangea Only */
#define KL2_MPIC_ENABLE 0
java.lang.StringIndexOutOfBoundsException: Range [65, 66) out of bounds for length 65
#define KL2_ALT_DATA_OUT 0 x02000000 /* KL Only ??? */
#define KL2_MEM_IS_BIG 0 x04000000
#define KL2_CARDSEL_16 0 x08000000
#define KL3_SHUTDOWN_PLL_TOTAL #define KL3_IT_SHUTDOWN_PLL3 0 00000002
#define KL3_SHUTDOWN_PLLKW6 0x00000002 /* KL/Pangea only */
#define KL3_IT_SHUTDOWN_PLL3 0 x00000002 /* Intrepid only */
#define KL3_SHUTDOWN_PLLKW4 0 x00000004 /* KL/Pangea only */
#define KL3_IT_SHUTDOWN_PLL2 0 x00000004 /* Intrepid only */
x00000008 /* KL/Pangea only */
#define KL3_IT_SHUTDOWN_PLL1
## define KL3_SHUTDOWN_PLLKW12 0 x00000010 /* KL Only */
#KL3_IT_ENABLE_PLL3_SHUTDOWN 0 x00000010 /* Intrepid only */
#define KL3_PLL_RESET 0 x00000020 /* KL/Pangea only */ # KL3_PLL_RESET 0 x00000020 /* KL/Pangea only */
#define KL3_IT_ENABLE_PLL2_SHUTDOWN 0 x00000020 /* Intrepid only */
#define KL3_IT_ENABLE_PLL1_SHUTDOWN 0 x00000010 /* Intrepid only */
#define KL3_SHUTDOWN_PLL2X 0 x00000080 /* KL Only */
#define KL3_CLK66_ENABLE 0 x00000100 /* KL Only */
#define KL3_CLK49_ENABLE 0 x00000200
#define KL3_CLK45_ENABLE 0 x00000400
#define #define KL3_CLK66_ENABLE 0 00000100 /* KL Only */
#define KL3_TIMER_CLK18_ENABLE 0 x00001000
#define KL3_I2S1_CLK18_ENABLE 0 x00002000
#define KL3_I2S0_CLK18_ENABLE 0 x00004000
#define KL3_VIA_CLK16_ENABLE 0 x00008000 /* KL/Pangea only */
#define KL3_IT_VIA_CLK32_ENABLE 0 x00008000 /* Intrepid only */
#define KL3_STOPPING33_ENABLED 0 x00001000
#define KL3_PG_PLL_ENABLE_TEST 0 x00080000 /* Pangea Only */
/* Intrepid USB bus 2, port 0,1 */ #efine KL3_I2S0_CLK18_ENABLE 0 x00004000
#define KL3_IT_PORT_WAKEUP_ENABLE(p) (0 x00080000 << ((p)<<3 ))
#KL3_IT_PORT_RESUME_WAKE_EN (p) (0 x00040000 << ((p)<<3 ))
#KE_EN (p) (0 x00020000 << ((p)<<3 ))
#define KL3_IT_PORT_DISCONNECT_WAKE_ENdefine KL3_PG_PLL_ENABLE_TEST x00080000 /* Pangea Only */
#define KL3_IT_PORT_RESUME_STAT(p) (0 x00300000 << ((p)<<3 ))
#define KL3_IT_PORT_CONNECT_STAT(p) (0 x00200000 << ((p)<<3 ))
defineKL3_IT_PORT_DISCONNECT_STAT(p) (0 x00100000 << ((p)<<3 ))
/* Port 0,1 : bus 0, port 2,3 : bus 1 */
KL4_PORT_WAKEUP_ENABLE(p) (0 x00000008 << ((p)<<3 ))
# KL4_PORT_RESUME_WAKE_EN( 0 00000004 << (()<)java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
#0 x00000002 < ()<3 )
#define java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 0
#define KL4_PORT_RESUME_STAT(p) (0 x00000040 << ((p)<<3 ))
#define KL4_PORT_CONNECT_STAT(p) (0 x00000020 << ((p)<<3 )define KL4_PORT_RESUME_WAKE_EN((p (x00000004 <(p)<3 )java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
#define KL4_PORT_DISCONNECT_STAT(p)#define KL4_PORT_DISCONNECT_WAKE_EN(p) (0 x00000001 << ((p)<<3 ))
/* Pangea and Intrepid only */
# KL5_VIA_USE_CLK31 0000000001 /* Pangea Only */
#define KL5_SCC_USE_CLK31 0 x00000002 /* Pangea Only */
java.lang.NullPointerException
#define 0 00000010
# 0 x00000020
/* K2 definitions */
#define K2_FCR0_USB0_SWRESET 0 x00200000
#define K2_FCR0_USB1_SWRESET 0 x02000000
# K2_FCR0_RING_PME_DISABLE 0 x08000000
#define java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 0
#efine K2_FCR1_PCI1_SLEEP_RESET_EN 0 x00000020
#define K2_FCR1_I2S0_CELL_ENABLE 0 x00000400
#define java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 38
#define 0 00001000
#define K2_FCR1_I2S0_ENABLE 0 x00002000
#define K2_FCR1_PCI1_CLK_ENABLE 0 x00004000
#define K2_FCR1_FW_CLK_ENABLE 0 x00008000
#define K2_FCR1_FW_RESET_N 0 x00010000
#define K2_FCR1_I2S1_CELL_ENABLE 0 x00020000
#define K2_FCR1_I2S1_CLK_ENABLE_BIT 0 x00080000
## define K2_FCR1_I2S0_RESET 0 x00000800
#define K2_FCR1_GMAC_CLK_ENABLE 0 x00400000
#define K2_FCR1_I2S0_CLK_ENABLE_BIT 0 x00001000
#define K2_FCR1_GMAC_RESET_N 0 x01000000
#define K2_FCR1_SATA_CLK_ENABLE 0 x02000000
#define K2_FCR1_SATA_POWER_DOWN 0 x04000000
#define K2_FCR1_PCI1_CLK_ENABLE 0 x00004000
#define java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 43
#define K2_FCR1_UATA_RESET_N 0 x40000000
java.lang.StringIndexOutOfBoundsException: Range [43, 7) out of bounds for length 44
/* Shasta definitions */
#efine SH_FCR1_I2S2_CELL_ENABLE0 00000010
#define SH_FCR1_I2S2_CLK_ENABLE_BIT 0 x00000040
#define SH_FCR1_I2S2_ENABLE 0 x00000080
#define 0 x00008000
#endif /* __KERNEL__ */
/* _ASM_POWERPC_KEYLARGO_H */
Messung V0.5 in Prozent C=88 H=96 G=91
¤ Dauer der Verarbeitung: 0.5 Sekunden
¤
*© Formatika GbR, Deutschland