diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2012-04-17 14:47:46 +0200 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2012-04-18 12:19:55 -0400 |
commit | 933898d1a9d7c9805ea8c445bb2d8bbf54d49900 (patch) | |
tree | 64892ed4611442b3576301828aacfd39891f6302 /recipes-kernel/linux | |
parent | da08d625f22063c4a49a16229a94b0b2492c90de (diff) | |
download | meta-ti-933898d1a9d7c9805ea8c445bb2d8bbf54d49900.tar.gz |
linux-ti33x-psp 3.2: fix ehrPWM1 for beaglebone
This makes the backlight on teh 7" LCD cape work again. Also add a patch to
print the hardware revision of the cape.
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-kernel/linux')
4 files changed, 92 insertions, 1 deletions
diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0027-beaglebone-decrease-PWM-frequency-to-old-value-LCD7-.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0027-beaglebone-decrease-PWM-frequency-to-old-value-LCD7-.patch new file mode 100644 index 00000000..59c13710 --- /dev/null +++ b/recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0027-beaglebone-decrease-PWM-frequency-to-old-value-LCD7-.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | From 22560ed5c9c2a4e693adf5981e47f3b5f363676d Mon Sep 17 00:00:00 2001 | ||
2 | From: Koen Kooi <koen@dominion.thruhere.net> | ||
3 | Date: Tue, 17 Apr 2012 11:25:00 +0200 | ||
4 | Subject: [PATCH 27/29] beaglebone: decrease PWM frequency to old value, LCD7 | ||
5 | doesn't like it | ||
6 | |||
7 | Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> | ||
8 | --- | ||
9 | arch/arm/mach-omap2/board-am335xevm.c | 2 +- | ||
10 | 1 files changed, 1 insertions(+), 1 deletions(-) | ||
11 | |||
12 | diff --git a/arch/arm/mach-omap2/board-am335xevm.c b/arch/arm/mach-omap2/board-am335xevm.c | ||
13 | index 74a7e91..b0ee67e 100644 | ||
14 | --- a/arch/arm/mach-omap2/board-am335xevm.c | ||
15 | +++ b/arch/arm/mach-omap2/board-am335xevm.c | ||
16 | @@ -136,7 +136,7 @@ static const struct display_panel disp_panel = { | ||
17 | /* LCD backlight platform Data */ | ||
18 | #define AM335X_BACKLIGHT_MAX_BRIGHTNESS 100 | ||
19 | #define AM335X_BACKLIGHT_DEFAULT_BRIGHTNESS 50 | ||
20 | -#define AM335X_PWM_PERIOD_NANO_SECONDS (5000 * 10) | ||
21 | +#define AM335X_PWM_PERIOD_NANO_SECONDS (1000000 * 5) | ||
22 | |||
23 | #define PWM_DEVICE_ID "ecap.0" | ||
24 | |||
25 | -- | ||
26 | 1.7.7.6 | ||
27 | |||
diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0028-beaglebone-fix-ehrpwm-backlight.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0028-beaglebone-fix-ehrpwm-backlight.patch new file mode 100644 index 00000000..543c2746 --- /dev/null +++ b/recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0028-beaglebone-fix-ehrpwm-backlight.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | From 2ade67b1a3c53567ea131902c3631f7d57b4332f Mon Sep 17 00:00:00 2001 | ||
2 | From: Koen Kooi <koen@dominion.thruhere.net> | ||
3 | Date: Tue, 17 Apr 2012 12:35:01 +0200 | ||
4 | Subject: [PATCH 28/29] beaglebone: fix ehrpwm backlight | ||
5 | |||
6 | Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> | ||
7 | --- | ||
8 | arch/arm/mach-omap2/board-am335xevm.c | 1 + | ||
9 | 1 files changed, 1 insertions(+), 0 deletions(-) | ||
10 | |||
11 | diff --git a/arch/arm/mach-omap2/board-am335xevm.c b/arch/arm/mach-omap2/board-am335xevm.c | ||
12 | index b0ee67e..0d20bb1 100644 | ||
13 | --- a/arch/arm/mach-omap2/board-am335xevm.c | ||
14 | +++ b/arch/arm/mach-omap2/board-am335xevm.c | ||
15 | @@ -1434,6 +1434,7 @@ late_initcall(ecap0_init); | ||
16 | static void enable_ehrpwm1(int evm_id, int profile) | ||
17 | { | ||
18 | ehrpwm_backlight_enable = true; | ||
19 | + am33xx_register_ehrpwm(1, &pwm_pdata[1]); | ||
20 | } | ||
21 | |||
22 | /* Setup pwm-backlight for bbtoys7lcd */ | ||
23 | -- | ||
24 | 1.7.7.6 | ||
25 | |||
diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0029-beaglebone-also-report-cape-revision.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0029-beaglebone-also-report-cape-revision.patch new file mode 100644 index 00000000..de75a579 --- /dev/null +++ b/recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0029-beaglebone-also-report-cape-revision.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | From e6865fbe71c47846a528986effd6b21e4fe3f84b Mon Sep 17 00:00:00 2001 | ||
2 | From: Koen Kooi <koen@dominion.thruhere.net> | ||
3 | Date: Tue, 17 Apr 2012 12:57:38 +0200 | ||
4 | Subject: [PATCH 29/29] beaglebone: also report cape revision | ||
5 | |||
6 | Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> | ||
7 | --- | ||
8 | arch/arm/mach-omap2/board-am335xevm.c | 4 +++- | ||
9 | 1 files changed, 3 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 0d20bb1..bfcccd9 100644 | ||
13 | --- a/arch/arm/mach-omap2/board-am335xevm.c | ||
14 | +++ b/arch/arm/mach-omap2/board-am335xevm.c | ||
15 | @@ -2097,6 +2097,7 @@ static void beaglebone_cape_setup(struct memory_accessor *mem_acc, void *context | ||
16 | int ret; | ||
17 | char tmp[32]; | ||
18 | char name[32]; | ||
19 | + char version[4]; | ||
20 | char manufacturer[32]; | ||
21 | |||
22 | /* get cape specific data */ | ||
23 | @@ -2119,8 +2120,9 @@ static void beaglebone_cape_setup(struct memory_accessor *mem_acc, void *context | ||
24 | |||
25 | pr_info("BeagleBone cape EEPROM: found eeprom at address 0x%x\n", capecount + 0x53); | ||
26 | snprintf(name, sizeof(cape_config.name) + 1, "%s", cape_config.name); | ||
27 | + snprintf(version, sizeof(cape_config.version) + 1, "%s", cape_config.version); | ||
28 | snprintf(manufacturer, sizeof(cape_config.manufacturer) + 1, "%s", cape_config.manufacturer); | ||
29 | - pr_info("BeagleBone cape: %s %s\n", manufacturer, name); | ||
30 | + pr_info("BeagleBone cape: %s %s, revision %s\n", manufacturer, name, version); | ||
31 | snprintf(tmp, sizeof(cape_config.partnumber) + 1, "%s", cape_config.partnumber); | ||
32 | pr_info("BeagleBone cape partnumber: %s\n", tmp); | ||
33 | |||
34 | -- | ||
35 | 1.7.7.6 | ||
36 | |||
diff --git a/recipes-kernel/linux/linux-ti33x-psp_3.2.bb b/recipes-kernel/linux/linux-ti33x-psp_3.2.bb index 1dad0fb9..d3a2f2ee 100644 --- a/recipes-kernel/linux/linux-ti33x-psp_3.2.bb +++ b/recipes-kernel/linux/linux-ti33x-psp_3.2.bb | |||
@@ -12,7 +12,7 @@ MULTI_CONFIG_BASE_SUFFIX = "" | |||
12 | 12 | ||
13 | BRANCH = "v3.2-staging" | 13 | BRANCH = "v3.2-staging" |
14 | SRCREV = "e8004dad869568692ca2a45c04e8464ce48cc4d7" | 14 | SRCREV = "e8004dad869568692ca2a45c04e8464ce48cc4d7" |
15 | MACHINE_KERNEL_PR_append = "b+gitr${SRCREV}" | 15 | MACHINE_KERNEL_PR_append = "c+gitr${SRCREV}" |
16 | 16 | ||
17 | COMPATIBLE_MACHINE = "(ti33x)" | 17 | COMPATIBLE_MACHINE = "(ti33x)" |
18 | 18 | ||
@@ -822,4 +822,7 @@ PATCHES_OVER_PSP = " \ | |||
822 | file://beaglebone/0024-beaglebone-add-gpio-keys-for-lcd.patch \ | 822 | file://beaglebone/0024-beaglebone-add-gpio-keys-for-lcd.patch \ |
823 | file://beaglebone/0025-beaglebone-fix-direction-of-gpio-keys.patch \ | 823 | file://beaglebone/0025-beaglebone-fix-direction-of-gpio-keys.patch \ |
824 | file://beaglebone/0026-beaglebone-fix-3.5-lcd-cape-support.patch \ | 824 | file://beaglebone/0026-beaglebone-fix-3.5-lcd-cape-support.patch \ |
825 | file://beaglebone/0027-beaglebone-decrease-PWM-frequency-to-old-value-LCD7-.patch \ | ||
826 | file://beaglebone/0028-beaglebone-fix-ehrpwm-backlight.patch \ | ||
827 | file://beaglebone/0029-beaglebone-also-report-cape-revision.patch \ | ||
825 | " | 828 | " |