From: Jagan Teki <jagannadh.teki@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 5/7] zynq: Add support for auto nandboot
Date: Mon, 17 Feb 2014 20:05:04 +0530 [thread overview]
Message-ID: <CAD6G_RS_NPLCpjANfBUCLpE3zMxgZV3cLUow8PY8tQgZtFvKVw@mail.gmail.com> (raw)
In-Reply-To: <dfeead1d-0cc5-4bb4-9c4b-8e7d9f27821b@TX2EHSMHS006.ehs.local>
Hi Siva,
On Mon, Feb 17, 2014 at 5:56 PM, Siva Durga Prasad Paladugu
<siva.durga.paladugu@xilinx.com> wrote:
> From: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
>
> Added support to find the nand bootmode and also
> updated the default env. with nandboot.
>
> Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
> Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
> ---
> Changes for v3:
> -Separated out the nand patch series
> as per Michal comment.
> Changes for v2:
> -None
> ---
> board/xilinx/zynq/board.c | 4 ++++
> doc/README.zynq | 3 ++-
> include/configs/zynq-common.h | 3 +++
> 3 files changed, 9 insertions(+), 1 deletions(-)
>
> diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c
> index 5a47149..9dd158c 100644
> --- a/board/xilinx/zynq/board.c
> +++ b/board/xilinx/zynq/board.c
> @@ -15,6 +15,7 @@ DECLARE_GLOBAL_DATA_PTR;
> /* Bootmode setting values */
> #define ZYNQ_BM_MASK 0x0F
> #define ZYNQ_BM_NOR 0x02
> +#define ZYNQ_BM_NAND 0x04
> #define ZYNQ_BM_SD 0x05
> #define ZYNQ_BM_JTAG 0x0
>
> @@ -75,6 +76,9 @@ int board_late_init(void)
> case ZYNQ_BM_NOR:
> setenv("modeboot", "norboot");
> break;
> + case ZYNQ_BM_NAND:
> + setenv("modeboot", "nandboot");
> + break;
> case ZYNQ_BM_SD:
> setenv("modeboot", "sdboot");
> break;
> diff --git a/doc/README.zynq b/doc/README.zynq
> index 043c970..e0b38cf 100644
> --- a/doc/README.zynq
> +++ b/doc/README.zynq
> @@ -54,10 +54,11 @@ is intern used in autoboot.
>
> SLCR bootmode register Bit[3:0] values
> #define ZYNQ_BM_NOR 0x02
> +#define ZYNQ_BM_NOR 0x04
Can you please correct this typo - I think it's ZYNQ_BM_NAND
> #define ZYNQ_BM_SD 0x05
> #define ZYNQ_BM_JTAG 0x0
>
> -"modeboot" variable can assign any of "norboot", "sdboot" or "jtagboot"
> +"modeboot" variable can assign any of "norboot", "nandboot", "sdboot" or "jtagboot"
> bootmode strings at runtime.
>
> 5. Mainline status
> diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h
> index 08adaa2..068e59a 100644
> --- a/include/configs/zynq-common.h
> +++ b/include/configs/zynq-common.h
> @@ -170,6 +170,9 @@
> "norboot=echo Copying FIT from NOR flash to RAM... && " \
> "cp.b ${nor_flash_off} ${load_addr} ${fit_size} && " \
> "bootm ${load_addr}\0" \
> + "nandboot=echo Copying FIT from NAND flash to RAM... && " \
> + "nand read ${load_addr} ${flash_off} ${fit_size} && " \
> + "bootm ${load_addr}\0" \
> "sdboot=echo Copying FIT from SD to RAM... && " \
> "fatload mmc 0 ${load_addr} ${fit_image} && " \
> "bootm ${load_addr}\0" \
> --
> 1.7.4
>
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
thanks!
--
Jagan.
next prev parent reply other threads:[~2014-02-17 14:35 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1392639991-18798-1-git-send-email-sivadur@xilinx.com>
2014-02-17 12:26 ` [U-Boot] [PATCH v3 1/7] nand: Add zynq nand controller driver support Siva Durga Prasad Paladugu
2014-02-25 8:50 ` Michal Simek
2014-02-28 0:19 ` Scott Wood
2014-02-17 12:26 ` [U-Boot] [PATCH v3 2/7] zynq-common: Define CONFIG_NAND_ZYNQ Siva Durga Prasad Paladugu
2014-02-17 12:26 ` [U-Boot] [PATCH v3 3/7] zynq: Add zynq_zc770 xm011 board support Siva Durga Prasad Paladugu
2014-02-17 12:26 ` [U-Boot] [PATCH v3 4/7] zynq: zc770: Add base dts for zc770_xm011 Siva Durga Prasad Paladugu
2014-02-17 12:26 ` [U-Boot] [PATCH v3 5/7] zynq: Add support for auto nandboot Siva Durga Prasad Paladugu
2014-02-17 13:04 ` Andrew Murray
2014-02-17 14:33 ` Jagan Teki
2014-02-17 14:35 ` Jagan Teki [this message]
2014-02-17 12:26 ` [U-Boot] [PATCH v3 6/7] doc: README.zynq: Updated with nand support addition Siva Durga Prasad Paladugu
2014-02-17 12:26 ` [U-Boot] [PATCH v3 7/7] zynq: Enable nand env. support Siva Durga Prasad Paladugu
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=CAD6G_RS_NPLCpjANfBUCLpE3zMxgZV3cLUow8PY8tQgZtFvKVw@mail.gmail.com \
--to=jagannadh.teki@gmail.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 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.