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

Issue 6623073: Chromium: arm: tegra: Add NAND support (Closed)

Created:
9 years, 9 months ago by jilin
Modified:
9 years, 7 months ago
Reviewers:
Tom Warren, jimmzhang, robotboy, twarren, jimmyz.nvidia
CC:
chromium-os-reviews_chromium.org, dneiss, Olof Johansson, chromeboy, amoljadi
Visibility:
Public.

Description

Chromium: arm: tegra: Add NAND support Change-Id: Ic367415623c52f1ec210de701c4c69c912e38bd9 BUG=Chrome-os-partner:2576 TEST=Tested on Seaboard and Harmony platforms with the followings. nand info nand device 0 nand scrub nand markbad 10000000 nand write 500000 12000000 1000 nand read 600000 12000000 1000 nand bad nand dump 12000000 All works well. Signed-off-by: Jim Lin <jilin@nvidia.com>; Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=edbc32a

Patch Set 1 #

Total comments: 7

Patch Set 2 : Most changes are for Tom's request. #

Patch Set 3 : Restore original common/cmd_cros.c #

Patch Set 4 : Switch from CONFIG_NAND_TEGRA2 to CONFIG_TEGRA2_NAND #

Patch Set 5 : Restore original common/cmd_cros.c #

Total comments: 1

Patch Set 6 : Use NAND_CMD_xx as informative names #

Patch Set 7 : Fix the issue that access to NAND device fails when jumper is set to SPI boot #

Total comments: 3

Patch Set 8 : Remove folder HY27UF084G2B, move timing value to config file. #

Total comments: 2

Patch Set 9 : Use RBSY0 (bit 8 of NAND_STATUS_0 register) to check device command completion #

Patch Set 10 : Rebase to cros/chromeos-v2010.09 #

Patch Set 11 : Remove unnecessary lines after Rebase to cros/chromeos-v2010.09 #

Total comments: 3

Patch Set 12 : Moving CONFIG_NAND_XXX and CONFIG_TEGRA2_NAND_XXX settings #

Total comments: 2

Patch Set 13 : Remove some unexpected lines of code and files #

Unified diffs Side-by-side diffs Delta from patch set Stats (+623 lines, -44 lines) Patch
M arch/arm/include/asm/arch-tegra2/tegra2.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M board/tegra2/generic/Makefile View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M board/tegra2/generic/board.c View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
A board/tegra2/generic/nand/tegra2_nand.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +127 lines, -0 lines 0 comments Download
A board/tegra2/generic/nand/tegra2_nand.c View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +442 lines, -0 lines 0 comments Download
M drivers/mtd/nand/nand_base.c View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M include/configs/chromeos/tegra2/harmony/common.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download
M include/configs/chromeos/tegra2/parts/nand.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -40 lines 0 comments Download
M include/configs/chromeos/tegra2/seaboard/common.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download
M include/configs/tegra2-common.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M include/configs/tegra2_harmony.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +22 lines, -0 lines 0 comments Download
M include/configs/tegra2_seaboard.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +22 lines, -1 line 0 comments Download

Messages

Total messages: 39 (0 generated)
jilin
9 years, 9 months ago (2011-03-08 03:42:53 UTC) #1
JimmyZ.nvidia
Anton, The unit test conducted by Jim is mainly on Harmony and Seaboard. You may ...
9 years, 9 months ago (2011-03-08 18:55:57 UTC) #2
Tom Warren
Just a few things I'd like corrected, Jim. Thanks! http://codereview.chromium.org/6623073/diff/1/board/tegra2/common/board.c File board/tegra2/common/board.c (right): http://codereview.chromium.org/6623073/diff/1/board/tegra2/common/board.c#newcode175 board/tegra2/common/board.c:175: ...
9 years, 9 months ago (2011-03-08 20:43:08 UTC) #3
jilin
1. "Why put our driver in board/common instead of drivers/mtd/nand?" This is board specific function ...
9 years, 9 months ago (2011-03-09 08:53:21 UTC) #4
jilin
9 years, 9 months ago (2011-03-10 07:04:51 UTC) #5
jilin
uploading common/cmd_cros.c is a mistake. I will remove it later.
9 years, 9 months ago (2011-03-10 07:06:44 UTC) #6
jilin
9 years, 9 months ago (2011-03-10 07:15:04 UTC) #7
jilin
I will keep using current CONFIG_NAND_TEGRA2 definition.
9 years, 9 months ago (2011-03-10 07:20:52 UTC) #8
robotboy
On 2011/03/10 07:20:52, jilin wrote: > I will keep using current CONFIG_NAND_TEGRA2 definition. Why not ...
9 years, 9 months ago (2011-03-10 08:41:14 UTC) #9
jilin
9 years, 9 months ago (2011-03-10 09:17:15 UTC) #10
jilin
9 years, 9 months ago (2011-03-10 09:24:40 UTC) #11
jilin
Done, on switching from CONFIG_NAND_TEGRA2 to CONFIG_TEGRA2_NAND.
9 years, 9 months ago (2011-03-10 09:28:14 UTC) #12
Tom Warren
One more change, please, Jim. http://codereview.chromium.org/6623073/diff/10009/board/tegra2/common/nand/HY27UF084G2B/tegra2_nand.c File board/tegra2/common/nand/HY27UF084G2B/tegra2_nand.c (right): http://codereview.chromium.org/6623073/diff/10009/board/tegra2/common/nand/HY27UF084G2B/tegra2_nand.c#newcode77 board/tegra2/common/nand/HY27UF084G2B/tegra2_nand.c:77: writel(Bit31+Bit28+Bit27+(3<<20)+Bit19+Bit8, chip->IO_ADDR_W + I ...
9 years, 9 months ago (2011-03-10 17:06:23 UTC) #13
robotboy
Something strange is going on. If I write U-Boot with this patch into NAND and ...
9 years, 9 months ago (2011-03-10 18:40:42 UTC) #14
robotboy
On 2011/03/10 18:40:42, robotboy wrote: > Something strange is going on. If I write U-Boot ...
9 years, 9 months ago (2011-03-10 19:06:09 UTC) #15
TWarren_nvidia.com
It may be that when booting from NAND, the bootrom sets up some stuff that ...
9 years, 9 months ago (2011-03-10 19:15:51 UTC) #16
TWarren_nvidia.com
HaHa! Great minds think alike! (see my previous reply - I hadn't read this message ...
9 years, 9 months ago (2011-03-10 19:18:15 UTC) #17
jilin
9 years, 9 months ago (2011-03-11 06:49:06 UTC) #18
Tom Warren
Much better, thanks, Jim! LGTM.
9 years, 9 months ago (2011-03-11 15:45:11 UTC) #19
robotboy
Tom, does this work for you when booting from SPI now? Or were you LGTMing ...
9 years, 9 months ago (2011-03-11 22:45:33 UTC) #20
Tom Warren
Sorry, just the NAND_CMD stuff. I'm on T30 right now, so I'm not doing any ...
9 years, 9 months ago (2011-03-11 23:17:37 UTC) #21
robotboy
OK, thanks. That's what I was assuming, just wanted to make sure. Thanks again, Anton ...
9 years, 9 months ago (2011-03-11 23:26:47 UTC) #22
jilin
9 years, 9 months ago (2011-03-16 11:28:02 UTC) #23
jimmzhang
I believe when boot selectors are set to NAND, the NAND controller init, ie clock, ...
9 years, 9 months ago (2011-03-16 17:32:03 UTC) #24
Tom Warren
A couple of questions about NAND_TIMING. Note that the Hynix part is used on Harmony, ...
9 years, 9 months ago (2011-03-16 18:04:35 UTC) #25
robotboy
I agree with Tom, it seems strange to have this driver have a NAND specific ...
9 years, 9 months ago (2011-03-16 22:51:34 UTC) #26
jimmzhang
On 2011/03/16 17:32:03, jimmzhang wrote: typo. It should be "previous code has no problem to ...
9 years, 9 months ago (2011-03-17 00:40:25 UTC) #27
jilin
9 years, 9 months ago (2011-03-17 12:45:49 UTC) #28
Tom Warren
Looking better, Jim. Thanks. Just one more change (see my comments in tegra2_seaboard.h) to clean ...
9 years, 9 months ago (2011-03-17 16:28:49 UTC) #29
robotboy
Looking good, there are a couple of things that need to be done to make ...
9 years, 9 months ago (2011-03-17 17:50:21 UTC) #30
jilin
9 years, 9 months ago (2011-03-18 10:32:03 UTC) #31
jilin
"include/configs/tegra2_seaboard.h:184: #define CONFIG_TEGRA2_NAND_tR_US 25 Where is this used?" Tom, I have removed this fixed delay ...
9 years, 9 months ago (2011-03-18 10:42:03 UTC) #32
jilin
9 years, 9 months ago (2011-03-18 12:12:05 UTC) #33
jilin
9 years, 9 months ago (2011-03-18 12:38:41 UTC) #34
robotboy
We're getting there. :) A few comments below. Thanks for your patience. -Anton http://codereview.chromium.org/6623073/diff/31003/board/tegra2/common/nand/tegra2_nand.h File ...
9 years, 9 months ago (2011-03-18 18:17:32 UTC) #35
jilin
9 years, 9 months ago (2011-03-21 11:13:17 UTC) #36
robotboy
Please remove the board/tegra2/common files (this directory is no more). Also, please remove the changes ...
9 years, 9 months ago (2011-03-21 16:50:12 UTC) #37
jilin
9 years, 9 months ago (2011-03-22 02:23:44 UTC) #38
robotboy
9 years, 9 months ago (2011-03-23 17:48:18 UTC) #39
LGTM, I'll push this minus the changes to the chromeos config files.  I'll make
the appropriate changes to those files in a separate CL.

Thanks,
    Anton

Powered by Google App Engine
This is Rietveld 408576698