memory: omap-gpmc: Add Kconfig option for debug
authorTony Lindgren <tony@atomide.com>
Tue, 2 Jun 2015 01:22:10 +0000 (19:22 -0600)
committerPaul Walmsley <paul@pwsan.com>
Tue, 2 Jun 2015 01:22:10 +0000 (19:22 -0600)
commit63aa945b1013c34b145dcf218d4ea323cbd93f86
tree867cc2a8675635cb286eeca8f4364bacdc3e97e1
parente26081808edadfd257c6c9d81014e3b25e9a6118
memory: omap-gpmc: Add Kconfig option for debug

We support decoding the bootloader values if DEBUG is defined.
But we also need to change the struct omap_hwmod flags to have
HWMOD_INIT_NO_RESET to avoid the GPMC being reset during the
boot. Otherwise just the default timings will be displayed
instead of the bootloader configured timings.

This also allows us to clean up the various GPMC related
hwmod flags. For debugging, we only need HWMOD_INIT_NO_RESET,
and HWMOD_INIT_NO_IDLE is not needed.

Cc: Brian Hutchinson <b.hutchman@gmail.com>
Cc: Paul Walmsley <paul@pwsan.com>
Cc: Roger Quadros <rogerq@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/omap_hwmod.h
arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c
arch/arm/mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c
arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
arch/arm/mach-omap2/omap_hwmod_44xx_data.c
arch/arm/mach-omap2/omap_hwmod_7xx_data.c
arch/arm/mach-omap2/omap_hwmod_81xx_data.c
drivers/memory/Kconfig
drivers/memory/omap-gpmc.c