Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1140353/?format=api
{ "id": 1140353, "url": "http://patchwork.ozlabs.org/api/patches/1140353/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20190801083657.36258-1-chuanhua.han@nxp.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api", "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": "<20190801083657.36258-1-chuanhua.han@nxp.com>", "list_archive_url": null, "date": "2019-08-01T08:36:57", "name": "[U-Boot] armv8: ls1088aqds: support DSPI mode by hwconfig", "commit_ref": "1748990ab2a0e995beeed6b3856335f579bb77d9", "pull_url": null, "state": "accepted", "archived": false, "hash": "03b3610b7ac5ba56ba7077d9479ea8f55c592893", "submitter": { "id": 74737, "url": "http://patchwork.ozlabs.org/api/people/74737/?format=api", "name": "Chuanhua Han", "email": "chuanhua.han@nxp.com" }, "delegate": { "id": 2467, "url": "http://patchwork.ozlabs.org/api/users/2467/?format=api", "username": "prabhu_kush", "first_name": "Prabhakar", "last_name": "Kushwaha", "email": "prabhakar@freescale.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20190801083657.36258-1-chuanhua.han@nxp.com/mbox/", "series": [ { "id": 122659, "url": "http://patchwork.ozlabs.org/api/series/122659/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=122659", "date": "2019-08-01T08:36:57", "name": "[U-Boot] armv8: ls1088aqds: support DSPI mode by hwconfig", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/122659/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1140353/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1140353/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\tdmarc=fail (p=none dis=none) header.from=nxp.com" ], "Received": [ "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 45zkTJ5cgjz9s7T\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 1 Aug 2019 18:48:04 +1000 (AEST)", "by lists.denx.de (Postfix, from userid 105)\n\tid 6BA0BC21DED; Thu, 1 Aug 2019 08:47:04 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 9BE17C21E15;\n\tThu, 1 Aug 2019 08:47:02 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid 3F9D2C21E42; Thu, 1 Aug 2019 08:46:34 +0000 (UTC)", "from inva020.nxp.com (inva020.nxp.com [92.121.34.13])\n\tby lists.denx.de (Postfix) with ESMTPS id 65AE2C21E34\n\tfor <u-boot@lists.denx.de>; Thu, 1 Aug 2019 08:46:29 +0000 (UTC)", "from inva020.nxp.com (localhost [127.0.0.1])\n\tby inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id DB54A1A0297;\n\tThu, 1 Aug 2019 10:46:28 +0200 (CEST)", "from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com\n\t[165.114.16.14])\n\tby inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id CD5371A0B3F;\n\tThu, 1 Aug 2019 10:46:25 +0200 (CEST)", "from titan.ap.freescale.net (TITAN.ap.freescale.net\n\t[10.192.208.233])\n\tby invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id B3354402D7;\n\tThu, 1 Aug 2019 16:46:21 +0800 (SGT)" ], "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=none autolearn=unavailable\n\tautolearn_force=no version=3.4.0", "From": "Chuanhua Han <chuanhua.han@nxp.com>", "To": "prabhakar.kushwaha@nxp.com, Ashish.Kumar@nxp.com, rajesh.bhagat@nxp.com", "Date": "Thu, 1 Aug 2019 16:36:57 +0800", "Message-Id": "<20190801083657.36258-1-chuanhua.han@nxp.com>", "X-Mailer": "git-send-email 2.9.5", "X-Virus-Scanned": "ClamAV using ClamSMTP", "Cc": "u-boot@lists.denx.de, Chuanhua Han <chuanhua.han@nxp.com>", "Subject": "[U-Boot] [PATCH] armv8: ls1088aqds: support DSPI mode by hwconfig", "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": "BRDCFG4[USBOSC] and BRDCFG5[SPR] register field of Qixis device is used\nto control SPI and other IP signal routing.\n\nUSBOSC:\n0= SPI_CLK used as external USB REFCLK input driven with 24.000 MHz.\nSPI devices are unusable in this mode.\n1= SPI_CLK used as SPI clock.\nSPI devices are usable in this mode. USB block is clocked from\ninternal sources\n\nSPR[3:2]:\nSPI_CS / SDHC_DAT4:7 Routing (schematic net CFG_SPI_ROUTE[3:2]):\n00= SDHC/eMMC 8-bit\n01= SD Card Rev 2.0/3.0\n10= SPI on-board memory\n11= TDM Riser / SPI off-board connector.\nThe default value is 00 if an SDCard/eMMC card is selected as the boot\ndevice.\n\nSPR[1:0]:\nSPI_SIN/SOUT/SCK Routing (schematic net CFG_SPI_ROUTE[1:0]):\n00= SDHC Sync loop\n01= TDM Riser / SPI off-board connector.\n10= SPI on-board memory.\n11= SPI off-board connector.\n\nBy default, the SPI feature is not available, so we need to configure\nthe above register fields to select the route to the SPI feature.\n\nSigned-off-by: Chuanhua Han <chuanhua.han@nxp.com>\n---\n board/freescale/ls1088a/ls1088a.c | 26 ++++++++++++++++++++++++++\n board/freescale/ls1088a/ls1088a_qixis.h | 11 +++++++++++\n include/configs/ls1088aqds.h | 2 ++\n 3 files changed, 39 insertions(+)", "diff": "diff --git a/board/freescale/ls1088a/ls1088a.c b/board/freescale/ls1088a/ls1088a.c\nindex a7af77d..12cc363 100644\n--- a/board/freescale/ls1088a/ls1088a.c\n+++ b/board/freescale/ls1088a/ls1088a.c\n@@ -590,6 +590,32 @@ int misc_init_r(void)\n \t\tQIXIS_WRITE(brdcfg[5], brdcfg5);\n \t}\n #endif\n+\n+#ifdef CONFIG_TARGET_LS1088AQDS\n+\t u8 brdcfg4, brdcfg5;\n+\n+\tif (hwconfig(\"dspi-on-board\")) {\n+\t\tbrdcfg4 = QIXIS_READ(brdcfg[4]);\n+\t\tbrdcfg4 &= ~BRDCFG4_USBOSC_MASK;\n+\t\tbrdcfg4 |= BRDCFG4_SPI;\n+\t\tQIXIS_WRITE(brdcfg[4], brdcfg4);\n+\n+\t\tbrdcfg5 = QIXIS_READ(brdcfg[5]);\n+\t\tbrdcfg5 &= ~BRDCFG5_SPR_MASK;\n+\t\tbrdcfg5 |= BRDCFG5_SPI_ON_BOARD;\n+\t\tQIXIS_WRITE(brdcfg[5], brdcfg5);\n+\t} else if (hwconfig(\"dspi-off-board\")) {\n+\t\tbrdcfg4 = QIXIS_READ(brdcfg[4]);\n+\t\tbrdcfg4 &= ~BRDCFG4_USBOSC_MASK;\n+\t\tbrdcfg4 |= BRDCFG4_SPI;\n+\t\tQIXIS_WRITE(brdcfg[4], brdcfg4);\n+\n+\t\tbrdcfg5 = QIXIS_READ(brdcfg[5]);\n+\t\tbrdcfg5 &= ~BRDCFG5_SPR_MASK;\n+\t\tbrdcfg5 |= BRDCFG5_SPI_OFF_BOARD;\n+\t\tQIXIS_WRITE(brdcfg[5], brdcfg5);\n+\t}\n+#endif\n \treturn 0;\n }\n #endif\ndiff --git a/board/freescale/ls1088a/ls1088a_qixis.h b/board/freescale/ls1088a/ls1088a_qixis.h\nindex c588526..e3502eb 100644\n--- a/board/freescale/ls1088a/ls1088a_qixis.h\n+++ b/board/freescale/ls1088a/ls1088a_qixis.h\n@@ -41,4 +41,15 @@\n #define BRDCFG5_SPISDHC_MASK\t\t0x0C\n #define BRDCFG5_FORCE_SD\t\t0x08\n \n+/* Definitions of QIXIS Registers for LS1088AQDS */\n+\n+/* BRDCFG4 */\n+#define BRDCFG4_USBOSC_MASK 0x01\n+#define BRDCFG4_SPI 0x01\n+\n+/* BRDCFG5 */\n+#define BRDCFG5_SPR_MASK 0x0f\n+#define BRDCFG5_SPI_ON_BOARD 0x0a\n+#define BRDCFG5_SPI_OFF_BOARD 0x0f\n+\n #endif\ndiff --git a/include/configs/ls1088aqds.h b/include/configs/ls1088aqds.h\nindex 8b62bbe..85e2061 100644\n--- a/include/configs/ls1088aqds.h\n+++ b/include/configs/ls1088aqds.h\n@@ -17,6 +17,8 @@ unsigned long get_board_ddr_clk(void);\n #ifdef CONFIG_TFABOOT\n #define CONFIG_SYS_MMC_ENV_DEV\t\t0\n \n+#define CONFIG_MISC_INIT_R\n+\n #define CONFIG_ENV_SIZE\t\t\t0x20000\n #define CONFIG_ENV_OFFSET\t\t0x500000\n #define CONFIG_ENV_ADDR\t\t\t(CONFIG_SYS_FLASH_BASE + \\\n", "prefixes": [ "U-Boot" ] }