18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef _ASM_POWERPC_KEYLARGO_H 38c2ecf20Sopenharmony_ci#define _ASM_POWERPC_KEYLARGO_H 48c2ecf20Sopenharmony_ci#ifdef __KERNEL__ 58c2ecf20Sopenharmony_ci/* 68c2ecf20Sopenharmony_ci * keylargo.h: definitions for using the "KeyLargo" I/O controller chip. 78c2ecf20Sopenharmony_ci * 88c2ecf20Sopenharmony_ci */ 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci/* "Pangea" chipset has keylargo device-id 0x25 while core99 118c2ecf20Sopenharmony_ci * has device-id 0x22. The rev. of the pangea one is 0, so we 128c2ecf20Sopenharmony_ci * fake an artificial rev. in keylargo_rev by oring 0x100 138c2ecf20Sopenharmony_ci */ 148c2ecf20Sopenharmony_ci#define KL_PANGEA_REV 0x100 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci/* offset from base for feature control registers */ 178c2ecf20Sopenharmony_ci#define KEYLARGO_MBCR 0x34 /* KL Only, Media bay control/status */ 188c2ecf20Sopenharmony_ci#define KEYLARGO_FCR0 0x38 198c2ecf20Sopenharmony_ci#define KEYLARGO_FCR1 0x3c 208c2ecf20Sopenharmony_ci#define KEYLARGO_FCR2 0x40 218c2ecf20Sopenharmony_ci#define KEYLARGO_FCR3 0x44 228c2ecf20Sopenharmony_ci#define KEYLARGO_FCR4 0x48 238c2ecf20Sopenharmony_ci#define KEYLARGO_FCR5 0x4c /* Pangea only */ 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci/* K2 additional FCRs */ 268c2ecf20Sopenharmony_ci#define K2_FCR6 0x34 278c2ecf20Sopenharmony_ci#define K2_FCR7 0x30 288c2ecf20Sopenharmony_ci#define K2_FCR8 0x2c 298c2ecf20Sopenharmony_ci#define K2_FCR9 0x28 308c2ecf20Sopenharmony_ci#define K2_FCR10 0x24 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ci/* GPIO registers */ 338c2ecf20Sopenharmony_ci#define KEYLARGO_GPIO_LEVELS0 0x50 348c2ecf20Sopenharmony_ci#define KEYLARGO_GPIO_LEVELS1 0x54 358c2ecf20Sopenharmony_ci#define KEYLARGO_GPIO_EXTINT_0 0x58 368c2ecf20Sopenharmony_ci#define KEYLARGO_GPIO_EXTINT_CNT 18 378c2ecf20Sopenharmony_ci#define KEYLARGO_GPIO_0 0x6A 388c2ecf20Sopenharmony_ci#define KEYLARGO_GPIO_CNT 17 398c2ecf20Sopenharmony_ci#define KEYLARGO_GPIO_EXTINT_DUAL_EDGE 0x80 408c2ecf20Sopenharmony_ci#define KEYLARGO_GPIO_OUTPUT_ENABLE 0x04 418c2ecf20Sopenharmony_ci#define KEYLARGO_GPIO_OUTOUT_DATA 0x01 428c2ecf20Sopenharmony_ci#define KEYLARGO_GPIO_INPUT_DATA 0x02 438c2ecf20Sopenharmony_ci 448c2ecf20Sopenharmony_ci/* K2 does only extint GPIOs and does 51 of them */ 458c2ecf20Sopenharmony_ci#define K2_GPIO_EXTINT_0 0x58 468c2ecf20Sopenharmony_ci#define K2_GPIO_EXTINT_CNT 51 478c2ecf20Sopenharmony_ci 488c2ecf20Sopenharmony_ci/* Specific GPIO regs */ 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_ci#define KL_GPIO_MODEM_RESET (KEYLARGO_GPIO_0+0x03) 518c2ecf20Sopenharmony_ci#define KL_GPIO_MODEM_POWER (KEYLARGO_GPIO_0+0x02) /* Pangea */ 528c2ecf20Sopenharmony_ci 538c2ecf20Sopenharmony_ci#define KL_GPIO_SOUND_POWER (KEYLARGO_GPIO_0+0x05) 548c2ecf20Sopenharmony_ci 558c2ecf20Sopenharmony_ci/* Hrm... this one is only to be used on Pismo. It seems to also 568c2ecf20Sopenharmony_ci * control the timebase enable on other machines. Still to be 578c2ecf20Sopenharmony_ci * experimented... --BenH. 588c2ecf20Sopenharmony_ci */ 598c2ecf20Sopenharmony_ci#define KL_GPIO_FW_CABLE_POWER (KEYLARGO_GPIO_0+0x09) 608c2ecf20Sopenharmony_ci#define KL_GPIO_TB_ENABLE (KEYLARGO_GPIO_0+0x09) 618c2ecf20Sopenharmony_ci 628c2ecf20Sopenharmony_ci#define KL_GPIO_ETH_PHY_RESET (KEYLARGO_GPIO_0+0x10) 638c2ecf20Sopenharmony_ci 648c2ecf20Sopenharmony_ci#define KL_GPIO_EXTINT_CPU1 (KEYLARGO_GPIO_0+0x0a) 658c2ecf20Sopenharmony_ci#define KL_GPIO_EXTINT_CPU1_ASSERT 0x04 668c2ecf20Sopenharmony_ci#define KL_GPIO_EXTINT_CPU1_RELEASE 0x38 678c2ecf20Sopenharmony_ci 688c2ecf20Sopenharmony_ci#define KL_GPIO_RESET_CPU0 (KEYLARGO_GPIO_EXTINT_0+0x03) 698c2ecf20Sopenharmony_ci#define KL_GPIO_RESET_CPU1 (KEYLARGO_GPIO_EXTINT_0+0x04) 708c2ecf20Sopenharmony_ci#define KL_GPIO_RESET_CPU2 (KEYLARGO_GPIO_EXTINT_0+0x0f) 718c2ecf20Sopenharmony_ci#define KL_GPIO_RESET_CPU3 (KEYLARGO_GPIO_EXTINT_0+0x10) 728c2ecf20Sopenharmony_ci 738c2ecf20Sopenharmony_ci#define KL_GPIO_PMU_MESSAGE_IRQ (KEYLARGO_GPIO_EXTINT_0+0x09) 748c2ecf20Sopenharmony_ci#define KL_GPIO_PMU_MESSAGE_BIT KEYLARGO_GPIO_INPUT_DATA 758c2ecf20Sopenharmony_ci 768c2ecf20Sopenharmony_ci#define KL_GPIO_MEDIABAY_IRQ (KEYLARGO_GPIO_EXTINT_0+0x0e) 778c2ecf20Sopenharmony_ci 788c2ecf20Sopenharmony_ci#define KL_GPIO_AIRPORT_0 (KEYLARGO_GPIO_EXTINT_0+0x0a) 798c2ecf20Sopenharmony_ci#define KL_GPIO_AIRPORT_1 (KEYLARGO_GPIO_EXTINT_0+0x0d) 808c2ecf20Sopenharmony_ci#define KL_GPIO_AIRPORT_2 (KEYLARGO_GPIO_0+0x0d) 818c2ecf20Sopenharmony_ci#define KL_GPIO_AIRPORT_3 (KEYLARGO_GPIO_0+0x0e) 828c2ecf20Sopenharmony_ci#define KL_GPIO_AIRPORT_4 (KEYLARGO_GPIO_0+0x0f) 838c2ecf20Sopenharmony_ci 848c2ecf20Sopenharmony_ci/* 858c2ecf20Sopenharmony_ci * Bits in feature control register. Those bits different for K2 are 868c2ecf20Sopenharmony_ci * listed separately 878c2ecf20Sopenharmony_ci */ 888c2ecf20Sopenharmony_ci#define KL_MBCR_MB0_PCI_ENABLE 0x00000800 /* exist ? */ 898c2ecf20Sopenharmony_ci#define KL_MBCR_MB0_IDE_ENABLE 0x00001000 908c2ecf20Sopenharmony_ci#define KL_MBCR_MB0_FLOPPY_ENABLE 0x00002000 /* exist ? */ 918c2ecf20Sopenharmony_ci#define KL_MBCR_MB0_SOUND_ENABLE 0x00004000 /* hrm... */ 928c2ecf20Sopenharmony_ci#define KL_MBCR_MB0_DEV_MASK 0x00007800 938c2ecf20Sopenharmony_ci#define KL_MBCR_MB0_DEV_POWER 0x00000400 948c2ecf20Sopenharmony_ci#define KL_MBCR_MB0_DEV_RESET 0x00000200 958c2ecf20Sopenharmony_ci#define KL_MBCR_MB0_ENABLE 0x00000100 968c2ecf20Sopenharmony_ci#define KL_MBCR_MB1_PCI_ENABLE 0x08000000 /* exist ? */ 978c2ecf20Sopenharmony_ci#define KL_MBCR_MB1_IDE_ENABLE 0x10000000 988c2ecf20Sopenharmony_ci#define KL_MBCR_MB1_FLOPPY_ENABLE 0x20000000 /* exist ? */ 998c2ecf20Sopenharmony_ci#define KL_MBCR_MB1_SOUND_ENABLE 0x40000000 /* hrm... */ 1008c2ecf20Sopenharmony_ci#define KL_MBCR_MB1_DEV_MASK 0x78000000 1018c2ecf20Sopenharmony_ci#define KL_MBCR_MB1_DEV_POWER 0x04000000 1028c2ecf20Sopenharmony_ci#define KL_MBCR_MB1_DEV_RESET 0x02000000 1038c2ecf20Sopenharmony_ci#define KL_MBCR_MB1_ENABLE 0x01000000 1048c2ecf20Sopenharmony_ci 1058c2ecf20Sopenharmony_ci#define KL0_SCC_B_INTF_ENABLE 0x00000001 /* (KL Only) */ 1068c2ecf20Sopenharmony_ci#define KL0_SCC_A_INTF_ENABLE 0x00000002 1078c2ecf20Sopenharmony_ci#define KL0_SCC_SLOWPCLK 0x00000004 1088c2ecf20Sopenharmony_ci#define KL0_SCC_RESET 0x00000008 1098c2ecf20Sopenharmony_ci#define KL0_SCCA_ENABLE 0x00000010 1108c2ecf20Sopenharmony_ci#define KL0_SCCB_ENABLE 0x00000020 1118c2ecf20Sopenharmony_ci#define KL0_SCC_CELL_ENABLE 0x00000040 1128c2ecf20Sopenharmony_ci#define KL0_IRDA_HIGH_BAND 0x00000100 /* (KL Only) */ 1138c2ecf20Sopenharmony_ci#define KL0_IRDA_SOURCE2_SEL 0x00000200 /* (KL Only) */ 1148c2ecf20Sopenharmony_ci#define KL0_IRDA_SOURCE1_SEL 0x00000400 /* (KL Only) */ 1158c2ecf20Sopenharmony_ci#define KL0_PG_USB0_PMI_ENABLE 0x00000400 /* (Pangea/Intrepid Only) */ 1168c2ecf20Sopenharmony_ci#define KL0_IRDA_RESET 0x00000800 /* (KL Only) */ 1178c2ecf20Sopenharmony_ci#define KL0_PG_USB0_REF_SUSPEND_SEL 0x00000800 /* (Pangea/Intrepid Only) */ 1188c2ecf20Sopenharmony_ci#define KL0_IRDA_DEFAULT1 0x00001000 /* (KL Only) */ 1198c2ecf20Sopenharmony_ci#define KL0_PG_USB0_REF_SUSPEND 0x00001000 /* (Pangea/Intrepid Only) */ 1208c2ecf20Sopenharmony_ci#define KL0_IRDA_DEFAULT0 0x00002000 /* (KL Only) */ 1218c2ecf20Sopenharmony_ci#define KL0_PG_USB0_PAD_SUSPEND 0x00002000 /* (Pangea/Intrepid Only) */ 1228c2ecf20Sopenharmony_ci#define KL0_IRDA_FAST_CONNECT 0x00004000 /* (KL Only) */ 1238c2ecf20Sopenharmony_ci#define KL0_PG_USB1_PMI_ENABLE 0x00004000 /* (Pangea/Intrepid Only) */ 1248c2ecf20Sopenharmony_ci#define KL0_IRDA_ENABLE 0x00008000 /* (KL Only) */ 1258c2ecf20Sopenharmony_ci#define KL0_PG_USB1_REF_SUSPEND_SEL 0x00008000 /* (Pangea/Intrepid Only) */ 1268c2ecf20Sopenharmony_ci#define KL0_IRDA_CLK32_ENABLE 0x00010000 /* (KL Only) */ 1278c2ecf20Sopenharmony_ci#define KL0_PG_USB1_REF_SUSPEND 0x00010000 /* (Pangea/Intrepid Only) */ 1288c2ecf20Sopenharmony_ci#define KL0_IRDA_CLK19_ENABLE 0x00020000 /* (KL Only) */ 1298c2ecf20Sopenharmony_ci#define KL0_PG_USB1_PAD_SUSPEND 0x00020000 /* (Pangea/Intrepid Only) */ 1308c2ecf20Sopenharmony_ci#define KL0_USB0_PAD_SUSPEND0 0x00040000 1318c2ecf20Sopenharmony_ci#define KL0_USB0_PAD_SUSPEND1 0x00080000 1328c2ecf20Sopenharmony_ci#define KL0_USB0_CELL_ENABLE 0x00100000 1338c2ecf20Sopenharmony_ci#define KL0_USB1_PAD_SUSPEND0 0x00400000 1348c2ecf20Sopenharmony_ci#define KL0_USB1_PAD_SUSPEND1 0x00800000 1358c2ecf20Sopenharmony_ci#define KL0_USB1_CELL_ENABLE 0x01000000 1368c2ecf20Sopenharmony_ci#define KL0_USB_REF_SUSPEND 0x10000000 /* (KL Only) */ 1378c2ecf20Sopenharmony_ci 1388c2ecf20Sopenharmony_ci#define KL0_SERIAL_ENABLE (KL0_SCC_B_INTF_ENABLE | \ 1398c2ecf20Sopenharmony_ci KL0_SCC_SLOWPCLK | \ 1408c2ecf20Sopenharmony_ci KL0_SCC_CELL_ENABLE | KL0_SCCA_ENABLE) 1418c2ecf20Sopenharmony_ci 1428c2ecf20Sopenharmony_ci#define KL1_USB2_PMI_ENABLE 0x00000001 /* Intrepid only */ 1438c2ecf20Sopenharmony_ci#define KL1_AUDIO_SEL_22MCLK 0x00000002 /* KL/Pangea only */ 1448c2ecf20Sopenharmony_ci#define KL1_USB2_REF_SUSPEND_SEL 0x00000002 /* Intrepid only */ 1458c2ecf20Sopenharmony_ci#define KL1_USB2_REF_SUSPEND 0x00000004 /* Intrepid only */ 1468c2ecf20Sopenharmony_ci#define KL1_AUDIO_CLK_ENABLE_BIT 0x00000008 /* KL/Pangea only */ 1478c2ecf20Sopenharmony_ci#define KL1_USB2_PAD_SUSPEND_SEL 0x00000008 /* Intrepid only */ 1488c2ecf20Sopenharmony_ci#define KL1_USB2_PAD_SUSPEND0 0x00000010 /* Intrepid only */ 1498c2ecf20Sopenharmony_ci#define KL1_AUDIO_CLK_OUT_ENABLE 0x00000020 /* KL/Pangea only */ 1508c2ecf20Sopenharmony_ci#define KL1_USB2_PAD_SUSPEND1 0x00000020 /* Intrepid only */ 1518c2ecf20Sopenharmony_ci#define KL1_AUDIO_CELL_ENABLE 0x00000040 /* KL/Pangea only */ 1528c2ecf20Sopenharmony_ci#define KL1_USB2_CELL_ENABLE 0x00000040 /* Intrepid only */ 1538c2ecf20Sopenharmony_ci#define KL1_AUDIO_CHOOSE 0x00000080 /* KL/Pangea only */ 1548c2ecf20Sopenharmony_ci#define KL1_I2S0_CHOOSE 0x00000200 /* KL Only */ 1558c2ecf20Sopenharmony_ci#define KL1_I2S0_CELL_ENABLE 0x00000400 1568c2ecf20Sopenharmony_ci#define KL1_I2S0_CLK_ENABLE_BIT 0x00001000 1578c2ecf20Sopenharmony_ci#define KL1_I2S0_ENABLE 0x00002000 1588c2ecf20Sopenharmony_ci#define KL1_I2S1_CELL_ENABLE 0x00020000 1598c2ecf20Sopenharmony_ci#define KL1_I2S1_CLK_ENABLE_BIT 0x00080000 1608c2ecf20Sopenharmony_ci#define KL1_I2S1_ENABLE 0x00100000 1618c2ecf20Sopenharmony_ci#define KL1_EIDE0_ENABLE 0x00800000 /* KL/Intrepid Only */ 1628c2ecf20Sopenharmony_ci#define KL1_EIDE0_RESET_N 0x01000000 /* KL/Intrepid Only */ 1638c2ecf20Sopenharmony_ci#define KL1_EIDE1_ENABLE 0x04000000 /* KL Only */ 1648c2ecf20Sopenharmony_ci#define KL1_EIDE1_RESET_N 0x08000000 /* KL Only */ 1658c2ecf20Sopenharmony_ci#define KL1_UIDE_ENABLE 0x20000000 /* KL/Pangea Only */ 1668c2ecf20Sopenharmony_ci#define KL1_UIDE_RESET_N 0x40000000 /* KL/Pangea Only */ 1678c2ecf20Sopenharmony_ci 1688c2ecf20Sopenharmony_ci#define KL2_IOBUS_ENABLE 0x00000002 1698c2ecf20Sopenharmony_ci#define KL2_SLEEP_STATE_BIT 0x00000100 /* KL Only */ 1708c2ecf20Sopenharmony_ci#define KL2_PG_STOP_ALL_CLOCKS 0x00000100 /* Pangea Only */ 1718c2ecf20Sopenharmony_ci#define KL2_MPIC_ENABLE 0x00020000 1728c2ecf20Sopenharmony_ci#define KL2_CARDSLOT_RESET 0x00040000 /* Pangea/Intrepid Only */ 1738c2ecf20Sopenharmony_ci#define KL2_ALT_DATA_OUT 0x02000000 /* KL Only ??? */ 1748c2ecf20Sopenharmony_ci#define KL2_MEM_IS_BIG 0x04000000 1758c2ecf20Sopenharmony_ci#define KL2_CARDSEL_16 0x08000000 1768c2ecf20Sopenharmony_ci 1778c2ecf20Sopenharmony_ci#define KL3_SHUTDOWN_PLL_TOTAL 0x00000001 /* KL/Pangea only */ 1788c2ecf20Sopenharmony_ci#define KL3_SHUTDOWN_PLLKW6 0x00000002 /* KL/Pangea only */ 1798c2ecf20Sopenharmony_ci#define KL3_IT_SHUTDOWN_PLL3 0x00000002 /* Intrepid only */ 1808c2ecf20Sopenharmony_ci#define KL3_SHUTDOWN_PLLKW4 0x00000004 /* KL/Pangea only */ 1818c2ecf20Sopenharmony_ci#define KL3_IT_SHUTDOWN_PLL2 0x00000004 /* Intrepid only */ 1828c2ecf20Sopenharmony_ci#define KL3_SHUTDOWN_PLLKW35 0x00000008 /* KL/Pangea only */ 1838c2ecf20Sopenharmony_ci#define KL3_IT_SHUTDOWN_PLL1 0x00000008 /* Intrepid only */ 1848c2ecf20Sopenharmony_ci#define KL3_SHUTDOWN_PLLKW12 0x00000010 /* KL Only */ 1858c2ecf20Sopenharmony_ci#define KL3_IT_ENABLE_PLL3_SHUTDOWN 0x00000010 /* Intrepid only */ 1868c2ecf20Sopenharmony_ci#define KL3_PLL_RESET 0x00000020 /* KL/Pangea only */ 1878c2ecf20Sopenharmony_ci#define KL3_IT_ENABLE_PLL2_SHUTDOWN 0x00000020 /* Intrepid only */ 1888c2ecf20Sopenharmony_ci#define KL3_IT_ENABLE_PLL1_SHUTDOWN 0x00000010 /* Intrepid only */ 1898c2ecf20Sopenharmony_ci#define KL3_SHUTDOWN_PLL2X 0x00000080 /* KL Only */ 1908c2ecf20Sopenharmony_ci#define KL3_CLK66_ENABLE 0x00000100 /* KL Only */ 1918c2ecf20Sopenharmony_ci#define KL3_CLK49_ENABLE 0x00000200 1928c2ecf20Sopenharmony_ci#define KL3_CLK45_ENABLE 0x00000400 1938c2ecf20Sopenharmony_ci#define KL3_CLK31_ENABLE 0x00000800 /* KL/Pangea only */ 1948c2ecf20Sopenharmony_ci#define KL3_TIMER_CLK18_ENABLE 0x00001000 1958c2ecf20Sopenharmony_ci#define KL3_I2S1_CLK18_ENABLE 0x00002000 1968c2ecf20Sopenharmony_ci#define KL3_I2S0_CLK18_ENABLE 0x00004000 1978c2ecf20Sopenharmony_ci#define KL3_VIA_CLK16_ENABLE 0x00008000 /* KL/Pangea only */ 1988c2ecf20Sopenharmony_ci#define KL3_IT_VIA_CLK32_ENABLE 0x00008000 /* Intrepid only */ 1998c2ecf20Sopenharmony_ci#define KL3_STOPPING33_ENABLED 0x00080000 /* KL Only */ 2008c2ecf20Sopenharmony_ci#define KL3_PG_PLL_ENABLE_TEST 0x00080000 /* Pangea Only */ 2018c2ecf20Sopenharmony_ci 2028c2ecf20Sopenharmony_ci/* Intrepid USB bus 2, port 0,1 */ 2038c2ecf20Sopenharmony_ci#define KL3_IT_PORT_WAKEUP_ENABLE(p) (0x00080000 << ((p)<<3)) 2048c2ecf20Sopenharmony_ci#define KL3_IT_PORT_RESUME_WAKE_EN(p) (0x00040000 << ((p)<<3)) 2058c2ecf20Sopenharmony_ci#define KL3_IT_PORT_CONNECT_WAKE_EN(p) (0x00020000 << ((p)<<3)) 2068c2ecf20Sopenharmony_ci#define KL3_IT_PORT_DISCONNECT_WAKE_EN(p) (0x00010000 << ((p)<<3)) 2078c2ecf20Sopenharmony_ci#define KL3_IT_PORT_RESUME_STAT(p) (0x00300000 << ((p)<<3)) 2088c2ecf20Sopenharmony_ci#define KL3_IT_PORT_CONNECT_STAT(p) (0x00200000 << ((p)<<3)) 2098c2ecf20Sopenharmony_ci#define KL3_IT_PORT_DISCONNECT_STAT(p) (0x00100000 << ((p)<<3)) 2108c2ecf20Sopenharmony_ci 2118c2ecf20Sopenharmony_ci/* Port 0,1 : bus 0, port 2,3 : bus 1 */ 2128c2ecf20Sopenharmony_ci#define KL4_PORT_WAKEUP_ENABLE(p) (0x00000008 << ((p)<<3)) 2138c2ecf20Sopenharmony_ci#define KL4_PORT_RESUME_WAKE_EN(p) (0x00000004 << ((p)<<3)) 2148c2ecf20Sopenharmony_ci#define KL4_PORT_CONNECT_WAKE_EN(p) (0x00000002 << ((p)<<3)) 2158c2ecf20Sopenharmony_ci#define KL4_PORT_DISCONNECT_WAKE_EN(p) (0x00000001 << ((p)<<3)) 2168c2ecf20Sopenharmony_ci#define KL4_PORT_RESUME_STAT(p) (0x00000040 << ((p)<<3)) 2178c2ecf20Sopenharmony_ci#define KL4_PORT_CONNECT_STAT(p) (0x00000020 << ((p)<<3)) 2188c2ecf20Sopenharmony_ci#define KL4_PORT_DISCONNECT_STAT(p) (0x00000010 << ((p)<<3)) 2198c2ecf20Sopenharmony_ci 2208c2ecf20Sopenharmony_ci/* Pangea and Intrepid only */ 2218c2ecf20Sopenharmony_ci#define KL5_VIA_USE_CLK31 0000000001 /* Pangea Only */ 2228c2ecf20Sopenharmony_ci#define KL5_SCC_USE_CLK31 0x00000002 /* Pangea Only */ 2238c2ecf20Sopenharmony_ci#define KL5_PWM_CLK32_EN 0x00000004 2248c2ecf20Sopenharmony_ci#define KL5_CLK3_68_EN 0x00000010 2258c2ecf20Sopenharmony_ci#define KL5_CLK32_EN 0x00000020 2268c2ecf20Sopenharmony_ci 2278c2ecf20Sopenharmony_ci 2288c2ecf20Sopenharmony_ci/* K2 definitions */ 2298c2ecf20Sopenharmony_ci#define K2_FCR0_USB0_SWRESET 0x00200000 2308c2ecf20Sopenharmony_ci#define K2_FCR0_USB1_SWRESET 0x02000000 2318c2ecf20Sopenharmony_ci#define K2_FCR0_RING_PME_DISABLE 0x08000000 2328c2ecf20Sopenharmony_ci 2338c2ecf20Sopenharmony_ci#define K2_FCR1_PCI1_BUS_RESET_N 0x00000010 2348c2ecf20Sopenharmony_ci#define K2_FCR1_PCI1_SLEEP_RESET_EN 0x00000020 2358c2ecf20Sopenharmony_ci#define K2_FCR1_I2S0_CELL_ENABLE 0x00000400 2368c2ecf20Sopenharmony_ci#define K2_FCR1_I2S0_RESET 0x00000800 2378c2ecf20Sopenharmony_ci#define K2_FCR1_I2S0_CLK_ENABLE_BIT 0x00001000 2388c2ecf20Sopenharmony_ci#define K2_FCR1_I2S0_ENABLE 0x00002000 2398c2ecf20Sopenharmony_ci#define K2_FCR1_PCI1_CLK_ENABLE 0x00004000 2408c2ecf20Sopenharmony_ci#define K2_FCR1_FW_CLK_ENABLE 0x00008000 2418c2ecf20Sopenharmony_ci#define K2_FCR1_FW_RESET_N 0x00010000 2428c2ecf20Sopenharmony_ci#define K2_FCR1_I2S1_CELL_ENABLE 0x00020000 2438c2ecf20Sopenharmony_ci#define K2_FCR1_I2S1_CLK_ENABLE_BIT 0x00080000 2448c2ecf20Sopenharmony_ci#define K2_FCR1_I2S1_ENABLE 0x00100000 2458c2ecf20Sopenharmony_ci#define K2_FCR1_GMAC_CLK_ENABLE 0x00400000 2468c2ecf20Sopenharmony_ci#define K2_FCR1_GMAC_POWER_DOWN 0x00800000 2478c2ecf20Sopenharmony_ci#define K2_FCR1_GMAC_RESET_N 0x01000000 2488c2ecf20Sopenharmony_ci#define K2_FCR1_SATA_CLK_ENABLE 0x02000000 2498c2ecf20Sopenharmony_ci#define K2_FCR1_SATA_POWER_DOWN 0x04000000 2508c2ecf20Sopenharmony_ci#define K2_FCR1_SATA_RESET_N 0x08000000 2518c2ecf20Sopenharmony_ci#define K2_FCR1_UATA_CLK_ENABLE 0x10000000 2528c2ecf20Sopenharmony_ci#define K2_FCR1_UATA_RESET_N 0x40000000 2538c2ecf20Sopenharmony_ci#define K2_FCR1_UATA_CHOOSE_CLK66 0x80000000 2548c2ecf20Sopenharmony_ci 2558c2ecf20Sopenharmony_ci/* Shasta definitions */ 2568c2ecf20Sopenharmony_ci#define SH_FCR1_I2S2_CELL_ENABLE 0x00000010 2578c2ecf20Sopenharmony_ci#define SH_FCR1_I2S2_CLK_ENABLE_BIT 0x00000040 2588c2ecf20Sopenharmony_ci#define SH_FCR1_I2S2_ENABLE 0x00000080 2598c2ecf20Sopenharmony_ci#define SH_FCR3_I2S2_CLK18_ENABLE 0x00008000 2608c2ecf20Sopenharmony_ci 2618c2ecf20Sopenharmony_ci#endif /* __KERNEL__ */ 2628c2ecf20Sopenharmony_ci#endif /* _ASM_POWERPC_KEYLARGO_H */ 263