Skip to content

Commit fcd68b6

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

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

drivers/misc/qcom-dcc-dev.c

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@ static const struct dcc_pdata kaanapali_pdata = {
5757
.map_ver = 0x3,
5858
};
5959

60+
static const struct dcc_pdata hamoa_pdata = {
61+
.base = 0x100ff000,
62+
.size = 0x1000,
63+
.ram_base = 0x10080000,
64+
.ram_size = 0x18000,
65+
.dcc_offset = 0x0,
66+
.map_ver = 0x3,
67+
};
68+
6069
static int __init dcc_dev_init(void)
6170
{
6271
int ret;
@@ -122,6 +131,16 @@ static int __init dcc_dev_init(void)
122131
if (ret)
123132
goto fail;
124133

134+
break;
135+
case 555:
136+
case 615:
137+
case 616:
138+
case 709:
139+
case 710:
140+
ret = platform_device_add_data(dcc_pdev, &hamoa_pdata, sizeof(hamoa_pdata));
141+
if (ret)
142+
goto fail;
143+
125144
break;
126145
default:
127146
pr_err("DCC: Invalid SoC ID\n");

0 commit comments

Comments
 (0)