{"id":1745904,"url":"http://patchwork.ozlabs.org/api/patches/1745904/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/20230221201925.9644-54-pali@kernel.org/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20230221201925.9644-54-pali@kernel.org>","list_archive_url":null,"date":"2023-02-21T20:19:19","name":"[RFC,u-boot-mvebu,53/59] arm: mvebu: db-88f6820-amc: Add defconfig for NAND booting","commit_ref":null,"pull_url":null,"state":"rfc","archived":false,"hash":"430a43351c07314faaa398d888f5cbec5322e1b1","submitter":{"id":78810,"url":"http://patchwork.ozlabs.org/api/people/78810/?format=json","name":"Pali Rohár","email":"pali@kernel.org"},"delegate":{"id":1696,"url":"http://patchwork.ozlabs.org/api/users/1696/?format=json","username":"stroese","first_name":"Stefan","last_name":"Roese","email":"sr@denx.de"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/20230221201925.9644-54-pali@kernel.org/mbox/","series":[{"id":343058,"url":"http://patchwork.ozlabs.org/api/series/343058/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=343058","date":"2023-02-21T20:18:27","name":"arm: mvebu: Various fixes","version":1,"mbox":"http://patchwork.ozlabs.org/series/343058/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/1745904/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/1745904/checks/","tags":{},"related":[],"headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>)","legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=Kp7MXThr;\n\tdkim-atps=neutral","phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=kernel.org","phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de","phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.b=\"Kp7MXThr\";\n\tdkim-atps=neutral","phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=kernel.org","phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org"],"Received":["from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4PLrb04y1lz23j7\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Feb 2023 07:33:16 +1100 (AEDT)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 665B185B8A;\n\tTue, 21 Feb 2023 21:24:44 +0100 (CET)","by phobos.denx.de (Postfix, from userid 109)\n id E087785B3D; Tue, 21 Feb 2023 21:23:57 +0100 (CET)","from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217])\n (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n bits)) (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 3AD5385B0C\n for <u-boot@lists.denx.de>; Tue, 21 Feb 2023 21:22:45 +0100 (CET)","from smtp.kernel.org (relay.kernel.org [52.25.139.140])\n (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n (No client certificate requested)\n by dfw.source.kernel.org (Postfix) with ESMTPS id ADA0661206;\n Tue, 21 Feb 2023 20:22:38 +0000 (UTC)","by smtp.kernel.org (Postfix) with ESMTPSA id 01653C4339B;\n Tue, 21 Feb 2023 20:22:38 +0000 (UTC)","by pali.im (Postfix)\n id 03FE7AED; Tue, 21 Feb 2023 21:22:36 +0100 (CET)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,\n DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,\n SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n s=k20201202; t=1677010958;\n bh=9h1fTzEWkzq2xKt3S2k54bStFNQw3tvCnBlAWn0Wp5Q=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=Kp7MXThrQJEwl72yt66wiYt4HKvN4E/HqUdoCKoJzud80gFjMJtBaIoswLk6mOwEw\n Ffw7DIrycgbEG+jTfdqbgRxZIT3+tGDmGr1aFMA0K9pujgvD6TPPgQt9TAr5tCtN/A\n d0mHJJwMKjX7HtJ58lMlM9OICOjUjOcltP90kd/neSRJU8/m3tPbnOCZKpZ41sC9I5\n hWvJB3ezNNEv5qCfTq1tMt5BvygJI8QcYkGCyG1jA6NjECq3qcy5hzTd3uMsv3nKGb\n tb5LiQ/FIyu9kf48fZ5jJxAS/JRkTHMz5QBBooSMHQD7Y8rQQ44k5QrcTbUbzck3EB\n iIql3ApgREjSQ==","From":"=?utf-8?q?Pali_Roh=C3=A1r?= <pali@kernel.org>","To":"u-boot@lists.denx.de","Cc":"Stefan Roese <sr@denx.de>, Tony Dinh <mibodhi@gmail.com>,\n Josua Mayer <josua@solid-run.com>","Subject":"[PATCH RFC u-boot-mvebu 53/59] arm: mvebu: db-88f6820-amc: Add\n defconfig for NAND booting","Date":"Tue, 21 Feb 2023 21:19:19 +0100","Message-Id":"<20230221201925.9644-54-pali@kernel.org>","X-Mailer":"git-send-email 2.20.1","In-Reply-To":"<20230221201925.9644-1-pali@kernel.org>","References":"<20230221201925.9644-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 <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<https://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>","X-Virus-Scanned":"clamav-milter 0.103.6 at phobos.denx.de","X-Virus-Status":"Clean"},"content":"This new db-88f6820-amc_nand_defconfig file is copy of existing\ndb-88f6820-amc_defconfig file and changed to instruct build system to\ngenerate final kwbimage for NAND booting. It was done by adding options:\n\n    CONFIG_MVEBU_SPL_BOOT_DEVICE_NAND=y\n    CONFIG_MVEBU_SPL_NAND_BADBLK_LOCATION=0x00\n    CONFIG_SYS_NAND_BLOCK_SIZE=0x40000\n    CONFIG_SYS_NAND_PAGE_SIZE=0x1000\n\nBoard has Micron MT29F8G08ABACAWP chip which is SLC NAND with 4kB page size\nand block size of 64 pages.\n\nThis change was only compile-tested and is useful for CI testing that\nmkimage can generate valid kwbimage of NAND type.\n\nThis change is more readable via git option --find-copies-harder.\n\nSigned-off-by: Pali Rohár <pali@kernel.org>\n---\n ...-88f6820-amc_defconfig => db-88f6820-amc_nand_defconfig} | 6 +++++-\n 1 file changed, 5 insertions(+), 1 deletion(-)\n copy configs/{db-88f6820-amc_defconfig => db-88f6820-amc_nand_defconfig} (92%)","diff":"diff --git a/configs/db-88f6820-amc_defconfig b/configs/db-88f6820-amc_nand_defconfig\nsimilarity index 92%\ncopy from configs/db-88f6820-amc_defconfig\ncopy to configs/db-88f6820-amc_nand_defconfig\nindex b33bb66b5957..e784c34563f4 100644\n--- a/configs/db-88f6820-amc_defconfig\n+++ b/configs/db-88f6820-amc_nand_defconfig\n@@ -6,6 +6,8 @@ CONFIG_SPL_LIBCOMMON_SUPPORT=y\n CONFIG_SPL_LIBGENERIC_SUPPORT=y\n CONFIG_NR_DRAM_BANKS=2\n CONFIG_TARGET_DB_88F6820_AMC=y\n+CONFIG_MVEBU_SPL_BOOT_DEVICE_NAND=y\n+CONFIG_MVEBU_SPL_NAND_BADBLK_LOCATION=0x00\n CONFIG_ENV_SIZE=0x10000\n CONFIG_ENV_OFFSET=0x100000\n CONFIG_ENV_SECT_SIZE=0x40000\n@@ -53,6 +55,7 @@ CONFIG_CMD_FAT=y\n CONFIG_CMD_FS_GENERIC=y\n CONFIG_EFI_PARTITION=y\n CONFIG_ENV_OVERWRITE=y\n+CONFIG_ENV_IS_IN_SPI_FLASH=y\n CONFIG_ENV_SPI_MAX_HZ=50000000\n CONFIG_SYS_RELOC_GD_ENV_ADDR=y\n CONFIG_ARP_TIMEOUT=200\n@@ -64,10 +67,11 @@ CONFIG_DM_I2C=y\n CONFIG_SYS_I2C_MVTWSI=y\n # CONFIG_MMC is not set\n CONFIG_MTD=y\n-CONFIG_MTD_RAW_NAND=y\n CONFIG_SYS_NAND_USE_FLASH_BBT=y\n CONFIG_NAND_PXA3XX=y\n+CONFIG_SYS_NAND_BLOCK_SIZE=0x40000\n CONFIG_SYS_NAND_ONFI_DETECTION=y\n+CONFIG_SYS_NAND_PAGE_SIZE=0x1000\n CONFIG_SF_DEFAULT_BUS=1\n CONFIG_SPI_FLASH_BAR=y\n CONFIG_SPI_FLASH_MACRONIX=y\n","prefixes":["RFC","u-boot-mvebu","53/59"]}