[U-Boot] [PATCH] tegra: enable NAND on Harmony
Simon Glass
sjg at chromium.org
Mon Jul 30 22:34:40 CEST 2012
On Mon, Jul 30, 2012 at 6:37 PM, Stephen Warren <swarren at wwwdotorg.org> wrote:
> From: Stephen Warren <swarren at nvidia.com>
>
> Signed-off-by: Stephen Warren <swarren at nvidia.com>
Acked-by: Simon Glass <sjg at chromium.org>
(nice to have a commit message though)
> ---
> board/nvidia/dts/tegra20-harmony.dts | 10 ++++++++++
> include/configs/harmony.h | 9 ++++++++-
> 2 files changed, 18 insertions(+), 1 deletions(-)
>
> diff --git a/board/nvidia/dts/tegra20-harmony.dts b/board/nvidia/dts/tegra20-harmony.dts
> index c351954..ca5facb 100644
> --- a/board/nvidia/dts/tegra20-harmony.dts
> +++ b/board/nvidia/dts/tegra20-harmony.dts
> @@ -54,4 +54,14 @@
> usb at c5004000 {
> status = "disabled";
> };
> +
> + nand-controller at 70008000 {
> + nvidia,wp-gpios = <&gpio 23 0>; /* PC7 */
> + nvidia,width = <8>;
> + nvidia,timing = <26 100 20 80 20 10 12 10 70>;
> + nand at 0 {
> + reg = <0>;
> + compatible = "hynix,hy27uf4g2b", "nand-flash";
> + };
> + };
> };
> diff --git a/include/configs/harmony.h b/include/configs/harmony.h
> index d0555c1..85059b9 100644
> --- a/include/configs/harmony.h
> +++ b/include/configs/harmony.h
> @@ -62,8 +62,15 @@
> #define CONFIG_CMD_EXT2
> #define CONFIG_CMD_FAT
>
> +/* NAND support */
> +#define CONFIG_CMD_NAND
> +#define CONFIG_TEGRA_NAND
> +#define CONFIG_SYS_MAX_NAND_DEVICE 1
> +#define CONFIG_SYS_NAND_BASE TEGRA20_NAND_BASE
> +
> /* Environment not stored */
> -#define CONFIG_ENV_IS_NOWHERE
> +#define CONFIG_ENV_IS_IN_NAND
> +#define CONFIG_ENV_OFFSET (SZ_512M - SZ_128K) /* 128K sector size */
>
> /* USB Host support */
> #define CONFIG_USB_EHCI
> --
> 1.7.0.4
>
More information about the U-Boot
mailing list