On Thu, 2015-05-14 at 08:12 -0700, Tim Harvey wrote:
> It turns out that this is needed because env_nand.c:readenv() calls
> nand_read_skip_bad, which uses the mtd layer. For SPL the
> functionality of readenv() is pretty much already in
> nand_spl_load_image() so I find if do the following (instea
On Wed, May 13, 2015 at 4:38 PM, Scott Wood wrote:
> On Fri, 2015-05-08 at 14:39 -0700, Tim Harvey wrote:
>> -int nand_spl_load_image(uint32_t offs, unsigned int size, void *buf)
>> +int mtd_read(struct mtd_info *mtd, loff_t offs, size_t size, size_t *retlen,
>> + uchar *buf)
>> {
>>
On Fri, 2015-05-08 at 14:39 -0700, Tim Harvey wrote:
> -int nand_spl_load_image(uint32_t offs, unsigned int size, void *buf)
> +int mtd_read(struct mtd_info *mtd, loff_t offs, size_t size, size_t *retlen,
> + uchar *buf)
> {
> struct nand_chip *chip;
> unsigned int page;
>
On Fri, May 8, 2015 at 2:39 PM, Tim Harvey wrote:
> in order to use env in the SPL (CONFIG_SPL_ENV_SUPPORT) nand_info,
> mtd_block_isbad, and mtd_read must be available.
>
> Signed-off-by: Tim Harvey
> ---
> drivers/mtd/nand/mxs_nand_spl.c | 112
> ++--
> 1 f
in order to use env in the SPL (CONFIG_SPL_ENV_SUPPORT) nand_info,
mtd_block_isbad, and mtd_read must be available.
Signed-off-by: Tim Harvey
---
drivers/mtd/nand/mxs_nand_spl.c | 112 ++--
1 file changed, 61 insertions(+), 51 deletions(-)
diff --git a/driver
5 matches
Mail list logo