From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Tue, 22 Nov 2016 11:40:56 -0500 Subject: [U-Boot] [PATCH v2 9/14] sunxi: Enable UBI and NAND support In-Reply-To: <20161122155453.2ec4krfxudi7eusn@lukather> References: <55a34bf3e571b4af63c9b7ca913b51402ab486b2.1479817585.git-series.maxime.ripard@free-electrons.com> <20161122152427.GV2546@bill-the-cat> <20161122155453.2ec4krfxudi7eusn@lukather> Message-ID: <20161122164056.GW2546@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Nov 22, 2016 at 04:54:53PM +0100, Maxime Ripard wrote: > Hi Tom, > > On Tue, Nov 22, 2016 at 10:24:27AM -0500, Tom Rini wrote: > > On Tue, Nov 22, 2016 at 01:38:39PM +0100, Maxime Ripard wrote: > > > From: Hans de Goede > > > > > > Enable the NAND and UBI support in the configuration header so that we can > > > (finally) use it. > > > > > > Signed-off-by: Hans de Goede > > > Signed-off-by: Maxime Ripard > > > --- > > > board/sunxi/Kconfig | 8 ++++++++ > > > include/configs/sunxi-common.h | 14 ++++++++++++++ > > > 2 files changed, 22 insertions(+), 0 deletions(-) > > > > > > diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig > > > index e1d4ab148f08..c6a620a20167 100644 > > > --- a/board/sunxi/Kconfig > > > +++ b/board/sunxi/Kconfig > > > @@ -460,6 +460,14 @@ config AXP_GPIO > > > ---help--- > > > Say Y here to enable support for the gpio pins of the axp PMIC ICs. > > > > > > +if NAND_SUNXI > > > +config CMD_NAND > > > + default y > > > + > > > +config CMD_UBI > > > + default y > > > +endif > > > > We want to move away from adding 'default y' to board/*/Kconfig and > > instead have 'default y if ...' where the option is declared. > > Yeah, I wasn't really sure about this. You can find the two > constructs in there. But ok, that's noted :) > > > In this particular case we have a TODO of adding a NAND option that > > would be used to hide things like CMD_NAND and other sub-sections > > rather than using CMD_NAND for everything. > > Ok. > > > That said, we've just got 2 sunxi boards with NAND today right? Maybe > > we shouldn't make this default for all sunxi boards yet, yes? Thanks! > > Not really. The huge majority of the rather old boards (basically > everything older than a year or so) is using NAND. However, they're > all using MLC NANDs, which are not supported into UBI right now. Ah, good to know, OK. So v2, default y if ARCH_SUNXI on cmd/Kconfig :) -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: