misc: cs40l2x: Restore additional registers following basic mode

Added GPIO configuration and amplifier digital volume to the list of
registers restored to their respective default values following the
shutdown of ROM mode, but the initialization of RAM mode (B1 only).

Change-Id: If317a0b7145718d45cea3249037a503d60c32d37
Signed-off-by: Jeff LaBundy <jeff.labundy@cirrus.com>
Signed-off-by: Ravi Vembu <raviv@motorola.com>
This commit is contained in:
Jeff LaBundy 2018-05-24 12:20:26 -05:00 • committed by a7301c
commit e9867607c7

View file

@ -2669,6 +2669,10 @@ static const struct reg_sequence cs40l2x_rev_b0_errata[] = {
static const struct reg_sequence cs40l2x_basic_mode_revert[] = {
{CS40L2X_PWR_CTRL1, 0x00000000},
{CS40L2X_PWR_CTRL2, 0x00003321},
{CS40L2X_LRCK_PAD_CONTROL, 0x00000007},
{CS40L2X_SDIN_PAD_CONTROL, 0x00000007},
{CS40L2X_GPIO_PAD_CONTROL, 0x00000000},
{CS40L2X_AMP_DIG_VOL_CTRL, 0x00008000},
{CS40L2X_IRQ2_MASK1, 0xFFFFFFFF},
{CS40L2X_IRQ2_MASK2, 0xFFFFFFFF},
};