All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] add CONFIG_ENV_SECT_SIZE_AUTO
@ 2020-05-06  8:46 Rasmus Villemoes
  2020-05-06  8:47 ` [PATCH 1/2] env/sf.c: use a variable to hold the sector size Rasmus Villemoes
  2020-05-06  8:47 ` [PATCH 2/2] env: add CONFIG_ENV_SECT_SIZE_AUTO Rasmus Villemoes
  0 siblings, 2 replies; 21+ messages in thread
From: Rasmus Villemoes @ 2020-05-06  8:46 UTC (permalink / raw)
  To: u-boot

This is roughly the U-Boot side equivalent to commit e282c422e0
(tools: fw_env: use erasesize from MEMGETINFO ioctl), at least for
SPI_FLASH backend.

When CONFIG_ENV_SECT_SIZE_AUTO is not selected (and it is of course
default n), there's no functional change, and the compiler even seems
to generate identical binary code.

The motivation is to cut about half a second off boottime on our newer
revisions, while still having the same U-Boot binary work on both.

Rasmus Villemoes (2):
  env/sf.c: use a variable to hold the sector size
  env: add CONFIG_ENV_SECT_SIZE_AUTO

 env/Kconfig | 14 ++++++++++++++
 env/sf.c    | 32 ++++++++++++++++++++------------
 2 files changed, 34 insertions(+), 12 deletions(-)

-- 
2.23.0

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

end of thread, other threads:[~2020-09-24 11:58 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-06  8:46 [PATCH 0/2] add CONFIG_ENV_SECT_SIZE_AUTO Rasmus Villemoes
2020-05-06  8:47 ` [PATCH 1/2] env/sf.c: use a variable to hold the sector size Rasmus Villemoes
2020-09-18  8:16   ` Rasmus Villemoes
2020-09-18 14:49     ` Tom Rini
2020-05-06  8:47 ` [PATCH 2/2] env: add CONFIG_ENV_SECT_SIZE_AUTO Rasmus Villemoes
2020-05-06  8:59   ` Joakim Tjernlund
2020-05-06  9:11     ` Rasmus Villemoes
2020-05-06  9:21       ` Joakim Tjernlund
2020-05-06  9:37         ` Rasmus Villemoes
2020-05-06 10:00           ` Joakim Tjernlund
2020-05-06 10:15             ` Rasmus Villemoes
2020-05-06 10:22               ` Joakim Tjernlund
2020-05-06 10:18             ` Joakim Tjernlund
2020-05-06 10:47               ` Rasmus Villemoes
2020-05-06 11:06                 ` Joakim Tjernlund
2020-05-06 11:08                   ` Joakim Tjernlund
2020-09-18  8:17   ` Rasmus Villemoes
2020-09-24 10:54     ` Wolfgang Denk
2020-09-24 11:08       ` Rasmus Villemoes
     [not found]         ` <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.949ef384-8293-46b8-903f-40a477c056ae.f435d534-2cba-4875-b180-3df85765465d@emailsignatures365.codetwo.com>
     [not found]           ` <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.0d2bd5fa-15cc-4b27-b94e-83614f9e5b38.1e7a7c88-825a-48b1-844c-973bce803cb6@emailsignatures365.codetwo.com>
2020-09-24 11:35             ` Mike Looijmans
2020-09-24 11:58               ` Rasmus Villemoes

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.