Skip to content

Commit cfeeea6

Browse files
committed
bus: ti-sysc: Implement GPMC debug quirk to drop platform data
We need to enable no-reset-on-init quirk for GPMC if the config option for CONFIG_OMAP_GPMC_DEBUG is set. Otherwise the GPMC driver code is unable to show the bootloader configured timings. Signed-off-by: Tony Lindgren <tony@atomide.com>
1 parent 2928135 commit cfeeea6

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

‎drivers/bus/ti-sysc.c‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,6 +1383,8 @@ static const struct sysc_revision_quirk sysc_revision_quirks[] = {
13831383
SYSC_QUIRK_CLKDM_NOAUTO),
13841384
SYSC_QUIRK("dwc3", 0x488c0000, 0, 0x10, -ENODEV, 0x500a0200, 0xffffffff,
13851385
SYSC_QUIRK_CLKDM_NOAUTO),
1386+
SYSC_QUIRK("gpmc", 0, 0, 0x10, 0x14, 0x00000060, 0xffffffff,
1387+
SYSC_QUIRK_GPMC_DEBUG),
13861388
SYSC_QUIRK("hdmi", 0, 0, 0x10, -ENODEV, 0x50030200, 0xffffffff,
13871389
SYSC_QUIRK_OPT_CLKS_NEEDED),
13881390
SYSC_QUIRK("hdq1w", 0, 0, 0x14, 0x18, 0x00000006, 0xffffffff,
@@ -1818,6 +1820,14 @@ static void sysc_init_module_quirks(struct sysc *ddata)
18181820
return;
18191821
}
18201822

1823+
#ifdef CONFIG_OMAP_GPMC_DEBUG
1824+
if (ddata->cfg.quirks & SYSC_QUIRK_GPMC_DEBUG) {
1825+
ddata->cfg.quirks |= SYSC_QUIRK_NO_RESET_ON_INIT;
1826+
1827+
return;
1828+
}
1829+
#endif
1830+
18211831
if (ddata->cfg.quirks & SYSC_MODULE_QUIRK_I2C) {
18221832
ddata->pre_reset_quirk = sysc_pre_reset_quirk_i2c;
18231833
ddata->post_reset_quirk = sysc_post_reset_quirk_i2c;

‎include/linux/platform_data/ti-sysc.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ struct sysc_regbits {
5050
s8 emufree_shift;
5151
};
5252

53+
#define SYSC_QUIRK_GPMC_DEBUG BIT(26)
5354
#define SYSC_MODULE_QUIRK_ENA_RESETDONE BIT(25)
5455
#define SYSC_MODULE_QUIRK_PRUSS BIT(24)
5556
#define SYSC_MODULE_QUIRK_DSS_RESET BIT(23)

0 commit comments

Comments
 (0)