lctr-a9xx: moved pinmux initialization of pins without a kernel driver to u-boot.

This commit is contained in:
Ricardo Martins
2014-08-14 14:27:39 +01:00
parent 7d4b8f71c9
commit 489ddb9119
2 changed files with 15 additions and 30 deletions

View File

@@ -12,7 +12,7 @@ diff -Nru linux-3.13.1/arch/arm/boot/dts/Makefile linux-3.13.1.rasm/arch/arm/boo
diff -Nru linux-3.13.1/arch/arm/boot/dts/omap3-lctr-a9xx.dts linux-3.13.1.rasm/arch/arm/boot/dts/omap3-lctr-a9xx.dts
--- linux-3.13.1/arch/arm/boot/dts/omap3-lctr-a9xx.dts 1970-01-01 01:00:00.000000000 +0100
+++ linux-3.13.1.rasm/arch/arm/boot/dts/omap3-lctr-a9xx.dts 2014-02-01 23:49:40.019073833 +0000
@@ -0,0 +1,103 @@
@@ -0,0 +1,89 @@
+/*
+ * Copyright (C) 2014 Universidade do Porto - Faculdade de Engenharia
+ *
@@ -68,20 +68,6 @@ diff -Nru linux-3.13.1/arch/arm/boot/dts/omap3-lctr-a9xx.dts linux-3.13.1.rasm/a
+};
+
+&omap3_pmx_core {
+ pinctrl-names = "default", "board";
+ pinctrl-0 = <&hsusbb1_pins &board_pins>;
+
+ board_pins: pinmux_board_pins {
+ pinctrl-single,pins = <
+ /* gpio_133 - panel backlight */
+ 0x130 (PIN_OUTPUT | MUX_MODE4)
+ /* gpio_135 - panel LED */
+ 0x132 (PIN_OUTPUT | MUX_MODE4)
+ /* gpio_157 - transducer */
+ 0x15e (PIN_INPUT_PULLUP | MUX_MODE4)
+ >;
+ };
+
+ gpio_keys_pins: pinmux_gpio_keys_pins {
+ pinctrl-single,pins = <
+ 0x136 (PIN_INPUT_PULLDOWN | MUX_MODE4) /* gpio_137 - button 2 */