{"id":814738,"url":"http://patchwork.ozlabs.org/api/patches/814738/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/1505699028-7765-5-git-send-email-aford173@gmail.com/","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":"<1505699028-7765-5-git-send-email-aford173@gmail.com>","list_archive_url":null,"date":"2017-09-18T01:43:47","name":"[U-Boot,V4,4/5] arm: da850-evm: Enable MTD Parts in SPI Flash","commit_ref":"f4fad7161242b62ad1c79a2dfe558d1598e2e6e6","pull_url":null,"state":"accepted","archived":false,"hash":"8dfeeff5af58cbb0b7df7c23ea3647015d577c39","submitter":{"id":67132,"url":"http://patchwork.ozlabs.org/api/people/67132/?format=json","name":"Adam Ford","email":"aford173@gmail.com"},"delegate":{"id":3651,"url":"http://patchwork.ozlabs.org/api/users/3651/?format=json","username":"trini","first_name":"Tom","last_name":"Rini","email":"trini@ti.com"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/1505699028-7765-5-git-send-email-aford173@gmail.com/mbox/","series":[{"id":3552,"url":"http://patchwork.ozlabs.org/api/series/3552/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=3552","date":"2017-09-18T01:43:43","name":"Update DA850 to Device tree, SPI MTDPARTS, and DM","version":4,"mbox":"http://patchwork.ozlabs.org/series/3552/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/814738/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/814738/checks/","tags":{},"related":[],"headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"HdQlZFNE\"; dkim-atps=neutral"],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xwTT26nKTz9s7M\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 18 Sep 2017 11:49:26 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid 8B01AC21ED8; Mon, 18 Sep 2017 01:45:48 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 5C48BC21EC9;\n\tMon, 18 Sep 2017 01:44:10 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 3DFE9C21D63; Mon, 18 Sep 2017 01:44:00 +0000 (UTC)","from mail-io0-f193.google.com (mail-io0-f193.google.com\n\t[209.85.223.193])\n\tby lists.denx.de (Postfix) with ESMTPS id 6EE8BC21D5F\n\tfor <u-boot@lists.denx.de>; Mon, 18 Sep 2017 01:44:00 +0000 (UTC)","by mail-io0-f193.google.com with SMTP id n69so7761947ioi.3\n\tfor <u-boot@lists.denx.de>; Sun, 17 Sep 2017 18:44:00 -0700 (PDT)","from ubuntu16.lan (c-73-65-120-235.hsd1.mn.comcast.net.\n\t[73.65.120.235]) by smtp.gmail.com with ESMTPSA id\n\tn4sm228385ioe.71.2017.09.17.18.43.57\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tSun, 17 Sep 2017 18:43:58 -0700 (PDT)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=0.0 required=5.0 tests=FREEMAIL_FROM,\n\tRCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,\n\tT_DKIM_INVALID autolearn=unavailable\n\tautolearn_force=no version=3.4.0","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=thAfC4emVVQ2/9Q9ZAf3bbtkUD3RhSxOqjOQ85JJJKo=;\n\tb=HdQlZFNEef/7vr/Z3aU22FCXLjVAr9sdlVtwNjoQivRC5VDJJBUcV6b6xj5BBqFn84\n\toLEULyLR6tKsYmGokmn7lRAeur+KaEyTR4vvmo8nkCrLOk62z8/wVVwpxoOBQzHmVVmK\n\tqdYb4pCS/rgQgcebxu8ae6xWyJPxHpTsjZDC3ONkR6sq7vbsMFoREpREoIZygXpTM6kR\n\t7S5LS9661cXAdLM3BER9+M/MpUUdsiX3VF2ve4OySoQ8oQ8QU6+8UArpbj8HdwnTexxr\n\tgvyZcjJ7uLJ0xK3BSgoJpOhpU77mltiiO0Fn965QkhvjrEWIC6jcO9CbUDdmMI1YN8FG\n\tgbSQ==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=thAfC4emVVQ2/9Q9ZAf3bbtkUD3RhSxOqjOQ85JJJKo=;\n\tb=f33GdzdYlG/niyK3n4L1/Dz/Y2YWqCjRCqUy3s2rhLvig3FfmryYYziIKI/W6QE89R\n\tv8nm9xSSultsOKpYlTkIrcqohyHCKTle+8aAWZZdGRjtVL7Uqr3EAow1YvwtT0aWt7IM\n\tKjq6O+Q4Ni8x2CKQuhHAkGkKUBt7n7WZlCoVasiMWWN+BeU2XRDAbn/E3ktCJAZq4uJv\n\tB4lDbZpk4gbxWvWeHb5YonWbSp3sFHS7YZhF4fHFtk5C4lur824zz0f9I/doUWNZLzfu\n\t/Oi+gvW0pB1bO9j/vCRNcbD1o405s610zAxnIyBw52TMvhkJ9WS8Yn9A53snGobgHOA+\n\tMurQ==","X-Gm-Message-State":"AHPjjUjmqq3JH77tcnAyBhFx3WjNWByfdqL2uFHMfvX8K8gkH8nimNJD\n\tqmSLJXIk01GMQJSY","X-Google-Smtp-Source":"AOwi7QC/4UNUQRlgbDr4x85wNNjszZBolh9DcyjvzCPQaEDSluREUMUcaHxaNegC8AXj4Oyxy8UYfw==","X-Received":"by 10.107.169.226 with SMTP id f95mr15865688ioj.38.1505699038899;\n\tSun, 17 Sep 2017 18:43:58 -0700 (PDT)","From":"Adam Ford <aford173@gmail.com>","To":"u-boot@lists.denx.de","Date":"Sun, 17 Sep 2017 20:43:47 -0500","Message-Id":"<1505699028-7765-5-git-send-email-aford173@gmail.com>","X-Mailer":"git-send-email 2.7.4","In-Reply-To":"<1505699028-7765-1-git-send-email-aford173@gmail.com>","References":"<1505699028-7765-1-git-send-email-aford173@gmail.com>","Cc":"adam.ford@logicpd.com, jagan@openedev.com","Subject":"[U-Boot] [PATCH V4 4/5] arm: da850-evm: Enable MTD Parts in SPI\n\tFlash","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.18","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<http://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\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>"},"content":"There is a discrepency between U-Boot and Linux on the partition map.\nThis enabes the MTD parts to pass MTD partition information from U-Boot to\nLinux.  Linux already has a pending patch to enable MTD PARTS in\ndavinci_all_defconfig\n\nReviewed-by: Jagan Teki <jagan@openedev.com>\nSigned-off-by: Adam Ford <aford173@gmail.com>\n---\nV4:  Resync with Master\nV3:  No Change\nV2:  This patch is new to the series","diff":"diff --git a/configs/da850evm_defconfig b/configs/da850evm_defconfig\nindex 05dc813..80160ef 100644\n--- a/configs/da850evm_defconfig\n+++ b/configs/da850evm_defconfig\n@@ -30,6 +30,7 @@ CONFIG_CRC32_VERIFY=y\n # CONFIG_CMD_TIME is not set\n # CONFIG_CMD_EXT4 is not set\n # CONFIG_CMD_FS_GENERIC is not set\n+CONFIG_CMD_MTDPARTS=y\n CONFIG_CMD_DIAG=y\n CONFIG_OF_CONTROL=y\n CONFIG_ENV_IS_IN_SPI_FLASH=y\n@@ -38,6 +39,7 @@ CONFIG_DM_SPI_FLASH=y\n CONFIG_SPI_FLASH=y\n CONFIG_SPI_FLASH_STMICRO=y\n CONFIG_SPI_FLASH_WINBOND=y\n+CONFIG_SPI_FLASH_MTD=y\n CONFIG_DM_SERIAL=y\n CONFIG_SYS_NS16550=y\n CONFIG_DM_SPI=y\ndiff --git a/include/configs/da850evm.h b/include/configs/da850evm.h\nindex d383c23..0bdf0cb 100644\n--- a/include/configs/da850evm.h\n+++ b/include/configs/da850evm.h\n@@ -249,6 +249,17 @@\n #define CONFIG_ENV_SIZE\t\t\t(64 << 10)\n #define CONFIG_ENV_OFFSET\t\t(512 << 10)\n #define CONFIG_ENV_SECT_SIZE\t\t(64 << 10)\n+#ifdef CONFIG_SPL_BUILD\n+#undef CONFIG_SPI_FLASH_MTD\n+#endif\n+#define CONFIG_MTD_DEVICE\t\t/* needed for mtdparts commands */\n+#define CONFIG_MTD_PARTITIONS\t\t/* required for UBI partition support */\n+#define MTDIDS_DEFAULT\t\t\t\"nor0=spi0.0\"\n+#define MTDPARTS_DEFAULT\t\t\"mtdparts=spi0.0:\"\\\n+\t\t\t\t\t\t\"512k(u-boot.ais),\"\\\n+\t\t\t\t\t\t\"64k(u-boot-env),\"\\\n+\t\t\t\t\t\t\"7552k(kernel-spare),\"\\\n+\t\t\t\t\t\t\"64k(MAC-Address)\"\n #endif\n \n /*\n","prefixes":["U-Boot","V4","4/5"]}