Commit 05338ba5 authored by Anjelique Melendez's avatar Anjelique Melendez Committed by Lee Jones

leds: rgb: leds-qcom-lpg: Update PMI632 lpg_data to support PPG

Update the pmi632 lpg_data struct so that pmi632 devices use PPG
for LUT pattern.
Signed-off-by: default avatarAnjelique Melendez <quic_amelende@quicinc.com>
Tested-by: default avatarLuca Weiss <luca.weiss@fairphone.com>
Link: https://lore.kernel.org/r/20231221185838.28440-6-quic_amelende@quicinc.comSigned-off-by: default avatarLee Jones <lee@kernel.org>
parent 6ab1f766
...@@ -1627,11 +1627,13 @@ static const struct lpg_data pm8994_lpg_data = { ...@@ -1627,11 +1627,13 @@ static const struct lpg_data pm8994_lpg_data = {
static const struct lpg_data pmi632_lpg_data = { static const struct lpg_data pmi632_lpg_data = {
.triled_base = 0xd000, .triled_base = 0xd000,
.lut_size = 64,
.num_channels = 5, .num_channels = 5,
.channels = (const struct lpg_channel_data[]) { .channels = (const struct lpg_channel_data[]) {
{ .base = 0xb300, .triled_mask = BIT(7) }, { .base = 0xb300, .triled_mask = BIT(7), .sdam_offset = 0x48 },
{ .base = 0xb400, .triled_mask = BIT(6) }, { .base = 0xb400, .triled_mask = BIT(6), .sdam_offset = 0x56 },
{ .base = 0xb500, .triled_mask = BIT(5) }, { .base = 0xb500, .triled_mask = BIT(5), .sdam_offset = 0x64 },
{ .base = 0xb600 }, { .base = 0xb600 },
{ .base = 0xb700 }, { .base = 0xb700 },
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment