diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2012-08-16 11:18:35 +0200 |
---|---|---|
committer | Denys Dmytriyenko <denis@denix.org> | 2012-10-17 15:51:30 -0400 |
commit | 52011ad894b31a2778451e167893ebf0a3ff9a13 (patch) | |
tree | a84cc7d48a2c0c9082da67d9db564347423be786 | |
parent | 56e60917b21bd76bfea7c65f9a885b60e3c128ef (diff) | |
download | meta-ti-52011ad894b31a2778451e167893ebf0a3ff9a13.tar.gz |
linux-ti335x-psp 3.2: mux orientation detect for camera sensor to gpio instead of gpmc
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
-rw-r--r-- | recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0085-beaglebone-mux-camera-cape-orientation-pin-to-gpio.patch | 35 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-ti33x-psp_3.2.bb | 3 |
2 files changed, 37 insertions, 1 deletions
diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0085-beaglebone-mux-camera-cape-orientation-pin-to-gpio.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0085-beaglebone-mux-camera-cape-orientation-pin-to-gpio.patch new file mode 100644 index 00000000..396b2d14 --- /dev/null +++ b/recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0085-beaglebone-mux-camera-cape-orientation-pin-to-gpio.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From cfef44a953b640d592133ed553c1c4ba72953837 Mon Sep 17 00:00:00 2001 | ||
2 | From: Koen Kooi <koen@dominion.thruhere.net> | ||
3 | Date: Wed, 15 Aug 2012 14:33:37 +0200 | ||
4 | Subject: [PATCH] beaglebone: mux camera cape orientation pin to gpio | ||
5 | |||
6 | Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> | ||
7 | --- | ||
8 | arch/arm/mach-omap2/board-am335xevm.c | 3 ++- | ||
9 | 1 files changed, 2 insertions(+), 1 deletions(-) | ||
10 | |||
11 | diff --git a/arch/arm/mach-omap2/board-am335xevm.c b/arch/arm/mach-omap2/board-am335xevm.c | ||
12 | index d30c5a2..78c4bf9 100644 | ||
13 | --- a/arch/arm/mach-omap2/board-am335xevm.c | ||
14 | +++ b/arch/arm/mach-omap2/board-am335xevm.c | ||
15 | @@ -846,6 +846,7 @@ static struct pinmux_config gpmc_pin_mux[] = { | ||
16 | static struct pinmux_config camera_cape_pin_mux[] = { | ||
17 | {"spi0_d1.gpio0_4", OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT }, // QL CSSP and Camera Sensor Reset | ||
18 | {"spi0_cs0.gpio0_5", OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT_PULLUP }, // 1V8 and 2V8 Power Enable | ||
19 | + {"gpmc_csn1.gpio0_30", OMAP_MUX_MODE7 | AM33XX_PIN_INPUT}, // Sensor orientation detect: low -> frontfacing, high -> backfacing | ||
20 | {NULL, 0}, | ||
21 | }; | ||
22 | |||
23 | @@ -2065,8 +2066,8 @@ static void cssp_gpmc_init(void) | ||
24 | { NULL, GPMC_DEVICE_NOR }, | ||
25 | }; | ||
26 | |||
27 | - setup_pin_mux(camera_cape_pin_mux); | ||
28 | setup_pin_mux(gpmc_pin_mux); | ||
29 | + setup_pin_mux(camera_cape_pin_mux); | ||
30 | |||
31 | omap_init_gpmc(gpmc_device, sizeof(gpmc_device)); | ||
32 | gpmc_cssp_init(); | ||
33 | -- | ||
34 | 1.7.7.6 | ||
35 | |||
diff --git a/recipes-kernel/linux/linux-ti33x-psp_3.2.bb b/recipes-kernel/linux/linux-ti33x-psp_3.2.bb index 77b16801..5cbf46b7 100644 --- a/recipes-kernel/linux/linux-ti33x-psp_3.2.bb +++ b/recipes-kernel/linux/linux-ti33x-psp_3.2.bb | |||
@@ -15,7 +15,7 @@ PV = "${@base_contains('DISTRO_FEATURES', 'tipspkernel', "3.2", "3.2.25", d)}" | |||
15 | 15 | ||
16 | BRANCH = "v3.2-staging" | 16 | BRANCH = "v3.2-staging" |
17 | SRCREV = "720e07b4c1f687b61b147b31c698cb6816d72f01" | 17 | SRCREV = "720e07b4c1f687b61b147b31c698cb6816d72f01" |
18 | MACHINE_KERNEL_PR_append = "a+gitr${SRCREV}" | 18 | MACHINE_KERNEL_PR_append = "b+gitr${SRCREV}" |
19 | 19 | ||
20 | COMPATIBLE_MACHINE = "(ti33x)" | 20 | COMPATIBLE_MACHINE = "(ti33x)" |
21 | 21 | ||
@@ -1826,4 +1826,5 @@ PATCHES_OVER_PSP = " \ | |||
1826 | file://beaglebone/0082-beaglebone-add-rudimentary-support-for-eMMC-cape.patch \ | 1826 | file://beaglebone/0082-beaglebone-add-rudimentary-support-for-eMMC-cape.patch \ |
1827 | file://beaglebone/0083-beaglebone-add-extra-partnumber-for-camera-cape.patch \ | 1827 | file://beaglebone/0083-beaglebone-add-extra-partnumber-for-camera-cape.patch \ |
1828 | file://beaglebone/0084-beaglebone-cssp_camera-driver-cleanup.patch \ | 1828 | file://beaglebone/0084-beaglebone-cssp_camera-driver-cleanup.patch \ |
1829 | file://beaglebone/0085-beaglebone-mux-camera-cape-orientation-pin-to-gpio.patch \ | ||
1829 | " | 1830 | " |