Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Unified Diff: include/configs/tegra2_seaboard.h

Issue 6623073: Chromium: arm: tegra: Add NAND support (Closed) Base URL: http://git.chromium.org/git/u-boot-next.git@chromeos-v2010.09
Patch Set: Remove some unexpected lines of code and files Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/configs/tegra2_harmony.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/configs/tegra2_seaboard.h
diff --git a/include/configs/tegra2_seaboard.h b/include/configs/tegra2_seaboard.h
index b2b53f17e07db0a5d049ea0a6ae9986abf30132c..9c744cd6f54948a66d37e6c4bf6cad4370fcd91b 100644
--- a/include/configs/tegra2_seaboard.h
+++ b/include/configs/tegra2_seaboard.h
@@ -166,11 +166,32 @@
0, 0, 0, 0, 0, 0, 0, 0, \
0, 0, 0, 0, '?', 0, 0, 0
+/* Set clock divisor
+ * 7 bits of D and 1 bit of H
+ * divisor= (DDDDDDD + 1) + (H x 0.5)
+ * clock = original clock / divisor
+ * 6 means /4 */
+#define CONFIG_NAND_CLK_DIVISOR_DDDDDDDH 6
+
+/* For HYNIX HY27UF4G2B
+ * Frequence output of PLLP_OUT0 is set by BOOTROM to 216MHz
+ * to CLK_RST_CONTROLLER_PLLP_BASE_0,
+ * 216MHz / divisor 4 = 54MHZ
+ * 1 clock = 18.5 ns = NAND_CLK_PERIOD
+ * TRP_RESP_CNT=n, max(tRP, tREA)= max(12ns, 20ns)= 20ns for non-EDO mode
+ * bit 31-28=n=1, generated timing= (n+1) * NAND_CLK_PERIOD= (1+1)* 18.5
+ * TWB_CNT bit 27-24=n, tWB = 100ns = (n+1)* 18.5, so n= 5 (bit 27-24)
+ * similar way for other fields, please refer to reference manual
+ */
+/* Value to be set to NAND_TIMING_0 register, address=70008014h */
+#define CONFIG_TEGRA2_NAND_TIMING 0x15040001
+/* Value to be set to NAND_TIMING2_0 register, address=7000801Ch */
+#define CONFIG_TEGRA2_NAND_TIMING2 0x01
+
#define CONFIG_TEGRA2_PINMUX CONFIG_TEGRA2_PINMUX_DISPLAY_SEABOARD
#define TEGRA_GPIO_INIT_LCD TEGRA_GPIO_INIT_LCD_SEABOARD
#define TEGRA_CLOCK_INIT_LCD TEGRA_CLOCK_INIT_LCD_SEABOARD
#define TEGRA_RESOURCE_LCD TEGRA_RESOURCE_LCD_SEABOARD
#define TEGRA_PANEL_MODE TEGRA_PANEL_MODE_SEABOARD
-
#endif /* __CONFIG_H */
« no previous file with comments | « include/configs/tegra2_harmony.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698