arm/dts: add am33xx mcasp0 dt node

Add AM33xx McASP0 DT node. Device tree Data is split into SoC specific
and Board specific.

Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
Setup am335x-bonelt audio DT

Needs mcasp0 node

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
ASoC: Davinci: machine: Add device tree binding

Device tree support for tlv320aic3x CODEC driver

When the board boots with device tree, the driver will receive card,
codec, dai interface details (like the card name, DAPM routing map,
phandle for the audio components described in the dts file, codec mclk
speed).

The card will be set up based on this information.
Since the routing is provided via DT we can mark the card fully routed
so core can take care of disconnecting the unused pins.

When here, code indentation and comment style is also fixed

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
ASoC: AM33XX: Add support for AM33xx SoC Audio

AM33xx uses same McASP IP as the Davinci Platform. This patch updates
Kconfig and makefile to enable build or McASP, PCM & Codec drivers

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
ASoC: davinci: pcm: add support for sram-support-less platforms

OMAP2+ platforms (like TI81xx, AM33xx) uses davinci-pcm driver. SRAM is
not needed/used in EDMA transfers for audio on such platforms. However
they do not provide generic SRAM APIs (sram_alloc() and sram_free()). In
such cases the pcm driver cannot be used directly as it results in
compilation failure on OMAP2 platforms.

Fix this by providing a config option to indicate missing SRAM API
support. This config is enabled by default on Davinci platform so as to
not break existing platforms. For OMAP2+ platforms, the config is
disabled.

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
Enable SND_SOC and SND_AM33XX_SOC in omap2plus_defconfig

Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
AM33XX: bonelt/dts: Add codec to i2c2 and add mcasp0 pin mxing

Adapted from following patch by Gururaja Hebbar <gururaja.hebbar@ti.com>:
    On am335x-bonelt, codec TLV320AIC3x sits on i2c1 bus.
    This patch also add I2C1 node with I2C frequency and TLV320AIC3x Codec
    I2C slave address.

Added mcasp0 hacks for audio specific to beaglebone lt (for HDMI)
  - pulling up crystal on input to enable it
  - changed direction of pins to output so as the am33xx is driving the clock
    output for audio in the beaglebone lt case.

Note:
Using i2c2 for now to test audio w/ cape. This set of patches is not
intended to get audio cape working (though it will). It is to get mcasp sending correct
output for hdmi work. capebus support etc is separate effort, has to be worked on. This
effort is _only_ for hdmi audio debugging on beaglebone lt.

Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
v3.7-rc2-audio
Make mcasp0 pinmux exactly like audio cape (so that clocks etc are driven by cape)

Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
Update beaglebone_def_config

Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
bootstuff: Add bootloaders and uEnv

Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
bootstuff: update bootstuff

Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
bootstuff: update bootstuff

Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
Add more ifdef hacks to make davinci-pcm compile. TODO: This has to be replaced with mporter's genalloc code

Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
ASoC: davinci-evm: cpu_dai_of_node has changed to cpu_of_node in SoC framework
Fixes build error.

Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
defconfig: Enable sound config options

Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
beaglebone_defconfig: Add dummy regulator to init tlv320aic3x

Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
prints in davinci-mcasp

Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
VH's patch to fix mcasp clock entries

Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
Correct address of mcasp0 memory map

Signed-off-by: Joel A Fernandes <joelagnel@ti.com>