From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Tue, 12 Apr 2011 22:38:08 +0200 Subject: [U-Boot] [PATCH] Add support for dataflash to U-boot environment settings tool. In-Reply-To: <1297533986-13294-1-git-send-email-linux@bohmer.net> References: <1297533986-13294-1-git-send-email-linux@bohmer.net> Message-ID: <20110412203808.EE1051537B0@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Remy Bohmer, In message <1297533986-13294-1-git-send-email-linux@bohmer.net> you wrote: > * The sector size for SPI-dataflash (like AT45 flashes) are not always > a power-of-2. So, the sector calculations are rewritten such that it > works for either power-of-2 as any size sectors. > * Make the flash sector size optional in case it is the same value as > the environment size. > > Signed-off-by: Remy Bohmer > --- > tools/env/fw_env.c | 72 ++++++++++++++++++++++++++++++---------------- > tools/env/fw_env.config | 10 ++++++- > tools/env/fw_env.h | 2 - > 3 files changed, 56 insertions(+), 28 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de He is truly wise who gains wisdom from another's mishap.