David Huang | 681023a | 2022-01-25 20:56:31 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * J721S2 specific device platform data |
| 4 | * |
| 5 | * This file is auto generated. Please do not hand edit and report any issues |
| 6 | * to Dave Gerlach <d-gerlach@ti.com>. |
| 7 | * |
| 8 | * Copyright (C) 2020-2021 Texas Instruments Incorporated - https://www.ti.com/ |
| 9 | */ |
| 10 | |
| 11 | #include "k3-dev.h" |
| 12 | |
| 13 | static struct ti_psc soc_psc_list[] = { |
| 14 | [0] = PSC(0, 0x42000000), |
| 15 | [1] = PSC(1, 0x00400000), |
| 16 | }; |
| 17 | |
| 18 | static struct ti_pd soc_pd_list[] = { |
| 19 | [0] = PSC_PD(0, &soc_psc_list[0], NULL), |
| 20 | [1] = PSC_PD(0, &soc_psc_list[1], NULL), |
| 21 | [2] = PSC_PD(1, &soc_psc_list[1], &soc_pd_list[1]), |
| 22 | [3] = PSC_PD(14, &soc_psc_list[1], NULL), |
| 23 | [4] = PSC_PD(15, &soc_psc_list[1], &soc_pd_list[3]), |
| 24 | [5] = PSC_PD(16, &soc_psc_list[1], &soc_pd_list[3]), |
| 25 | }; |
| 26 | |
| 27 | static struct ti_lpsc soc_lpsc_list[] = { |
| 28 | [0] = PSC_LPSC(0, &soc_psc_list[0], &soc_pd_list[0], NULL), |
| 29 | [1] = PSC_LPSC(3, &soc_psc_list[0], &soc_pd_list[0], NULL), |
| 30 | [2] = PSC_LPSC(10, &soc_psc_list[0], &soc_pd_list[0], NULL), |
| 31 | [3] = PSC_LPSC(11, &soc_psc_list[0], &soc_pd_list[0], NULL), |
| 32 | [4] = PSC_LPSC(12, &soc_psc_list[0], &soc_pd_list[0], NULL), |
| 33 | [5] = PSC_LPSC(0, &soc_psc_list[1], &soc_pd_list[1], NULL), |
| 34 | [6] = PSC_LPSC(9, &soc_psc_list[1], &soc_pd_list[1], &soc_lpsc_list[2]), |
| 35 | [7] = PSC_LPSC(14, &soc_psc_list[1], &soc_pd_list[1], &soc_lpsc_list[8]), |
| 36 | [8] = PSC_LPSC(15, &soc_psc_list[1], &soc_pd_list[1], NULL), |
| 37 | [9] = PSC_LPSC(16, &soc_psc_list[1], &soc_pd_list[1], &soc_lpsc_list[10]), |
| 38 | [10] = PSC_LPSC(17, &soc_psc_list[1], &soc_pd_list[1], NULL), |
| 39 | [11] = PSC_LPSC(20, &soc_psc_list[1], &soc_pd_list[1], &soc_lpsc_list[4]), |
| 40 | [12] = PSC_LPSC(23, &soc_psc_list[1], &soc_pd_list[1], &soc_lpsc_list[4]), |
| 41 | [13] = PSC_LPSC(25, &soc_psc_list[1], &soc_pd_list[1], &soc_lpsc_list[4]), |
| 42 | [14] = PSC_LPSC(43, &soc_psc_list[1], &soc_pd_list[2], NULL), |
| 43 | [15] = PSC_LPSC(45, &soc_psc_list[1], &soc_pd_list[2], NULL), |
| 44 | [16] = PSC_LPSC(78, &soc_psc_list[1], &soc_pd_list[3], NULL), |
| 45 | [17] = PSC_LPSC(80, &soc_psc_list[1], &soc_pd_list[4], &soc_lpsc_list[16]), |
| 46 | [18] = PSC_LPSC(81, &soc_psc_list[1], &soc_pd_list[5], &soc_lpsc_list[16]), |
| 47 | }; |
| 48 | |
| 49 | static struct ti_dev soc_dev_list[] = { |
| 50 | PSC_DEV(108, &soc_lpsc_list[0]), |
| 51 | PSC_DEV(109, &soc_lpsc_list[0]), |
| 52 | PSC_DEV(110, &soc_lpsc_list[0]), |
| 53 | PSC_DEV(180, &soc_lpsc_list[0]), |
| 54 | PSC_DEV(149, &soc_lpsc_list[0]), |
| 55 | PSC_DEV(115, &soc_lpsc_list[1]), |
| 56 | PSC_DEV(223, &soc_lpsc_list[1]), |
| 57 | PSC_DEV(109, &soc_lpsc_list[2]), |
| 58 | PSC_DEV(110, &soc_lpsc_list[3]), |
| 59 | PSC_DEV(108, &soc_lpsc_list[4]), |
| 60 | PSC_DEV(43, &soc_lpsc_list[5]), |
| 61 | PSC_DEV(61, &soc_lpsc_list[6]), |
| 62 | PSC_DEV(96, &soc_lpsc_list[7]), |
| 63 | PSC_DEV(138, &soc_lpsc_list[8]), |
| 64 | PSC_DEV(97, &soc_lpsc_list[9]), |
| 65 | PSC_DEV(139, &soc_lpsc_list[10]), |
| 66 | PSC_DEV(360, &soc_lpsc_list[11]), |
| 67 | PSC_DEV(99, &soc_lpsc_list[12]), |
| 68 | PSC_DEV(98, &soc_lpsc_list[13]), |
| 69 | PSC_DEV(146, &soc_lpsc_list[14]), |
| 70 | PSC_DEV(357, &soc_lpsc_list[15]), |
| 71 | PSC_DEV(4, &soc_lpsc_list[16]), |
| 72 | PSC_DEV(202, &soc_lpsc_list[17]), |
| 73 | PSC_DEV(203, &soc_lpsc_list[18]), |
| 74 | }; |
| 75 | |
| 76 | const struct ti_k3_pd_platdata j721s2_pd_platdata = { |
| 77 | .psc = soc_psc_list, |
| 78 | .pd = soc_pd_list, |
| 79 | .lpsc = soc_lpsc_list, |
| 80 | .devs = soc_dev_list, |
| 81 | .num_psc = 2, |
| 82 | .num_pd = 6, |
| 83 | .num_lpsc = 19, |
| 84 | .num_devs = 24, |
| 85 | }; |