public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Sourav Poddar <sourav.poddar@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [UBOOT][PATCH 3/5] configs: dra7-evm: Add mtd parts info for qspi.
Date: Thu, 3 Apr 2014 12:00:56 +0530	[thread overview]
Message-ID: <533D0020.6070902@ti.com> (raw)
In-Reply-To: <CAD6G_RTF9Z9HJG=yMouhgA3aAFS6VtZMJ0ApvVeaz_QmSYEWpQ@mail.gmail.com>

On Thursday 03 April 2014 11:59 AM, Jagan Teki wrote:
> On Wed, Apr 2, 2014 at 4:06 PM, Sourav Poddar<sourav.poddar@ti.com>  wrote:
>> Add MTD partition info for qspi on dra7 evm
>>
>> Signed-off-by: Sourav Poddar<sourav.poddar@ti.com>
>> ---
>>   include/configs/dra7xx_evm.h |   46 ++++++++++++++++++++++++++++++++++++++++++
>>   1 file changed, 46 insertions(+)
>>
>> diff --git a/include/configs/dra7xx_evm.h b/include/configs/dra7xx_evm.h
>> index 291c538..68496dc 100644
>> --- a/include/configs/dra7xx_evm.h
>> +++ b/include/configs/dra7xx_evm.h
>> @@ -75,6 +75,52 @@
>>   #define CONFIG_SF_DEFAULT_SPEED                48000000
>>   #define CONFIG_DEFAULT_SPI_MODE                SPI_MODE_3
>>
>> +/*
>> + * Default to using SPI for environment, etc.
>> + * 0x000000 - 0x010000 : QSPI.SPL (64KiB)
>> + * 0x010000 - 0x020000 : QSPI.SPL.backup1 (64KiB)
>> + * 0x020000 - 0x030000 : QSPI.SPL.backup2 (64KiB)
>> + * 0x030000 - 0x040000 : QSPI.SPL.backup3 (64KiB)
>> + * 0x040000 - 0x140000 : QSPI.u-boot (1MiB)
>> + * 0x140000 - 0x150000 : QSPI.u-boot-spl-os (64KiB)
>> + * 0x150000 - 0x160000 : QSPI.u-boot-env (64KiB)
>> + * 0x160000 - 0x170000 : QSPI.u-boot-env.backup1 (64KiB)
>> + * 0x170000 - 0x970000 : QSPI.kernel (8MiB)
>> + * 0x970000 - 0x2000000 : USERLAND
>> + */
>> +#if defined(CONFIG_QSPI_BOOT)
>> +#undef CONFIG_ENV_IS_IN_MMC
>> +#define CONFIG_ENV_IS_IN_SPI_FLASH
>> +#define CONFIG_SYS_REDUNDAND_ENVIRONMENT
>> +#define CONFIG_ENV_SPI_MAX_HZ           CONFIG_SF_DEFAULT_SPEED
>> +#undef CONFIG_SPL_MAX_SIZE
>> +#define CONFIG_SPL_MAX_SIZE             (64<<  10) /* 64 KiB */
>> +#define CONFIG_ENV_SECT_SIZE           (64<<  10) /* 64 KB sectors */
>> +#undef CONFIG_ENV_OFFSET
>> +#define CONFIG_ENV_OFFSET              0x150000
>> +#undef CONFIG_ENV_OFFSET_REDUND
>> +#define CONFIG_ENV_OFFSET_REDUND       0x160000
>> +
>> +#ifdef MTDIDS_DEFAULT
>> +#undef MTDIDS_DEFAULT
>> +#endif
>> +#define MTDIDS_DEFAULT                 "nor0=m25p80-flash.0"
>> +
>> +#ifdef MTDPARTS_DEFAULT
>> +#undef MTDPARTS_DEFAULT
>> +#endif
>> +#define MTDPARTS_DEFAULT                       "mtdparts=qspi.0:64k(SPL)," \
>> +                                               "64k(QSPI.SPL.backup1)," \
>> +                                               "64k(QSPI.SPL.backup2)," \
>> +                                               "64k(QSPI.SPL.backup3)," \
>> +                                               "1m(QSPI.u-boot)," \
>> +                                               "64k(QSPI.u-boot-spl-os)," \
>> +                                               "64k(QSPI.u-boot-env)," \
>> +                                               "64k(QSPI.u-boot-env.backup1)," \
>> +                                               "8m(QSPI.kernel)," \
>> +                                               "-(QSPI.rootfs)"
>> +#endif
>> +
>>   /* SPI SPL */
>>   #define CONFIG_SPL_SPI_SUPPORT
>>   #define CONFIG_SPL_SPI_LOAD
> Can you add log file for this qspi mtd tests on your next version patches.
> Good to have this as we didn't mtd partitioning on qspi yet.
>
> thanks!
Tom is planning to send the next version with few other cleanups.
Once, he does that, I will add a log file on top of that for my testing?

  reply	other threads:[~2014-04-03  6:30 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-02 10:36 [U-Boot] [UBOOT][PATCH 0/5] dra7: Add partition table entry and qspi boot config Sourav Poddar
2014-04-02 10:36 ` [U-Boot] [UBOOT][PATCH 1/5] board.cfg: dra7: Add QSPI " Sourav Poddar
2014-04-02 10:36 ` [U-Boot] [UBOOT][PATCH 2/5] qspi: add support for qspi4 device Sourav Poddar
2014-04-02 10:36 ` [U-Boot] [UBOOT][PATCH 3/5] configs: dra7-evm: Add mtd parts info for qspi Sourav Poddar
2014-04-02 11:43   ` Tom Rini
2014-04-03  6:29   ` Jagan Teki
2014-04-03  6:30     ` Sourav Poddar [this message]
2014-04-02 10:36 ` [U-Boot] [UBOOT][PATCH 4/5] configs: dra7-evm: change uboot offset Sourav Poddar
2014-04-02 10:36 ` [U-Boot] [UBOOT][PATCH 5/5] spi: ti_qspi: Add delay for successful bulk erase Sourav Poddar
2014-04-03  6:00   ` Jagan Teki
2014-04-03  6:16     ` Sourav Poddar
2014-04-03  6:42       ` Jagan Teki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=533D0020.6070902@ti.com \
    --to=sourav.poddar@ti.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox