Apurva Nandan | b93ab92 | 2024-02-24 01:51:44 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 2 | /* |
| 3 | * J784S4 specific device platform data |
| 4 | * |
| 5 | * This file is auto generated. Please do not hand edit and report any issues |
| 6 | * to Bryan Brattlof <bb@ti.com>. |
| 7 | * |
| 8 | * Copyright (C) 2020-2024 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, 0x00420000), |
| 16 | [2] = PSC(2, 0x00400000), |
| 17 | }; |
| 18 | |
| 19 | static struct ti_pd soc_pd_list[] = { |
| 20 | [0] = PSC_PD(0, &soc_psc_list[0], NULL), |
| 21 | [1] = PSC_PD(3, &soc_psc_list[1], NULL), |
| 22 | [2] = PSC_PD(0, &soc_psc_list[2], NULL), |
| 23 | [3] = PSC_PD(1, &soc_psc_list[2], &soc_pd_list[2]), |
| 24 | [4] = PSC_PD(14, &soc_psc_list[2], NULL), |
| 25 | [5] = PSC_PD(15, &soc_psc_list[2], &soc_pd_list[4]), |
| 26 | [6] = PSC_PD(16, &soc_psc_list[2], &soc_pd_list[4]), |
| 27 | [7] = PSC_PD(38, &soc_psc_list[2], NULL), |
| 28 | }; |
| 29 | |
| 30 | static struct ti_lpsc soc_lpsc_list[] = { |
| 31 | [0] = PSC_LPSC(0, &soc_psc_list[0], &soc_pd_list[0], NULL), |
| 32 | [1] = PSC_LPSC(3, &soc_psc_list[0], &soc_pd_list[0], NULL), |
| 33 | [2] = PSC_LPSC(10, &soc_psc_list[0], &soc_pd_list[0], NULL), |
| 34 | [3] = PSC_LPSC(11, &soc_psc_list[0], &soc_pd_list[0], NULL), |
| 35 | [4] = PSC_LPSC(12, &soc_psc_list[0], &soc_pd_list[0], NULL), |
| 36 | [5] = PSC_LPSC(12, &soc_psc_list[1], &soc_pd_list[1], &soc_lpsc_list[6]), |
| 37 | [6] = PSC_LPSC(13, &soc_psc_list[1], &soc_pd_list[1], NULL), |
| 38 | [7] = PSC_LPSC(0, &soc_psc_list[2], &soc_pd_list[2], NULL), |
| 39 | [8] = PSC_LPSC(9, &soc_psc_list[2], &soc_pd_list[2], &soc_lpsc_list[2]), |
| 40 | [9] = PSC_LPSC(14, &soc_psc_list[2], &soc_pd_list[2], &soc_lpsc_list[10]), |
| 41 | [10] = PSC_LPSC(15, &soc_psc_list[2], &soc_pd_list[2], NULL), |
| 42 | [11] = PSC_LPSC(16, &soc_psc_list[2], &soc_pd_list[2], &soc_lpsc_list[12]), |
| 43 | [12] = PSC_LPSC(17, &soc_psc_list[2], &soc_pd_list[2], NULL), |
| 44 | [13] = PSC_LPSC(20, &soc_psc_list[2], &soc_pd_list[2], &soc_lpsc_list[5]), |
| 45 | [14] = PSC_LPSC(23, &soc_psc_list[2], &soc_pd_list[2], &soc_lpsc_list[5]), |
| 46 | [15] = PSC_LPSC(25, &soc_psc_list[2], &soc_pd_list[2], &soc_lpsc_list[5]), |
| 47 | [16] = PSC_LPSC(43, &soc_psc_list[2], &soc_pd_list[3], NULL), |
| 48 | [17] = PSC_LPSC(45, &soc_psc_list[2], &soc_pd_list[3], NULL), |
| 49 | [18] = PSC_LPSC(78, &soc_psc_list[2], &soc_pd_list[4], NULL), |
| 50 | [19] = PSC_LPSC(80, &soc_psc_list[2], &soc_pd_list[5], &soc_lpsc_list[18]), |
| 51 | [20] = PSC_LPSC(81, &soc_psc_list[2], &soc_pd_list[6], &soc_lpsc_list[18]), |
| 52 | [21] = PSC_LPSC(120, &soc_psc_list[2], &soc_pd_list[7], &soc_lpsc_list[22]), |
| 53 | [22] = PSC_LPSC(121, &soc_psc_list[2], &soc_pd_list[7], NULL), |
| 54 | }; |
| 55 | |
| 56 | static struct ti_dev soc_dev_list[] = { |
| 57 | PSC_DEV(35, &soc_lpsc_list[0]), |
| 58 | PSC_DEV(160, &soc_lpsc_list[0]), |
| 59 | PSC_DEV(161, &soc_lpsc_list[0]), |
| 60 | PSC_DEV(162, &soc_lpsc_list[0]), |
| 61 | PSC_DEV(243, &soc_lpsc_list[0]), |
| 62 | PSC_DEV(149, &soc_lpsc_list[0]), |
| 63 | PSC_DEV(167, &soc_lpsc_list[1]), |
| 64 | PSC_DEV(279, &soc_lpsc_list[1]), |
| 65 | PSC_DEV(161, &soc_lpsc_list[2]), |
| 66 | PSC_DEV(162, &soc_lpsc_list[3]), |
| 67 | PSC_DEV(160, &soc_lpsc_list[4]), |
| 68 | PSC_DEV(139, &soc_lpsc_list[5]), |
| 69 | PSC_DEV(194, &soc_lpsc_list[6]), |
| 70 | PSC_DEV(78, &soc_lpsc_list[7]), |
| 71 | PSC_DEV(61, &soc_lpsc_list[8]), |
| 72 | PSC_DEV(131, &soc_lpsc_list[9]), |
| 73 | PSC_DEV(191, &soc_lpsc_list[10]), |
| 74 | PSC_DEV(132, &soc_lpsc_list[11]), |
| 75 | PSC_DEV(192, &soc_lpsc_list[12]), |
| 76 | PSC_DEV(398, &soc_lpsc_list[13]), |
| 77 | PSC_DEV(141, &soc_lpsc_list[14]), |
| 78 | PSC_DEV(140, &soc_lpsc_list[15]), |
| 79 | PSC_DEV(146, &soc_lpsc_list[16]), |
| 80 | PSC_DEV(392, &soc_lpsc_list[17]), |
| 81 | PSC_DEV(395, &soc_lpsc_list[17]), |
| 82 | PSC_DEV(198, &soc_lpsc_list[18]), |
| 83 | PSC_DEV(202, &soc_lpsc_list[19]), |
| 84 | PSC_DEV(203, &soc_lpsc_list[20]), |
| 85 | PSC_DEV(133, &soc_lpsc_list[21]), |
| 86 | PSC_DEV(193, &soc_lpsc_list[22]), |
| 87 | }; |
| 88 | |
| 89 | const struct ti_k3_pd_platdata j784s4_pd_platdata = { |
| 90 | .psc = soc_psc_list, |
| 91 | .pd = soc_pd_list, |
| 92 | .lpsc = soc_lpsc_list, |
| 93 | .devs = soc_dev_list, |
| 94 | .num_psc = ARRAY_SIZE(soc_psc_list), |
| 95 | .num_pd = ARRAY_SIZE(soc_pd_list), |
| 96 | .num_lpsc = ARRAY_SIZE(soc_lpsc_list), |
| 97 | .num_devs = ARRAY_SIZE(soc_dev_list), |
| 98 | }; |