Skip to content

Commit b76f4a8

Browse files
jiegan0107shashim-quic
authored andcommitted
QCLINUX: qcom-dcc: add device configuration for Pakala
Add device configuration to enable DCC on Pakala platform. Signed-off-by: Jie Gan <jie.gan@oss.qualcomm.com>
1 parent bfdf95c commit b76f4a8

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

drivers/misc/qcom-dcc-dev.c

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@ static const struct dcc_pdata kodiak_pdata = {
3939
.map_ver = 0x2,
4040
};
4141

42+
static const struct dcc_pdata pakala_pdata = {
43+
.base = 0x100ff000,
44+
.size = 0x00001000,
45+
.ram_base = 0x10084000,
46+
.ram_size = 0x4000,
47+
.dcc_offset = 0x4000,
48+
.map_ver = 0x3,
49+
};
50+
4251
static int __init dcc_dev_init(void)
4352
{
4453
int ret;
@@ -83,6 +92,15 @@ static int __init dcc_dev_init(void)
8392
if (ret)
8493
goto fail;
8594

95+
break;
96+
case 618:
97+
case 639:
98+
case 705:
99+
case 706:
100+
ret = platform_device_add_data(dcc_pdev, &pakala_pdata, sizeof(pakala_pdata));
101+
if (ret)
102+
goto fail;
103+
86104
break;
87105
default:
88106
pr_err("DCC: Invalid SoC ID\n");

0 commit comments

Comments
 (0)