[PATCH 2/2] pmdomain: add audio power island for Marvell PXA1908 SoC
Karel Balej
balejk at matfyz.cz
Sat Nov 29 11:53:05 PST 2025
Duje Mihanović, 2025-11-28T22:30:55+01:00:
> On 11/27/2025 8:02 PM, Karel Balej wrote:
>> diff --git a/drivers/pmdomain/marvell/pxa1908-power-controller.c b/drivers/pmdomain/marvell/pxa1908-power-controller.c
>> index ff5e6e82d3f8..e32eb227f235 100644
>> --- a/drivers/pmdomain/marvell/pxa1908-power-controller.c
>> +++ b/drivers/pmdomain/marvell/pxa1908-power-controller.c
>> @@ -29,7 +29,10 @@
>> #define POWER_POLL_TIMEOUT_US (25 * USEC_PER_MSEC)
>> #define POWER_POLL_SLEEP_US 6
>>
>> -#define NR_DOMAINS 5
>> +#define APMU_AUD_CLK 0x80
>> +#define AUDIO_ULCX_ENABLE 0x0d
>
> I would group these with the other register definitions.
>
> Also, it's probably better to be more consistent with the naming, so I'd
> prefer APMU_AUDIO_CLK.
So would I, but this is how the downstream code calls it so my idea was
that it possibly matches the datasheet and it would seem preferable to
me to match that even though we don't have it available.
I could then do the reverse of what you say and call the other
definition AUD_ULCX_ENABLE but AUDIO seems nicer to me too and this one
is not defined in the downstream code.
What do you think?
More information about the linux-arm-kernel
mailing list