Skip to content

Commit

Permalink
reset: amlogic: add support for A1 SoC in auxiliary reset driver
Browse files Browse the repository at this point in the history
Add support for the reset controller present in the audio clock
controller of A1 SoC families, using the auxiliary bus.

Signed-off-by: Jan Dakinevich <jan.dakinevich@salutedevices.com>
Link: https://lore.kernel.org/r/20241112230056.1406222-3-jan.dakinevich@salutedevices.com
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
  • Loading branch information
Jan Dakinevich authored and Philipp Zabel committed Jan 15, 2025
1 parent 0d602fc commit 64de6a3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions drivers/reset/amlogic/reset-meson-aux.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@ struct meson_reset_adev {
#define to_meson_reset_adev(_adev) \
container_of((_adev), struct meson_reset_adev, adev)

static const struct meson_reset_param meson_a1_audio_param = {
.reset_ops = &meson_reset_toggle_ops,
.reset_num = 32,
.level_offset = 0x28,
};

static const struct meson_reset_param meson_a1_audio_vad_param = {
.reset_ops = &meson_reset_toggle_ops,
.reset_num = 6,
.level_offset = 0x8,
};

static const struct meson_reset_param meson_g12a_audio_param = {
.reset_ops = &meson_reset_toggle_ops,
.reset_num = 26,
Expand All @@ -40,6 +52,12 @@ static const struct meson_reset_param meson_sm1_audio_param = {

static const struct auxiliary_device_id meson_reset_aux_ids[] = {
{
.name = "a1-audio-clkc.rst-a1",
.driver_data = (kernel_ulong_t)&meson_a1_audio_param,
}, {
.name = "a1-audio-clkc.rst-a1-vad",
.driver_data = (kernel_ulong_t)&meson_a1_audio_vad_param,
}, {
.name = "axg-audio-clkc.rst-g12a",
.driver_data = (kernel_ulong_t)&meson_g12a_audio_param,
}, {
Expand Down

0 comments on commit 64de6a3

Please sign in to comment.