Skip to content

Commit 0e74447

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

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

drivers/misc/qcom-dcc-dev.c

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,15 @@ static const struct dcc_pdata pakala_pdata = {
4848
.map_ver = 0x3,
4949
};
5050

51+
static const struct dcc_pdata kaanapali_pdata = {
52+
.base = 0x100ff000,
53+
.size = 0x1000,
54+
.ram_base = 0x10080000,
55+
.ram_size = 0x8000,
56+
.dcc_offset = 0x0,
57+
.map_ver = 0x3,
58+
};
59+
5160
static int __init dcc_dev_init(void)
5261
{
5362
int ret;
@@ -101,6 +110,18 @@ static int __init dcc_dev_init(void)
101110
if (ret)
102111
goto fail;
103112

113+
break;
114+
case 660:
115+
case 661:
116+
case 704:
117+
case 722:
118+
case 723:
119+
case 730:
120+
case 743:
121+
ret = platform_device_add_data(dcc_pdev, &kaanapali_pdata, sizeof(kaanapali_pdata));
122+
if (ret)
123+
goto fail;
124+
104125
break;
105126
default:
106127
pr_err("DCC: Invalid SoC ID\n");

0 commit comments

Comments
 (0)