Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Vitaly Andrianov | 7bcf4d6 | 2014-04-04 13:16:53 -0400 | [diff] [blame] | 2 | /* |
| 3 | * K2HK: SoC definitions |
| 4 | * |
| 5 | * (C) Copyright 2012-2014 |
| 6 | * Texas Instruments Incorporated, <www.ti.com> |
Vitaly Andrianov | 7bcf4d6 | 2014-04-04 13:16:53 -0400 | [diff] [blame] | 7 | */ |
Khoronzhuk, Ivan | d5cb1bb | 2014-07-09 23:44:44 +0300 | [diff] [blame] | 8 | |
Vitaly Andrianov | 7bcf4d6 | 2014-04-04 13:16:53 -0400 | [diff] [blame] | 9 | #ifndef __ASM_ARCH_HARDWARE_K2HK_H |
| 10 | #define __ASM_ARCH_HARDWARE_K2HK_H |
| 11 | |
Simon Glass | 4dcacfc | 2020-05-10 11:40:13 -0600 | [diff] [blame] | 12 | #ifndef __ASSEMBLY__ |
| 13 | #include <linux/bitops.h> |
| 14 | #endif |
| 15 | |
Khoronzhuk, Ivan | d5cb1bb | 2014-07-09 23:44:44 +0300 | [diff] [blame] | 16 | #define KS2_ARM_PLL_EN BIT(13) |
Vitaly Andrianov | 7bcf4d6 | 2014-04-04 13:16:53 -0400 | [diff] [blame] | 17 | |
Vitaly Andrianov | 7bcf4d6 | 2014-04-04 13:16:53 -0400 | [diff] [blame] | 18 | /* PA SS Registers */ |
Khoronzhuk, Ivan | d5cb1bb | 2014-07-09 23:44:44 +0300 | [diff] [blame] | 19 | #define KS2_PASS_BASE 0x02000000 |
Vitaly Andrianov | 7bcf4d6 | 2014-04-04 13:16:53 -0400 | [diff] [blame] | 20 | |
Vitaly Andrianov | 7bcf4d6 | 2014-04-04 13:16:53 -0400 | [diff] [blame] | 21 | /* Power and Sleep Controller (PSC) Domains */ |
Khoronzhuk, Ivan | d5cb1bb | 2014-07-09 23:44:44 +0300 | [diff] [blame] | 22 | #define KS2_LPSC_MOD 0 |
| 23 | #define KS2_LPSC_DUMMY1 1 |
| 24 | #define KS2_LPSC_USB 2 |
| 25 | #define KS2_LPSC_EMIF25_SPI 3 |
| 26 | #define KS2_LPSC_TSIP 4 |
| 27 | #define KS2_LPSC_DEBUGSS_TRC 5 |
| 28 | #define KS2_LPSC_TETB_TRC 6 |
| 29 | #define KS2_LPSC_PKTPROC 7 |
| 30 | #define KS2_LPSC_PA KS2_LPSC_PKTPROC |
| 31 | #define KS2_LPSC_SGMII 8 |
| 32 | #define KS2_LPSC_CPGMAC KS2_LPSC_SGMII |
| 33 | #define KS2_LPSC_CRYPTO 9 |
| 34 | #define KS2_LPSC_PCIE 10 |
| 35 | #define KS2_LPSC_SRIO 11 |
| 36 | #define KS2_LPSC_VUSR0 12 |
| 37 | #define KS2_LPSC_CHIP_SRSS 13 |
| 38 | #define KS2_LPSC_MSMC 14 |
| 39 | #define KS2_LPSC_GEM_1 16 |
| 40 | #define KS2_LPSC_GEM_2 17 |
| 41 | #define KS2_LPSC_GEM_3 18 |
| 42 | #define KS2_LPSC_GEM_4 19 |
| 43 | #define KS2_LPSC_GEM_5 20 |
| 44 | #define KS2_LPSC_GEM_6 21 |
| 45 | #define KS2_LPSC_GEM_7 22 |
| 46 | #define KS2_LPSC_EMIF4F_DDR3A 23 |
| 47 | #define KS2_LPSC_EMIF4F_DDR3B 24 |
| 48 | #define KS2_LPSC_TAC 25 |
| 49 | #define KS2_LPSC_RAC 26 |
| 50 | #define KS2_LPSC_RAC_1 27 |
| 51 | #define KS2_LPSC_FFTC_A 28 |
| 52 | #define KS2_LPSC_FFTC_B 29 |
| 53 | #define KS2_LPSC_FFTC_C 30 |
| 54 | #define KS2_LPSC_FFTC_D 31 |
| 55 | #define KS2_LPSC_FFTC_E 32 |
| 56 | #define KS2_LPSC_FFTC_F 33 |
| 57 | #define KS2_LPSC_AI2 34 |
| 58 | #define KS2_LPSC_TCP3D_0 35 |
| 59 | #define KS2_LPSC_TCP3D_1 36 |
| 60 | #define KS2_LPSC_TCP3D_2 37 |
| 61 | #define KS2_LPSC_TCP3D_3 38 |
| 62 | #define KS2_LPSC_VCP2X4_A 39 |
| 63 | #define KS2_LPSC_CP2X4_B 40 |
| 64 | #define KS2_LPSC_VCP2X4_C 41 |
| 65 | #define KS2_LPSC_VCP2X4_D 42 |
| 66 | #define KS2_LPSC_VCP2X4_E 43 |
| 67 | #define KS2_LPSC_VCP2X4_F 44 |
| 68 | #define KS2_LPSC_VCP2X4_G 45 |
| 69 | #define KS2_LPSC_VCP2X4_H 46 |
| 70 | #define KS2_LPSC_BCP 47 |
| 71 | #define KS2_LPSC_DXB 48 |
| 72 | #define KS2_LPSC_VUSR1 49 |
| 73 | #define KS2_LPSC_XGE 50 |
| 74 | #define KS2_LPSC_ARM_SREFLEX 51 |
Vitaly Andrianov | 7bcf4d6 | 2014-04-04 13:16:53 -0400 | [diff] [blame] | 75 | |
Vitaly Andrianov | 7bcf4d6 | 2014-04-04 13:16:53 -0400 | [diff] [blame] | 76 | /* DDR3B definitions */ |
Khoronzhuk, Ivan | d5cb1bb | 2014-07-09 23:44:44 +0300 | [diff] [blame] | 77 | #define KS2_DDR3B_EMIF_CTRL_BASE 0x21020000 |
| 78 | #define KS2_DDR3B_EMIF_DATA_BASE 0x60000000 |
| 79 | #define KS2_DDR3B_DDRPHYC 0x02328000 |
Vitaly Andrianov | 7bcf4d6 | 2014-04-04 13:16:53 -0400 | [diff] [blame] | 80 | |
Vitaly Andrianov | 1917301 | 2014-10-22 17:47:58 +0300 | [diff] [blame] | 81 | #define KS2_CIC2_DDR3_ECC_IRQ_NUM 0x0D3 /* DDR3 ECC system irq number */ |
| 82 | #define KS2_CIC2_DDR3_ECC_CHAN_NUM 0x01D /* DDR3 ECC int mapped to CIC2 |
| 83 | channel 29 */ |
| 84 | |
Hao Zhang | ae3ed41 | 2014-10-22 17:18:22 +0300 | [diff] [blame] | 85 | /* SGMII SerDes */ |
| 86 | #define KS2_LANES_PER_SGMII_SERDES 4 |
| 87 | |
Hao Zhang | 58a0d66 | 2014-07-09 19:48:44 +0300 | [diff] [blame] | 88 | /* Number of DSP cores */ |
| 89 | #define KS2_NUM_DSPS 8 |
| 90 | |
Khoronzhuk, Ivan | 89a6652 | 2014-09-05 19:02:46 +0300 | [diff] [blame] | 91 | /* NETCP pktdma */ |
| 92 | #define KS2_NETCP_PDMA_CTRL_BASE 0x02004000 |
| 93 | #define KS2_NETCP_PDMA_TX_BASE 0x02004400 |
| 94 | #define KS2_NETCP_PDMA_TX_CH_NUM 9 |
| 95 | #define KS2_NETCP_PDMA_RX_BASE 0x02004800 |
| 96 | #define KS2_NETCP_PDMA_RX_CH_NUM 26 |
| 97 | #define KS2_NETCP_PDMA_SCHED_BASE 0x02004c00 |
| 98 | #define KS2_NETCP_PDMA_RX_FLOW_BASE 0x02005000 |
| 99 | #define KS2_NETCP_PDMA_RX_FLOW_NUM 32 |
Khoronzhuk, Ivan | 89a6652 | 2014-09-05 19:02:46 +0300 | [diff] [blame] | 100 | #define KS2_NETCP_PDMA_TX_SND_QUEUE 648 |
| 101 | |
Khoronzhuk, Ivan | f2c13ba | 2014-09-29 22:17:22 +0300 | [diff] [blame] | 102 | /* NETCP */ |
| 103 | #define KS2_NETCP_BASE 0x02000000 |
Khoronzhuk, Ivan | 915cff4 | 2014-09-29 22:17:21 +0300 | [diff] [blame] | 104 | |
Vitaly Andrianov | 7bcf4d6 | 2014-04-04 13:16:53 -0400 | [diff] [blame] | 105 | #endif /* __ASM_ARCH_HARDWARE_H */ |