]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tegra: enable NAND on Harmony
authorStephen Warren <swarren@nvidia.com>
Mon, 30 Jul 2012 07:37:52 +0000 (07:37 +0000)
committerTom Warren <twarren@nvidia.com>
Fri, 7 Sep 2012 20:54:31 +0000 (13:54 -0700)
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
board/nvidia/dts/tegra20-harmony.dts
include/configs/harmony.h

index c3519543011e40e5dc124fe00bf7586732faced3..ca5facb7fe71b5b20c325bfed3ef36bd5fa557b9 100644 (file)
        usb@c5004000 {
                status = "disabled";
        };
+
+       nand-controller@70008000 {
+               nvidia,wp-gpios = <&gpio 23 0>;         /* PC7 */
+               nvidia,width = <8>;
+               nvidia,timing = <26 100 20 80 20 10 12 10 70>;
+               nand@0 {
+                       reg = <0>;
+                       compatible = "hynix,hy27uf4g2b", "nand-flash";
+               };
+       };
 };
index d0555c16300245d744488f09268626c85a35c14f..69857dd5810e1ffc5799baf6739df9e28385baac 100644 (file)
 #define CONFIG_CMD_EXT2
 #define CONFIG_CMD_FAT
 
-/* Environment not stored */
-#define CONFIG_ENV_IS_NOWHERE
+/* 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 in NAND (which is 512M), aligned to start of last sector */
+#define CONFIG_ENV_IS_IN_NAND
+#define CONFIG_ENV_OFFSET      (SZ_512M - SZ_128K) /* 128K sector size */
 
 /* USB Host support */
 #define CONFIG_USB_EHCI