aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--target/linux/tegra/config-4.144
-rw-r--r--target/linux/tegra/image/Makefile10
-rw-r--r--target/linux/tegra/patches-4.14/101-ARM-dtc-tegra-enable-front-panel-leds-in-TrimSlice.patch46
3 files changed, 59 insertions, 1 deletions
diff --git a/target/linux/tegra/config-4.14 b/target/linux/tegra/config-4.14
index 3df360d1fc..42547da301 100644
--- a/target/linux/tegra/config-4.14
+++ b/target/linux/tegra/config-4.14
@@ -482,10 +482,12 @@ CONFIG_SND_SOC_TEGRA20_SPDIF=y
# CONFIG_SND_SOC_TEGRA_RT5640 is not set
# CONFIG_SND_SOC_TEGRA_RT5677 is not set
# CONFIG_SND_SOC_TEGRA_SGTL5000 is not set
-# CONFIG_SND_SOC_TEGRA_TRIMSLICE is not set
+CONFIG_SND_SOC_TEGRA_TRIMSLICE=y
# CONFIG_SND_SOC_TEGRA_WM8753 is not set
# CONFIG_SND_SOC_TEGRA_WM8903 is not set
# CONFIG_SND_SOC_TEGRA_WM9712 is not set
+CONFIG_SND_SOC_TLV320AIC23=y
+CONFIG_SND_SOC_TLV320AIC23_I2C=y
# CONFIG_SND_USB is not set
CONFIG_SOC_BUS=y
CONFIG_SOC_TEGRA_FLOWCTRL=y
diff --git a/target/linux/tegra/image/Makefile b/target/linux/tegra/image/Makefile
index 5e3427ad27..706cc65d92 100644
--- a/target/linux/tegra/image/Makefile
+++ b/target/linux/tegra/image/Makefile
@@ -46,4 +46,14 @@ define Device/Default
PROFILES := Default
endef
+define Device/trimslice
+ DEVICE_TITLE := CompuLab TrimSlice
+ DEVICE_DTS := tegra20-trimslice
+ DEVICE_PACKAGES := kmod-r8169 kmod-rt2800-usb kmod-rtc-em3027 \
+ kmod-usb-storage wpad-mini
+ SUPPORTED_DEVICES := compulab,trimslice
+ UBOOT := trimslice-mmc
+endef
+TARGET_DEVICES += trimslice
+
$(eval $(call BuildImage))
diff --git a/target/linux/tegra/patches-4.14/101-ARM-dtc-tegra-enable-front-panel-leds-in-TrimSlice.patch b/target/linux/tegra/patches-4.14/101-ARM-dtc-tegra-enable-front-panel-leds-in-TrimSlice.patch
new file mode 100644
index 0000000000..ae48e8d862
--- /dev/null
+++ b/target/linux/tegra/patches-4.14/101-ARM-dtc-tegra-enable-front-panel-leds-in-TrimSlice.patch
@@ -0,0 +1,46 @@
+--- a/arch/arm/boot/dts/tegra20-trimslice.dts
++++ b/arch/arm/boot/dts/tegra20-trimslice.dts
+@@ -200,16 +200,17 @@
+ conf_ata {
+ nvidia,pins = "ata", "atc", "atd", "ate",
+ "crtp", "dap2", "dap3", "dap4", "dta",
+- "dtb", "dtc", "dtd", "dte", "gmb",
+- "gme", "i2cp", "pta", "slxc", "slxd",
+- "spdi", "spdo", "uda";
++ "dtb", "dtc", "dtd", "gmb", "gme",
++ "i2cp", "pta", "slxc", "slxd", "spdi",
++ "spdo", "uda";
+ nvidia,pull = <TEGRA_PIN_PULL_NONE>;
+ nvidia,tristate = <TEGRA_PIN_ENABLE>;
+ };
+ conf_atb {
+ nvidia,pins = "atb", "cdev1", "cdev2", "dap1",
+- "gma", "gmc", "gmd", "gpu", "gpu7",
+- "gpv", "sdio1", "slxa", "slxk", "uac";
++ "dte", "gma", "gmc", "gmd", "gpu",
++ "gpu7", "gpv", "sdio1", "slxa", "slxk",
++ "uac";
+ nvidia,pull = <TEGRA_PIN_PULL_NONE>;
+ nvidia,tristate = <TEGRA_PIN_DISABLE>;
+ };
+@@ -402,6 +403,20 @@
+ };
+ };
+
++ gpio-leds {
++ compatible = "gpio-leds";
++
++ ds2 {
++ label = "trimslice:green:right";
++ gpios = <&gpio TEGRA_GPIO(D, 2) GPIO_ACTIVE_LOW>;
++ };
++
++ ds3 {
++ label = "trimslice:green:left";
++ gpios = <&gpio TEGRA_GPIO(BB, 5) GPIO_ACTIVE_LOW>;
++ };
++ };
++
+ poweroff {
+ compatible = "gpio-poweroff";
+ gpios = <&gpio TEGRA_GPIO(X, 7) GPIO_ACTIVE_LOW>;