ASoC: sgtl5000: Fix the cache handling

Since commit e5d80e82e32e (ASoC: sgtl5000: Convert to use regmap directly) a
kernel oops is observed after a suspend/resume sequence.

The kernel oops happens inside sgtl5000_restore_regs() as codec->reg_cache is no
longer a valid pointer.

Add the remaining register entries into sgtl5000_reg_defaults[] and remove
sgtl5000_restore_regs() completely, which allows suspend/resume to work fine and
make the code simpler.

Tested on a im53-qsb board.

Reported-by: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Tested-by: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
(cherry picked from commit 29aa37cddfb9b721013ff28608200d73a9426368)

Conflicts (resolved):

	sound/soc/codecs/sgtl5000.c
wandboard: Fix bluetooth

Fix uart3 dts pins
Add minimal bluetooth to default config
touchscreen: Add fusion touchscreen driver
wandboard/dts: add fusion touchscreen to devicetree
wandboard/dts: Enable lcdif in devicetree
wandboard/dts: change EDM gpio to open drain

By default the EDM GPIO are set to the default register setting
which is an active push-pull signal.  Change it to an open drain
signal, and enable hysteresis and 100K pullup.
wandboard: add revision detect pin to rfkill driver
brcmfmac: Use fw filename and nvram based of devid for sdio.

SDIO firmware download routines uses one name for firmware file
and nvram file for all sdio devices. This is not user friendly.
Use fw filename and nvram filename based upon chip id and revision.

Reported-by: Stephen Warren <swarren@wwwdotorg.org>
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
wandboard: dts: Add alternate pin support for rev C1

Wandboard rev C1 uses a BCM4330 instead of BCM4329, and with that change
also comes some changes to the GPIO used to control the wireless chip. This
change adds alternate pin declarations for rev C1 within the rfkill driver
as well as defines pinctrl for these new GPIO.

Identified by: PLyttle
wand-rfkill: Change gpio depending on wandboard revision

Wandboard rev C1 uses different GPIO for certain wireless control functions.
Use the revision sense gpio to determine which gpio to use depending on
revision.
wandboard/dts: Fix USB OTG

 - Corrected pin assignment to use GPIO3_IO22.
 - Corrected iomux to use USB_OTG_POWER.
 - Changed USB mode from 'peripheral' to 'otg'.  USB OTG will now work in both host and client modes.
wandboard_defconfig: Enable CONFIG_USB_OTG