All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [RFC] omap3: single binary supporting all flash types
@ 2016-06-17 10:00 Ladislav Michl
  2016-06-17 10:02 ` [U-Boot] [PATCH] armv7: add reset timeout to identify_nand_chip Ladislav Michl
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Ladislav Michl @ 2016-06-17 10:00 UTC (permalink / raw)
  To: u-boot

Hi there!

currently it is not possible to build single working OMAP3 binary which
enables more than one of these:
CONFIG_NOR
CONFIG_NAND
CONFIG_CMD_ONENAND
first problem lies in gpmc_init which configures CS[0] to one flash type
determined at compile time. Another is that identify_nand_chip hang when
trying to indentify chip which is not present. The same issue is with
OneNAND mtd driver. And finally omap_gpmc:board_nand_init() searches
for NAND specific configuration in gpmc config1 register - but that value
is forced earlier from gpmc_init, making test completely pointless.
Most of these issues are fixed with patches sent as reply to this message,
but:

As we might want to use single binary also to boot from MMC or other
sources, we cannot use boot_device to get a glue about used flash type.
Also U-Boot should not count on being loaded by its own SPL. So, to make
things easier to begin with, do we all agree that omap_gpmc:board_nand_init
as well as its OneNAND counterpart should expect gpmc config1 register
properly set and fail if something unexpected is found? That basically
means if we should rely on CS0 config provided by first stage loader or
try to rediscover flash devices (this problem does not exist when flash
itself is boot source)

Thank you for your attention,
	ladis

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-06-18 11:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-17 10:00 [U-Boot] [RFC] omap3: single binary supporting all flash types Ladislav Michl
2016-06-17 10:02 ` [U-Boot] [PATCH] armv7: add reset timeout to identify_nand_chip Ladislav Michl
2016-06-17 10:04 ` [U-Boot] [PATCH] armv7: make gpmc_cfg const Ladislav Michl
2016-06-17 10:05 ` [U-Boot] [RFC] armv7: Introduce enable_gpmc_cs_config Ladislav Michl
2016-06-17 10:07 ` [U-Boot] (no subject) Ladislav Michl
2016-06-17 10:09 ` Ladislav Michl
2016-06-17 10:17 ` [U-Boot] [PATCH] mtd: OneNAND: allow board init function fail Ladislav Michl
2016-06-18 11:08 ` [U-Boot] [RFC] omap3: single binary supporting all flash types Ladislav Michl
2016-06-18 11:12   ` [U-Boot] [PATCH] armv7: introduce set_gpmc_cs0 Ladislav Michl
2016-06-18 11:13   ` [U-Boot] [PATCH] igep00x0: runtime flash detection Ladislav Michl

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.