Skip to content

Commit a787f40

Browse files
committed
Merge tag 'omap-for-v4.3/fixes-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into fixes
Merge "Fixes for omap against v4.3-rc5" from Tony Lindgren: - Regulator fix for beagle-x15 to fix HDMI without a SD card being inserted - GPMC fix for showing proper timings and to allow enabling debug options that somehow was unselectable earlier - Add minimal documentation for new MMC1 dependency on REGULATOR_PBIAS as it may not be obvious for people with targeted .config files * tag 'omap-for-v4.3/fixes-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap: Documentation: ARM: List new omap MMC requirements memory: omap-gpmc: dump "before" state before first modification memory: omap-gpmc: Fix unselectable debug option for GPMC ARM: dts: am57xx-beagle-x15: set VDD_SD to always-on
2 parents 2e4e5da + d8e1f5e commit a787f40

File tree

4 files changed

+19
-5
lines changed

4 files changed

+19
-5
lines changed

Documentation/arm/OMAP/README

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
This file contains documentation for running mainline
2+
kernel on omaps.
3+
4+
KERNEL NEW DEPENDENCIES
5+
v4.3+ Update is needed for custom .config files to make sure
6+
CONFIG_REGULATOR_PBIAS is enabled for MMC1 to work
7+
properly.

arch/arm/boot/dts/am57xx-beagle-x15.dts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,11 +402,12 @@
402402
/* SMPS9 unused */
403403

404404
ldo1_reg: ldo1 {
405-
/* VDD_SD */
405+
/* VDD_SD / VDDSHV8 */
406406
regulator-name = "ldo1";
407407
regulator-min-microvolt = <1800000>;
408408
regulator-max-microvolt = <3300000>;
409409
regulator-boot-on;
410+
regulator-always-on;
410411
};
411412

412413
ldo2_reg: ldo2 {

drivers/memory/Kconfig

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,18 @@ config OMAP_GPMC
5858
memory drives like NOR, NAND, OneNAND, SRAM.
5959

6060
config OMAP_GPMC_DEBUG
61-
bool
61+
bool "Enable GPMC debug output and skip reset of GPMC during init"
6262
depends on OMAP_GPMC
6363
help
6464
Enables verbose debugging mostly to decode the bootloader provided
65-
timings. Enable this during development to configure devices
66-
connected to the GPMC bus.
65+
timings. To preserve the bootloader provided timings, the reset
66+
of GPMC is skipped during init. Enable this during development to
67+
configure devices connected to the GPMC bus.
68+
69+
NOTE: In addition to matching the register setup with the bootloader
70+
you also need to match the GPMC FCLK frequency used by the
71+
bootloader or else the GPMC timings won't be identical with the
72+
bootloader timings.
6773

6874
config MVEBU_DEVBUS
6975
bool "Marvell EBU Device Bus Controller"

drivers/memory/omap-gpmc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,6 @@ int gpmc_cs_set_timings(int cs, const struct gpmc_timings *t,
696696
int div;
697697
u32 l;
698698

699-
gpmc_cs_show_timings(cs, "before gpmc_cs_set_timings");
700699
div = gpmc_calc_divider(t->sync_clk);
701700
if (div < 0)
702701
return div;
@@ -1988,6 +1987,7 @@ static int gpmc_probe_generic_child(struct platform_device *pdev,
19881987
if (ret < 0)
19891988
goto err;
19901989

1990+
gpmc_cs_show_timings(cs, "before gpmc_cs_program_settings");
19911991
ret = gpmc_cs_program_settings(cs, &gpmc_s);
19921992
if (ret < 0)
19931993
goto err;

0 commit comments

Comments
 (0)