From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 804C6C433F5 for ; Mon, 4 Apr 2022 16:18:40 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DF918839BE; Mon, 4 Apr 2022 18:18:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="CYtvL0Ws"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D42E7839B9; Mon, 4 Apr 2022 18:18:28 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4787983923 for ; Mon, 4 Apr 2022 18:18:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C75EB60ACC; Mon, 4 Apr 2022 16:18:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12992C34110; Mon, 4 Apr 2022 16:18:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649089103; bh=QnVvNdaV3XyfTUuNgBjcsfgzrSyBB9FK9sHs+h6QQO0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CYtvL0WsWgmFdOPnUjPLPt9vaV/cMyp/Z+O03DihNSQaTPqiCo6KnCBH00tz0Fczm qqdAlmMPPjcL7xIiBsk7xImTxg70qUoA4Axgjgj8My8nVngraFnRDfSem2UuBvcbSu nvuV+SJXVgCaMLIEtwYOolIFQ3e5j0/c0c4WJ73TGbOn8Rm7DkfF4BRtP4bnRl8uQ/ JPjSIT+y50xQjL8jG8xks7ik6dutpfjtsHbsNhLDAlSiM9PydG8YPuaW7Sfow8PYmB MXd8pdU4a7RV6zHtfWy7HL4Gysf18H1Muzx2KjDHs9G/v5sca8EPjKKjPNDW7vQdoE 7mT/1radNsBvw== Received: by pali.im (Postfix) id 4A27E7F0; Mon, 4 Apr 2022 18:18:20 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Priyanka Jain , Wolfgang Denk Cc: Michal Simek , Simon Glass , u-boot@lists.denx.de Subject: [PATCH 1/5] mtd: rawnand: fsl_elbc: Implement RNDOUT command Date: Mon, 4 Apr 2022 18:17:18 +0200 Message-Id: <20220404161722.4884-2-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220404161722.4884-1-pali@kernel.org> References: <20220404161722.4884-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean This is needed for SW ECC. Signed-off-by: Pali Rohár --- drivers/mtd/nand/raw/fsl_elbc_nand.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/mtd/nand/raw/fsl_elbc_nand.c b/drivers/mtd/nand/raw/fsl_elbc_nand.c index ddfd75d32d06..f8698ec0158a 100644 --- a/drivers/mtd/nand/raw/fsl_elbc_nand.c +++ b/drivers/mtd/nand/raw/fsl_elbc_nand.c @@ -312,6 +312,14 @@ static void fsl_elbc_cmdfunc(struct mtd_info *mtd, unsigned int command, fsl_elbc_run_command(mtd); return; + /* RNDOUT moves the pointer inside the page */ + case NAND_CMD_RNDOUT: + vdbg("fsl_elbc_cmdfunc: NAND_CMD_RNDOUT, column: 0x%x.\n", + column); + + ctrl->index = column; + return; + /* READOOB reads only the OOB because no ECC is performed. */ case NAND_CMD_READOOB: vdbg("fsl_elbc_cmdfunc: NAND_CMD_READOOB, page_addr:" -- 2.20.1