summaryrefslogtreecommitdiff
path: root/arch/arm/mach-k3/am62x/dev-data.c
blob: f4133135338ec1a765dbe1d375f4d03a7cf2dc07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// SPDX-License-Identifier: GPL-2.0+
/*
 * AM62X specific device platform data
 *
 * This file is auto generated. Please do not hand edit and report any issues
 * to Bryan Brattlof <bb@ti.com>.
 *
 * Copyright (C) 2020-2023 Texas Instruments Incorporated - https://www.ti.com/
 */

#include "k3-dev.h"

static struct ti_psc soc_psc_list[] = {
	[0] = PSC(0, 0x04000000),
	[1] = PSC(1, 0x00400000),
};

static struct ti_pd soc_pd_list[] = {
	[0] = PSC_PD(0, &soc_psc_list[1], NULL),
	[1] = PSC_PD(2, &soc_psc_list[1], &soc_pd_list[0]),
	[2] = PSC_PD(3, &soc_psc_list[1], &soc_pd_list[0]),
	[3] = PSC_PD(4, &soc_psc_list[1], &soc_pd_list[2]),
	[4] = PSC_PD(5, &soc_psc_list[1], &soc_pd_list[2]),
};

static struct ti_lpsc soc_lpsc_list[] = {
	[0] = PSC_LPSC(0, &soc_psc_list[1], &soc_pd_list[0], NULL),
	[1] = PSC_LPSC(9, &soc_psc_list[1], &soc_pd_list[0], &soc_lpsc_list[12]),
	[2] = PSC_LPSC(10, &soc_psc_list[1], &soc_pd_list[0], &soc_lpsc_list[1]),
	[3] = PSC_LPSC(11, &soc_psc_list[1], &soc_pd_list[0], &soc_lpsc_list[2]),
	[4] = PSC_LPSC(12, &soc_psc_list[1], &soc_pd_list[0], &soc_lpsc_list[9]),
	[5] = PSC_LPSC(13, &soc_psc_list[1], &soc_pd_list[0], &soc_lpsc_list[10]),
	[6] = PSC_LPSC(15, &soc_psc_list[1], &soc_pd_list[0], &soc_lpsc_list[12]),
	[7] = PSC_LPSC(20, &soc_psc_list[1], &soc_pd_list[0], &soc_lpsc_list[12]),
	[8] = PSC_LPSC(21, &soc_psc_list[1], &soc_pd_list[0], &soc_lpsc_list[12]),
	[9] = PSC_LPSC(23, &soc_psc_list[1], &soc_pd_list[0], &soc_lpsc_list[12]),
	[10] = PSC_LPSC(24, &soc_psc_list[1], &soc_pd_list[0], &soc_lpsc_list[12]),
	[11] = PSC_LPSC(28, &soc_psc_list[1], &soc_pd_list[0], &soc_lpsc_list[12]),
	[12] = PSC_LPSC(34, &soc_psc_list[1], &soc_pd_list[0], &soc_lpsc_list[12]),
	[13] = PSC_LPSC(41, &soc_psc_list[1], &soc_pd_list[1], &soc_lpsc_list[12]),
	[14] = PSC_LPSC(42, &soc_psc_list[1], &soc_pd_list[2], &soc_lpsc_list[12]),
	[15] = PSC_LPSC(45, &soc_psc_list[1], &soc_pd_list[3], &soc_lpsc_list[14]),
	[16] = PSC_LPSC(46, &soc_psc_list[1], &soc_pd_list[4], &soc_lpsc_list[14]),
};

static struct ti_dev soc_dev_list[] = {
	PSC_DEV(16, &soc_lpsc_list[0]),
	PSC_DEV(77, &soc_lpsc_list[0]),
	PSC_DEV(61, &soc_lpsc_list[0]),
	PSC_DEV(95, &soc_lpsc_list[0]),
	PSC_DEV(107, &soc_lpsc_list[0]),
	PSC_DEV(170, &soc_lpsc_list[1]),
	PSC_DEV(177, &soc_lpsc_list[2]),
	PSC_DEV(55, &soc_lpsc_list[3]),
	PSC_DEV(178, &soc_lpsc_list[4]),
	PSC_DEV(179, &soc_lpsc_list[5]),
	PSC_DEV(54, &soc_lpsc_list[6]),
	PSC_DEV(80, &soc_lpsc_list[6]),
	PSC_DEV(57, &soc_lpsc_list[7]),
	PSC_DEV(58, &soc_lpsc_list[8]),
	PSC_DEV(161, &soc_lpsc_list[9]),
	PSC_DEV(162, &soc_lpsc_list[10]),
	PSC_DEV(75, &soc_lpsc_list[11]),
	PSC_DEV(102, &soc_lpsc_list[12]),
	PSC_DEV(146, &soc_lpsc_list[12]),
	PSC_DEV(13, &soc_lpsc_list[13]),
	PSC_DEV(166, &soc_lpsc_list[14]),
	PSC_DEV(135, &soc_lpsc_list[15]),
	PSC_DEV(136, &soc_lpsc_list[16]),
};

const struct ti_k3_pd_platdata am62x_pd_platdata = {
	.psc = soc_psc_list,
	.pd = soc_pd_list,
	.lpsc = soc_lpsc_list,
	.devs = soc_dev_list,
	.num_psc = 2,
	.num_pd = 5,
	.num_lpsc = 17,
	.num_devs = 23,
};