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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « include/configs/tegra2_harmony.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * (C) Copyright 2010 2 * (C) Copyright 2010
3 * NVIDIA Corporation <www.nvidia.com> 3 * NVIDIA Corporation <www.nvidia.com>
4 * 4 *
5 * See file CREDITS for list of people who contributed to this 5 * See file CREDITS for list of people who contributed to this
6 * project. 6 * project.
7 * 7 *
8 * This program is free software; you can redistribute it and/or 8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as 9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of 10 * published by the Free Software Foundation; either version 2 of
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 0, 0, 0, 0, 0, 0, 0, 0, \ 159 0, 0, 0, 0, 0, 0, 0, 0, \
160 0, 0, 0, 0, 0, 0, 0, 0, \ 160 0, 0, 0, 0, 0, 0, 0, 0, \
161 0, 0, 0, 0, 0, 0, 0, 0, \ 161 0, 0, 0, 0, 0, 0, 0, 0, \
162 0, 0, 0, 0, 0, 0, 0, 0, \ 162 0, 0, 0, 0, 0, 0, 0, 0, \
163 0, '\'', 0, '-', '+', '.', 0, 0, \ 163 0, '\'', 0, '-', '+', '.', 0, 0, \
164 0, 0, 0, 0, 0, 0, 0, 0, \ 164 0, 0, 0, 0, 0, 0, 0, 0, \
165 0, 0, 0, 0, 0, 0, 0, 0, \ 165 0, 0, 0, 0, 0, 0, 0, 0, \
166 0, 0, 0, 0, 0, 0, 0, 0, \ 166 0, 0, 0, 0, 0, 0, 0, 0, \
167 0, 0, 0, 0, '?', 0, 0, 0 167 0, 0, 0, 0, '?', 0, 0, 0
168 168
169 /* Set clock divisor
170 * 7 bits of D and 1 bit of H
171 * divisor= (DDDDDDD + 1) + (H x 0.5)
172 * clock = original clock / divisor
173 * 6 means /4 */
174 #define CONFIG_NAND_CLK_DIVISOR_DDDDDDDH 6
175
176 /* For HYNIX HY27UF4G2B
177 * Frequence output of PLLP_OUT0 is set by BOOTROM to 216MHz
178 * to CLK_RST_CONTROLLER_PLLP_BASE_0,
179 * 216MHz / divisor 4 = 54MHZ
180 * 1 clock = 18.5 ns = NAND_CLK_PERIOD
181 * TRP_RESP_CNT=n, max(tRP, tREA)= max(12ns, 20ns)= 20ns for non-EDO mode
182 * bit 31-28=n=1, generated timing= (n+1) * NAND_CLK_PERIOD= (1+1)* 18.5
183 * TWB_CNT bit 27-24=n, tWB = 100ns = (n+1)* 18.5, so n= 5 (bit 27-24)
184 * similar way for other fields, please refer to reference manual
185 */
186 /* Value to be set to NAND_TIMING_0 register, address=70008014h */
187 #define CONFIG_TEGRA2_NAND_TIMING 0x15040001
188 /* Value to be set to NAND_TIMING2_0 register, address=7000801Ch */
189 #define CONFIG_TEGRA2_NAND_TIMING2 0x01
190
169 #define CONFIG_TEGRA2_PINMUX CONFIG_TEGRA2_PINMUX_DISPLAY_SEABOARD 191 #define CONFIG_TEGRA2_PINMUX CONFIG_TEGRA2_PINMUX_DISPLAY_SEABOARD
170 192
171 #define TEGRA_GPIO_INIT_LCD TEGRA_GPIO_INIT_LCD_SEABOARD 193 #define TEGRA_GPIO_INIT_LCD TEGRA_GPIO_INIT_LCD_SEABOARD
172 #define TEGRA_CLOCK_INIT_LCD TEGRA_CLOCK_INIT_LCD_SEABOARD 194 #define TEGRA_CLOCK_INIT_LCD TEGRA_CLOCK_INIT_LCD_SEABOARD
173 #define TEGRA_RESOURCE_LCD TEGRA_RESOURCE_LCD_SEABOARD 195 #define TEGRA_RESOURCE_LCD TEGRA_RESOURCE_LCD_SEABOARD
174 #define TEGRA_PANEL_MODE TEGRA_PANEL_MODE_SEABOARD 196 #define TEGRA_PANEL_MODE TEGRA_PANEL_MODE_SEABOARD
175
176 #endif /* __CONFIG_H */ 197 #endif /* __CONFIG_H */
OLDNEW
« 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