From: Peter Korsgaard <jacmet@sunsite.dk>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 7/7] am335x_evm: Add support to boot from NOR.
Date: Thu, 16 May 2013 16:36:02 +0200 [thread overview]
Message-ID: <87y5bfm1pp.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <1368469719-22406-7-git-send-email-trini@ti.com> (Tom Rini's message of "Mon, 13 May 2013 14:28:39 -0400")
>>>>> "Tom" == Tom Rini <trini@ti.com> writes:
Tom> From: Steve Kipisz <s-kipisz2@ti.com>
Tom> NOR requires that s_init be within the first 4KiB of the image so that
Tom> we can perform the rest of the required pinmuxing to talk with the rest
Tom> of NOR that we are found on. When NOR_BOOT is set we save our
Tom> environment in NOR at 512KiB and a redundant copy at 768KiB. We avoid
Tom> using SPL for this case and u-boot.bin is written directly to the start
Tom> of NOR.
Tom> Signed-off-by: Steve Kipisz <s-kipisz2@ti.com>
Tom> Signed-off-by: Tom Rini <trini@ti.com>
Tom> ---
Tom> Changes in v2:
Tom> - Reword commit message slightly
Tom> ---
Tom> arch/arm/cpu/armv7/am33xx/emif4.c | 6 +-
Tom> board/ti/am335x/Makefile | 2 +-
Tom> board/ti/am335x/board.c | 31 ++++++++++-
Tom> board/ti/am335x/mux.c | 6 +-
Tom> board/ti/am335x/u-boot.lds | 110 +++++++++++++++++++++++++++++++++++++
Tom> boards.cfg | 1 +
Tom> include/configs/am335x_evm.h | 26 ++++++++-
Tom> 7 files changed, 173 insertions(+), 9 deletions(-)
Tom> create mode 100644 board/ti/am335x/u-boot.lds
Tom> diff --git a/arch/arm/cpu/armv7/am33xx/emif4.c b/arch/arm/cpu/armv7/am33xx/emif4.c
Tom> index aa84e96..370230b 100644
Tom> --- a/arch/arm/cpu/armv7/am33xx/emif4.c
Tom> +++ b/arch/arm/cpu/armv7/am33xx/emif4.c
Tom> @@ -43,9 +43,11 @@ void dram_init_banksize(void)
Tom> }
Tom> -#ifdef CONFIG_SPL_BUILD
Tom> +#if defined(CONFIG_SPL_BUILD) || defined(CONFIG_NOR_BOOT)
Tom> +#ifdef CONFIG_TI81XX
Tom> static struct dmm_lisa_map_regs *hw_lisa_map_regs =
Tom> (struct dmm_lisa_map_regs *)DMM_BASE;
Tom> +#endif
Tom> static struct vtp_reg *vtpreg[2] = {
Tom> (struct vtp_reg *)VTP0_CTRL_ADDR,
Tom> (struct vtp_reg *)VTP1_CTRL_ADDR};
Tom> @@ -53,6 +55,7 @@ static struct vtp_reg *vtpreg[2] = {
Tom> static struct ddr_ctrl *ddrctrl = (struct ddr_ctrl *)DDR_CTRL_ADDR;
Tom> #endif
Tom> +#ifdef CONFIG_TI81XX
Why are you adding the TI81XX dependency here? That doesn't have
anything to do with nor boot, does it?
Tom> void config_dmm(const struct dmm_lisa_map_regs *regs)
Tom> {
Tom> enable_dmm_clocks();
Tom> @@ -67,6 +70,7 @@ void config_dmm(const struct dmm_lisa_map_regs *regs)
Tom> writel(regs->dmm_lisa_map_1, &hw_lisa_map_regs->dmm_lisa_map_1);
Tom> writel(regs->dmm_lisa_map_0, &hw_lisa_map_regs->dmm_lisa_map_0);
Tom> }
Tom> +#endif
--
Bye, Peter Korsgaard
next prev parent reply other threads:[~2013-05-16 14:36 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-13 18:28 [U-Boot] [PATCH v2 1/7] am33xx/omap3: Clean up gpmc_init slightly Tom Rini
2013-05-13 18:28 ` [U-Boot] [PATCH v2 2/7] am335x_evm: Drop useless CONFIG_ENV_IS_NOWHERE Tom Rini
2013-05-13 18:28 ` [U-Boot] [PATCH v2 3/7] am335x_evm: Update SPI_BOOT support, add MTDPARTS info Tom Rini
2013-05-15 20:41 ` Peter Korsgaard
2013-05-13 18:28 ` [U-Boot] [PATCH v2 4/7] am335x_evm: Only set CONFIG_NAND when !CONFIG_SPI_BOOT Tom Rini
2013-05-15 20:42 ` Peter Korsgaard
2013-05-13 18:28 ` [U-Boot] [PATCH v2 5/7] am335x_evm: Rework board_is_foo() checks Tom Rini
2013-05-15 20:43 ` Peter Korsgaard
2013-05-13 18:28 ` [U-Boot] [PATCH v2 6/7] am335x_evm: Add support for the NOR module on the memory cape Tom Rini
2013-05-16 14:32 ` Peter Korsgaard
2013-05-16 14:46 ` Tom Rini
2013-05-16 18:54 ` Peter Korsgaard
2013-05-16 19:27 ` Tom Rini
2013-05-16 19:32 ` Peter Korsgaard
2013-05-13 18:28 ` [U-Boot] [PATCH v2 7/7] am335x_evm: Add support to boot from NOR Tom Rini
2013-05-16 14:36 ` Peter Korsgaard [this message]
2013-05-16 14:49 ` Tom Rini
2013-05-16 18:55 ` Peter Korsgaard
2013-05-16 19:30 ` Tom Rini
2013-05-16 19:32 ` Peter Korsgaard
2013-06-17 14:43 ` Mark Jackson
2013-06-17 14:49 ` Tom Rini
2013-06-17 14:59 ` Mark Jackson
2013-06-17 15:01 ` Tom Rini
2013-06-17 15:23 ` Mark Jackson
2013-06-17 15:23 ` Mark Jackson
2013-06-17 15:29 ` Tom Rini
2013-06-17 16:01 ` Stefan Roese
2013-06-17 16:10 ` Mark Jackson
2013-06-17 17:04 ` Kipisz, Steven
2013-06-17 18:38 ` Mark Jackson
2013-06-18 12:11 ` Mark Jackson
2013-07-11 13:06 ` Mark Jackson
2013-07-11 13:28 ` Tom Rini
2013-07-11 13:45 ` Mark Jackson
2013-07-11 14:34 ` Albert ARIBAUD
2013-07-11 15:54 ` Tom Rini
2013-07-11 16:08 ` Albert ARIBAUD
2013-07-11 16:14 ` Albert ARIBAUD
2013-07-11 16:17 ` Tom Rini
2013-07-17 12:58 ` Mark Jackson
2013-07-17 13:32 ` Tom Rini
2013-05-15 20:39 ` [U-Boot] [PATCH v2 1/7] am33xx/omap3: Clean up gpmc_init slightly Peter Korsgaard
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=87y5bfm1pp.fsf@dell.be.48ers.dk \
--to=jacmet@sunsite.dk \
--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