[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-ti33x-psp-3.2 / beaglebone / 0046-beaglebone-add-stub-for-the-camera-cape-to-disable-w.patch
1 From b1a945344e6abd9bb9f33e9a8dadb8ac22ed2422 Mon Sep 17 00:00:00 2001
2 From: Koen Kooi <koen@dominion.thruhere.net>
3 Date: Fri, 18 May 2012 12:58:16 +0200
4 Subject: [PATCH 46/79] beaglebone: add stub for the camera cape to disable
5 w1-gpio
7 Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
8 ---
9 arch/arm/mach-omap2/board-am335xevm.c | 5 +++++
10 1 file changed, 5 insertions(+)
12 diff --git a/arch/arm/mach-omap2/board-am335xevm.c b/arch/arm/mach-omap2/board-am335xevm.c
13 index 5c89494..ece4e46 100644
14 --- a/arch/arm/mach-omap2/board-am335xevm.c
15 +++ b/arch/arm/mach-omap2/board-am335xevm.c
16 @@ -2384,6 +2384,11 @@ static void beaglebone_cape_setup(struct memory_accessor *mem_acc, void *context
17 pr_info("BeagleBone cape: initializing CAN cape\n");
18 tt3201_init(0,0);
19 }
20 +
21 + if (!strncmp("BB-BONE-CAM-01", cape_config.partnumber, 14)) {
22 + pr_info("BeagleBone cape: recognized Camera cape\n");
23 + beaglebone_w1gpio_free = 0;
24 + }
26 if ((capecount > 3) && (beaglebone_tsadcpins_free == 1)) {
27 pr_info("BeagleBone cape: exporting ADC pins to sysfs\n");
28 --
29 1.7.10