Skip to content

Commit 3d99f92

Browse files
Jan DakinevichpH5
authored andcommitted
reset: amlogic: add support for A1 SoC in auxiliary reset driver
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Philipp Zabel <[email protected]>
1 parent 3465a69 commit 3d99f92

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

drivers/reset/amlogic/reset-meson-aux.c

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,18 @@ struct meson_reset_adev {
2626
#define to_meson_reset_adev(_adev) \
2727
container_of((_adev), struct meson_reset_adev, adev)
2828

29+
static const struct meson_reset_param meson_a1_audio_param = {
30+
.reset_ops = &meson_reset_toggle_ops,
31+
.reset_num = 32,
32+
.level_offset = 0x28,
33+
};
34+
35+
static const struct meson_reset_param meson_a1_audio_vad_param = {
36+
.reset_ops = &meson_reset_toggle_ops,
37+
.reset_num = 6,
38+
.level_offset = 0x8,
39+
};
40+
2941
static const struct meson_reset_param meson_g12a_audio_param = {
3042
.reset_ops = &meson_reset_toggle_ops,
3143
.reset_num = 26,
@@ -40,6 +52,12 @@ static const struct meson_reset_param meson_sm1_audio_param = {
4052

4153
static const struct auxiliary_device_id meson_reset_aux_ids[] = {
4254
{
55+
.name = "a1-audio-clkc.rst-a1",
56+
.driver_data = (kernel_ulong_t)&meson_a1_audio_param,
57+
}, {
58+
.name = "a1-audio-clkc.rst-a1-vad",
59+
.driver_data = (kernel_ulong_t)&meson_a1_audio_vad_param,
60+
}, {
4361
.name = "axg-audio-clkc.rst-g12a",
4462
.driver_data = (kernel_ulong_t)&meson_g12a_audio_param,
4563
}, {

0 commit comments

Comments
 (0)