diff options
Diffstat (limited to 'recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0073-beaglebone-add-support-for-DVI-audio-and-audio-only-.patch')
-rw-r--r-- | recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0073-beaglebone-add-support-for-DVI-audio-and-audio-only-.patch | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0073-beaglebone-add-support-for-DVI-audio-and-audio-only-.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0073-beaglebone-add-support-for-DVI-audio-and-audio-only-.patch new file mode 100644 index 00000000..051a727b --- /dev/null +++ b/recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0073-beaglebone-add-support-for-DVI-audio-and-audio-only-.patch | |||
@@ -0,0 +1,64 @@ | |||
1 | From 040c37e89e6a7a7311a470bda281e1163559173c Mon Sep 17 00:00:00 2001 | ||
2 | From: Koen Kooi <koen@dominion.thruhere.net> | ||
3 | Date: Tue, 3 Jul 2012 08:45:47 +0200 | ||
4 | Subject: [PATCH 73/79] beaglebone: add support for DVI+audio and audio-only | ||
5 | capes | ||
6 | |||
7 | Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> | ||
8 | --- | ||
9 | arch/arm/mach-omap2/board-am335xevm.c | 32 ++++++++++++++++++++++++++++++-- | ||
10 | 1 file changed, 30 insertions(+), 2 deletions(-) | ||
11 | |||
12 | diff --git a/arch/arm/mach-omap2/board-am335xevm.c b/arch/arm/mach-omap2/board-am335xevm.c | ||
13 | index 22a740f..bf40ac9 100644 | ||
14 | --- a/arch/arm/mach-omap2/board-am335xevm.c | ||
15 | +++ b/arch/arm/mach-omap2/board-am335xevm.c | ||
16 | @@ -2881,8 +2881,10 @@ static void beaglebone_cape_setup(struct memory_accessor *mem_acc, void *context | ||
17 | |||
18 | beaglebone_leds_free = 0; | ||
19 | dvileds_init(0,0); | ||
20 | - beaglebone_spi1_free = 0; | ||
21 | - mcasp0_init(0,0); | ||
22 | + | ||
23 | + // Uncomment these for custom DVI capes with audio populated | ||
24 | + //beaglebone_spi1_free = 0; | ||
25 | + //mcasp0_init(0,0); | ||
26 | |||
27 | if (!strncmp("00A1", cape_config.version, 4) || !strncmp("000A", cape_config.version, 4)) { | ||
28 | pr_info("BeagleBone cape: DVI init for revision A1 or older\n"); | ||
29 | @@ -2898,6 +2900,32 @@ static void beaglebone_cape_setup(struct memory_accessor *mem_acc, void *context | ||
30 | dvi_init(0,0); | ||
31 | } | ||
32 | } | ||
33 | + | ||
34 | + if (!strncmp("BB-BONE-DVID-02", cape_config.partnumber, 15)) { | ||
35 | + pr_info("BeagleBone cape: initializing DVI+audio cape\n"); | ||
36 | + | ||
37 | + beaglebone_leds_free = 0; | ||
38 | + dvileds_init(0,0); | ||
39 | + | ||
40 | + beaglebone_spi1_free = 0; | ||
41 | + mcasp0_init(0,0); | ||
42 | + | ||
43 | + setup_pin_mux(dvia2_pin_mux); | ||
44 | + gpio_request(BEAGLEBONEDVI_PDn_A2, "DVI_PDn"); | ||
45 | + gpio_direction_output(BEAGLEBONEDVI_PDn_A2, 1); | ||
46 | + dvi_init(0,0); | ||
47 | + } | ||
48 | + | ||
49 | + if (!strncmp("BB-BONE-AUDI-01", cape_config.partnumber, 15)) { | ||
50 | + pr_info("BeagleBone cape: initializing audio cape\n"); | ||
51 | + | ||
52 | + beaglebone_leds_free = 0; | ||
53 | + dvileds_init(0,0); | ||
54 | + | ||
55 | + beaglebone_spi1_free = 0; | ||
56 | + mcasp0_init(0,0); | ||
57 | + } | ||
58 | + | ||
59 | if (!strncmp("BB-BONE-LCD7-01", cape_config.partnumber, 15)) { | ||
60 | pr_info("BeagleBone cape: initializing LCD cape\n"); | ||
61 | |||
62 | -- | ||
63 | 1.7.10 | ||
64 | |||