arm: tegra: tec-ng: Add local version suffix.

Append a name to the kernel version, so we can identify the kernel as tec-ng
specific.

Change-Id: I45583600ee257bc8ce4f97d1d713c93d6df9c948
Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/409
Reviewed-by: Julian Scheel <julian.scheel@avionic-design.de>
arm: tegra: tec-ng: Update filesystem support.

Squashfs support is essential to work with pbs rootfs target. Also make the
support for M$ filesystems (FAT and NTFS) build as module as they are not
required for our use-case.

Change-Id: Ief1ac5fbb691e308caee5e4e47dec81ede619ef2
Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/410
Reviewed-by: Julian Scheel <julian.scheel@avionic-design.de>
arm: tegra: tec-ng: Update default kernel commandline.

Set the available memory to the correct size and remove the default init call.
Also disable earlyprintk, as we are stable enougth to pass the initial boot
phase.

Change-Id: I8a2566119a87394605e9180059513635c94b52ac
Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/411
Reviewed-by: Julian Scheel <julian.scheel@avionic-design.de>
arm: tegra: Fix a duplicate declaration left from the merge of r16-2

Change-Id: Idfdcde193b8a869f7ead8ce169b3ee79cd8554bf
Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/382
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>
arm: tegra: tec-ng: Use only ext4 support.

As ext2/3 support is also provided by the ext4 module. So we no longer need
this. Also drop the ACL support, since we have no use-case where we need it.

Change-Id: I08d3fc7d25d0345de669a93f6d0e08d453073019
Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/427
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>
arm: tegra: tec-ng: Add support for extended attributes.

Currently we have not use-case were we really need XATTR support. But there
are some scenarios where it can be useful to have it.

Change-Id: Id02373bd791cd1a455045c15d1c2d3d9437305ab
Signed-off-by: Soeren Grunewald <soeren.grunewald@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/428
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>
media: video: Fix compiling the tegra_v4l2_camera driver

The driver is missing an include for kzalloc() and use a wrong format
converter.

Change-Id: Ie836a1c41a6829d408e5e8f199f838bd78c0db1c
Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/430
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>
arm: tegra: Rework the Tamonten boards to limit code duplication

The boards using the Tamonten COM share the COM module and the most
base boards have some common parts. However up to now each board file
contained the whole implementation leading to mass code duplication
with all the well known down side it has.

Start to fix this situation by moving all the common device definitions
and init for the COM module in its own file, as well as the power
devices and pinmux.

During this move we also drop a few unused GPIO definitions left over
from harmony.

The pinmux from plutux, unlike medcom wide, also enabled pull-ups on
the UARTC port. We now enable the pull-ups on both the UARTC and UARTB
ports.

Change-Id: I8e5b4c9876176c753d3a083b6916f0bcb9df27e1
Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/378
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>
arm: tegra: Add a common implementation of tamonten audio device

On Tamonten platforms the audio codec is on the base board, however
all base boards currently use the same design. So move the audio
device definition to a common file to allow reusing it.

Change-Id: I346acb5cff36ac4c066974323bc5fbef0f3bf81e
Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/379
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>
arm: tegra: tamonten: Add PCIe support

And the required code to allow supporting PCIe on the Tamonten COM.

Change-Id: I98101d6caf3593c0c56a6f8ba846c86a53284540
Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/380
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>
arm: tegra: tamonten: Remove the inexisting COM_GPIO_INT_MIC_EN

The GPIO was a left over from Harmony, on the Tamonten COM it is not
connected to anything.

Change-Id: I0785125a0a61a946f7c9c14218b9c6b6051e767a
Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/413
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>
arm: tegra: tamonten: Add a generic implementation for the display

Allow using common code for the display based on LVDS or HDMI.

Change-Id: I0b57260aa36698229fddd2b27eae3b2c0c2b0b5e
Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/414
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>
arm: tegra: tamonten-wm8903: Configure the WM8903 GPIOs for the DMIC

All Tamonten base boards with a digital mic connect it to the first two
GPIO of the codec. All boards without DMIC currently don't use these
pins, so that shouldn't create any conflict.

Change-Id: I071a095cbab062959d4886d2bdb82d468fc95118
Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/431
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>
arm: tegra: tamonten: Add some more GPIO defines

Add some GPIO defines for most of the pins on the edge connector of
the Tamonten COM. Also add a few defines for some of the test points
that can be set from the SoC.

Change-Id: I6f6339218ec0908520969aa628bea09956fa6da3
Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/432
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>
arm: tegra: medcom-wide: Use the GPIO definition from the COM

Use the GPIO define from the COM instead of hardcoding the SoC GPIO.
This should allow supporting other COM using the Tamonten pinout with
another SoC.

Change-Id: I48deca27ebe4443ed1b90c135fd934578ece1684
Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/433
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>
arm: tegra: tamonten: Add a macro to abstract the GPIO to IRQ mapping

Provide a macro to allow the base board code to convert a COM gpio to
an IRQ number, without having to assume which SoC is used.

Change-Id: Ia8976f3b1a43842800d1f5f8f421150a4d56d14a
Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/434
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>
arm: tegra: tamonten: Add the nct1008 temperature sensor

The temperature sensor was only defined for the medcom-wide board,
however it is on the COM. So remove it from the medcom-wide board file
and add it back to the tamonten COM file.

Also enable the IRQ as the new driver bail out unless a valid IRQ is
given, or IRQ is explicitly disabled.

Change-Id: Ieb525d5fd7f7877fb2d99d64ddf795f6f7f1ee31
Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/435
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>
arm: tegra: tamonten: The Tamonten COM needs its PMU to work

Automatically select the PMU driver and I2C support when the Tamonten
COM is selected. Without these drivers the COM just can't work.

Change-Id: I309f9fcfff7ebde2132c39c74fea7389f60815ca
Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/438
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>
i2c: tegra: Demote NAK messages

When performing an I2C bus scan using i2cdetect, it is rather common to
not receive an acknowledge from slaves since not all addresses will be
used. The debug level seems more appropriate for these messages.

Change-Id: I71c72bda2649e473f94d1b469b246966bdd73f32
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Reviewed-by: Julian Scheel <julian@jusst.de>
Reviewed-on: http://review.adnet.avionic-design.de/440
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>
Input: tsc2007 - convert to threaded IRQ

Instead of using hard IRQ and workqueue solution switch to using threaded
interrupt handler to simplify the code and locking rules.

Change-Id: I2a63ffe5b362a176390a829bd20afcbc093661e2
Tested-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/441
Reviewed-by: Dirk Leber <dirk.leber@avionic-design.de>