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