{"id":815784,"url":"http://patchwork.ozlabs.org/api/patches/815784/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/1505846281-19020-5-git-send-email-jteki@openedev.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":"<1505846281-19020-5-git-send-email-jteki@openedev.com>","list_archive_url":null,"date":"2017-09-19T18:37:59","name":"[U-Boot,4/6] i.MX6Q: icorem6: Move spl load fit to common/spl","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"e38d4aebc74c45646b59fdaffc662f275c7c14e8","submitter":{"id":20045,"url":"http://patchwork.ozlabs.org/api/people/20045/?format=json","name":"Jagan Teki","email":"jagannadh.teki@gmail.com"},"delegate":{"id":1693,"url":"http://patchwork.ozlabs.org/api/users/1693/?format=json","username":"sbabic","first_name":"Stefano","last_name":"Babic","email":"sbabic@denx.de"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/1505846281-19020-5-git-send-email-jteki@openedev.com/mbox/","series":[{"id":3946,"url":"http://patchwork.ozlabs.org/api/series/3946/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=3946","date":"2017-09-19T18:37:55","name":"i.MX6Q: Add SPL_OF_CONTROL support","version":1,"mbox":"http://patchwork.ozlabs.org/series/3946/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/815784/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/815784/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=\"AjZQa1O6\"; dkim-atps=neutral"],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xxWzs27PZz9sBZ\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 20 Sep 2017 04:46:17 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid 046DBC21C71; Tue, 19 Sep 2017 18:44:58 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 2983BC21D92;\n\tTue, 19 Sep 2017 18:44:23 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 7B803C21D93; Tue, 19 Sep 2017 18:43:44 +0000 (UTC)","from mail-pg0-f65.google.com (mail-pg0-f65.google.com\n\t[74.125.83.65])\n\tby lists.denx.de (Postfix) with ESMTPS id 9BB9DC21C59\n\tfor <u-boot@lists.denx.de>; Tue, 19 Sep 2017 18:43:40 +0000 (UTC)","by mail-pg0-f65.google.com with SMTP id m30so256087pgn.5\n\tfor <u-boot@lists.denx.de>; Tue, 19 Sep 2017 11:43:40 -0700 (PDT)","from localhost.localdomain ([115.97.191.18])\n\tby smtp.gmail.com with ESMTPSA id\n\te87sm4757779pfl.46.2017.09.19.11.43.35\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tTue, 19 Sep 2017 11:43:38 -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_H3, RCVD_IN_MSPIKE_WL,\n\tT_DKIM_INVALID\n\tautolearn=unavailable autolearn_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=0GWFEjXBce/JeLmDLgt6x6eCo7aL86CJVS5Ta7dxiqw=;\n\tb=AjZQa1O6OfFYN2grdtNAKVIO7lq7r7wX0D4SwwOHNygNZUyly5lv/WZOFFXfp4+ZbD\n\t/W3y0+LsklMSW5dsBmeNpPAz90tGNCdXLsDPsvN1xh0rbcbSy4v9w+jbC7Pm2QSkbno6\n\tKz3z5+U5iaGYKGJyK4Z39LRH3TKH0YFpLfGN4OWslVuX1Q0uZxtiou4fwNbT4/T3Exsv\n\tyLxh8iyB2imOrtOjztMeSR5EjRkV6AwUBvtcnPGeIN31njNm7wxE72IhwLG4GXR9Yx3j\n\tMAOx1zFbpKSvDGKT5Pfnwna9565WYm1Uxn8SI3NK693l0Ng+kE9DbzVZFLEIGaNIP86D\n\t1G7w==","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=0GWFEjXBce/JeLmDLgt6x6eCo7aL86CJVS5Ta7dxiqw=;\n\tb=ID/jZuFjkFxZFogumpeZfjDDeTPPMzahe57G1UTV/DjO4YtnP56tZG+YviJuZ7+bMG\n\t1GoKGigZIHCjnSkNabExtF5tYQtOXEm4Tt6Ch0afo3imOzonj9vF7l1xEKbzgwBIB7Am\n\tWlQHg3HkeGrUgKebgF44aKRQOHD5k8hCJZ1bwmqDmJBjjrY23yN7F+n3w/aEkV9fYQnB\n\tRiO9qSIgvLG7iyCM3k7FLZBcjq1vZF52YVdSmXe6GbYjJU481uOKN0F1jPYk+D7Z/rJH\n\tYUnIr0uokF1rLxkFiyCGbJZLAtizdhl9UtihGKUfCk7excmzN5NXWUpOdN+vAZwESYaJ\n\tP2xQ==","X-Gm-Message-State":"AHPjjUjm1423D6f0DUmMwVV1xPFyZ+K6LFlyXKgCQKbxEYvvw1fe98Zg\n\tBqDo1ZTaRYKYGDQsWdy6PhY=","X-Google-Smtp-Source":"AOwi7QDnNF584lM7YfCpp6cSu5pwSHGmu8mY20make8oi5/+/ecwLP6su+eU1JOyhXJHAxn2NIrGnw==","X-Received":"by 10.98.74.217 with SMTP id c86mr2141661pfj.225.1505846619202; \n\tTue, 19 Sep 2017 11:43:39 -0700 (PDT)","From":"Jagan Teki <jagannadh.teki@gmail.com>","X-Google-Original-From":"Jagan Teki <jteki@openedev.com>","To":"Stefano Babic <sbabic@denx.de>","Date":"Wed, 20 Sep 2017 00:07:59 +0530","Message-Id":"<1505846281-19020-5-git-send-email-jteki@openedev.com>","X-Mailer":"git-send-email 2.7.4","In-Reply-To":"<1505846281-19020-1-git-send-email-jteki@openedev.com>","References":"<1505846281-19020-1-git-send-email-jteki@openedev.com>","Cc":"Fabio Estevam <fabio.estevam@nxp.com>, u-boot@lists.denx.de","Subject":"[U-Boot] [PATCH 4/6] i.MX6Q: icorem6: Move spl load fit to\n\tcommon/spl","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":"From: Jagan Teki <jagan@amarulasolutions.com>\n\nMove spl load fit code into common/spl\n\nSigned-off-by: Jagan Teki <jagan@amarulasolutions.com>\n---\n board/engicam/common/spl.c              | 16 ++++++++++++++++\n board/engicam/icorem6/icorem6.c         | 12 ------------\n board/engicam/icorem6_rqs/icorem6_rqs.c | 12 ------------\n 3 files changed, 16 insertions(+), 24 deletions(-)","diff":"diff --git a/board/engicam/common/spl.c b/board/engicam/common/spl.c\nindex 6964c13..0a79ffd 100644\n--- a/board/engicam/common/spl.c\n+++ b/board/engicam/common/spl.c\n@@ -39,6 +39,22 @@ static iomux_v3_cfg_t const uart_pads[] = {\n #endif\n };\n \n+#ifdef CONFIG_SPL_LOAD_FIT\n+int board_fit_config_name_match(const char *name)\n+{\n+        if (is_mx6dq() && !strcmp(name, \"imx6q-icore\"))\n+                return 0;\n+        else if (is_mx6dq() && !strcmp(name, \"imx6q-icore-rqs\"))\n+                return 0;\n+        else if ((is_mx6dl() || is_mx6solo()) && !strcmp(name, \"imx6dl-icore\"))\n+                return 0;\n+        else if ((is_mx6dl() || is_mx6solo()) && !strcmp(name, \"imx6dl-icore-rqs\"))\n+                return 0;\n+        else\n+                return -1;\n+}\n+#endif\n+\n #ifdef CONFIG_SPL_OS_BOOT\n int spl_start_uboot(void)\n {\ndiff --git a/board/engicam/icorem6/icorem6.c b/board/engicam/icorem6/icorem6.c\nindex 59c085b..e173124 100644\n--- a/board/engicam/icorem6/icorem6.c\n+++ b/board/engicam/icorem6/icorem6.c\n@@ -264,16 +264,4 @@ int board_mmc_init(bd_t *bis)\n \treturn 0;\n }\n #endif\n-\n-#ifdef CONFIG_SPL_LOAD_FIT\n-int board_fit_config_name_match(const char *name)\n-{\n-\tif (is_mx6dq() && !strcmp(name, \"imx6q-icore\"))\n-\t\treturn 0;\n-\telse if ((is_mx6dl() || is_mx6solo()) && !strcmp(name, \"imx6dl-icore\"))\n-\t\treturn 0;\n-\telse\n-\t\treturn -1;\n-}\n-#endif\n #endif /* CONFIG_SPL_BUILD */\ndiff --git a/board/engicam/icorem6_rqs/icorem6_rqs.c b/board/engicam/icorem6_rqs/icorem6_rqs.c\nindex edf9d086..599cea3 100644\n--- a/board/engicam/icorem6_rqs/icorem6_rqs.c\n+++ b/board/engicam/icorem6_rqs/icorem6_rqs.c\n@@ -148,16 +148,4 @@ void board_boot_order(u32 *spl_boot_list)\n }\n #endif\n #endif\n-\n-#ifdef CONFIG_SPL_LOAD_FIT\n-int board_fit_config_name_match(const char *name)\n-{\n-\tif (is_mx6dq() && !strcmp(name, \"imx6q-icore-rqs\"))\n-\t\treturn 0;\n-\telse if ((is_mx6dl() || is_mx6solo()) && !strcmp(name, \"imx6dl-icore-rqs\"))\n-\t\treturn 0;\n-\telse\n-\t\treturn -1;\n-}\n-#endif\n #endif /* CONFIG_SPL_BUILD */\n","prefixes":["U-Boot","4/6"]}