Skip to content

Commit b159a9a

Browse files
tmlindgregkh
authored andcommitted
bus: ti-sysc: Implement GPMC debug quirk to drop platform data
[ Upstream commit cfeeea6 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent f7f227e commit b159a9a

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
@@ -1379,6 +1379,8 @@ static const struct sysc_revision_quirk sysc_revision_quirks[] = {
13791379
SYSC_QUIRK_CLKDM_NOAUTO),
13801380
SYSC_QUIRK("dwc3", 0x488c0000, 0, 0x10, -ENODEV, 0x500a0200, 0xffffffff,
13811381
SYSC_QUIRK_CLKDM_NOAUTO),
1382+
SYSC_QUIRK("gpmc", 0, 0, 0x10, 0x14, 0x00000060, 0xffffffff,
1383+
SYSC_QUIRK_GPMC_DEBUG),
13821384
SYSC_QUIRK("hdmi", 0, 0, 0x10, -ENODEV, 0x50030200, 0xffffffff,
13831385
SYSC_QUIRK_OPT_CLKS_NEEDED),
13841386
SYSC_QUIRK("hdq1w", 0, 0, 0x14, 0x18, 0x00000006, 0xffffffff,
@@ -1814,6 +1816,14 @@ static void sysc_init_module_quirks(struct sysc *ddata)
18141816
return;
18151817
}
18161818

1819+
#ifdef CONFIG_OMAP_GPMC_DEBUG
1820+
if (ddata->cfg.quirks & SYSC_QUIRK_GPMC_DEBUG) {
1821+
ddata->cfg.quirks |= SYSC_QUIRK_NO_RESET_ON_INIT;
1822+
1823+
return;
1824+
}
1825+
#endif
1826+
18171827
if (ddata->cfg.quirks & SYSC_MODULE_QUIRK_I2C) {
18181828
ddata->pre_reset_quirk = sysc_pre_reset_quirk_i2c;
18191829
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)