Skip to content

Commit 78334c3

Browse files
mstrozeklag-linaro
authored andcommitted
mfd: cs42l43: Fix wrong GPIO_FN_SEL and SPI_CLK_CONFIG1 defaults
Two regs have wrong values in existing fields, change them to match the datasheet. Fixes: ace6d14 ("mfd: cs42l43: Add support for cs42l43 core driver") Signed-off-by: Maciej Strozek <[email protected]> Reviewed-by: Charles Keepax <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent c9e1e50 commit 78334c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/mfd/cs42l43.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const struct reg_default cs42l43_reg_default[CS42L43_N_DEFAULTS] = {
9090
{ CS42L43_DRV_CTRL_5, 0x136C00C0 },
9191
{ CS42L43_GPIO_CTRL1, 0x00000707 },
9292
{ CS42L43_GPIO_CTRL2, 0x00000000 },
93-
{ CS42L43_GPIO_FN_SEL, 0x00000000 },
93+
{ CS42L43_GPIO_FN_SEL, 0x00000004 },
9494
{ CS42L43_MCLK_SRC_SEL, 0x00000000 },
9595
{ CS42L43_SAMPLE_RATE1, 0x00000003 },
9696
{ CS42L43_SAMPLE_RATE2, 0x00000003 },
@@ -223,7 +223,7 @@ const struct reg_default cs42l43_reg_default[CS42L43_N_DEFAULTS] = {
223223
{ CS42L43_CTRL_REG, 0x00000006 },
224224
{ CS42L43_FDIV_FRAC, 0x40000000 },
225225
{ CS42L43_CAL_RATIO, 0x00000080 },
226-
{ CS42L43_SPI_CLK_CONFIG1, 0x00000000 },
226+
{ CS42L43_SPI_CLK_CONFIG1, 0x00000001 },
227227
{ CS42L43_SPI_CONFIG1, 0x00000000 },
228228
{ CS42L43_SPI_CONFIG2, 0x00000000 },
229229
{ CS42L43_SPI_CONFIG3, 0x00000001 },

0 commit comments

Comments
 (0)