Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1005890/?format=api
{ "id": 1005890, "url": "http://patchwork.ozlabs.org/api/patches/1005890/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1543597332-27719-2-git-send-email-meenakshi.aggarwal@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": "<1543597332-27719-2-git-send-email-meenakshi.aggarwal@nxp.com>", "list_archive_url": null, "date": "2018-11-30T17:02:12", "name": "[U-Boot,2/2] lx2160: Enable support of EMC2305", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "38eca00ea8517a63706ca4b7f6a638f294c36017", "submitter": { "id": 75448, "url": "http://patchwork.ozlabs.org/api/people/75448/?format=api", "name": "Meenakshi Aggarwal", "email": "meenakshi.aggarwal@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/1543597332-27719-2-git-send-email-meenakshi.aggarwal@nxp.com/mbox/", "series": [ { "id": 79004, "url": "http://patchwork.ozlabs.org/api/series/79004/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=79004", "date": "2018-11-30T17:02:11", "name": "[U-Boot,1/2] armv8: emc2305: add support for fan controller", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/79004/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1005890/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1005890/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 435sKY2xRGz9s3Z\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 30 Nov 2018 22:16:49 +1100 (AEDT)", "by lists.denx.de (Postfix, from userid 105)\n\tid E72B1C22456; Fri, 30 Nov 2018 11:16:29 +0000 (UTC)", "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id A72BEC223FA;\n\tFri, 30 Nov 2018 11:16:07 +0000 (UTC)", "by lists.denx.de (Postfix, from userid 105)\n\tid 37D1EC21EC8; Fri, 30 Nov 2018 11:16:06 +0000 (UTC)", "from inva020.nxp.com (inva020.nxp.com [92.121.34.13])\n\tby lists.denx.de (Postfix) with ESMTPS id B33E1C21EC8\n\tfor <u-boot@lists.denx.de>; Fri, 30 Nov 2018 11:16:05 +0000 (UTC)", "from inva020.nxp.com (localhost [127.0.0.1])\n\tby inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 5BA571A04D9;\n\tFri, 30 Nov 2018 12:16:05 +0100 (CET)", "from inv0113.in-blr01.nxp.com (inv0113.in-blr01.nxp.com\n\t[165.114.116.118])\n\tby inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 2C1001A04C9;\n\tFri, 30 Nov 2018 12:16:05 +0100 (CET)", "from uefi-OptiPlex-790.ap.freescale.net\n\t(uefi-OptiPlex-790.ap.freescale.net [10.232.132.78])\n\tby inv0113.in-blr01.nxp.com (Postfix) with ESMTP id 5706635F;\n\tFri, 30 Nov 2018 16:46:04 +0530 (IST)" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de", "X-Spam-Level": "**", "X-Spam-Status": "No, score=2.4 required=5.0 tests=DATE_IN_FUTURE_03_06\n\tautolearn=no autolearn_force=no version=3.4.0", "From": "Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>", "To": "u-boot@lists.denx.de,\n\tyork.sun@nxp.com", "Date": "Fri, 30 Nov 2018 22:32:12 +0530", "Message-Id": "<1543597332-27719-2-git-send-email-meenakshi.aggarwal@nxp.com>", "X-Mailer": "git-send-email 1.9.1", "In-Reply-To": "<1543597332-27719-1-git-send-email-meenakshi.aggarwal@nxp.com>", "References": "<1543597332-27719-1-git-send-email-meenakshi.aggarwal@nxp.com>", "X-Virus-Scanned": "ClamAV using ClamSMTP", "Subject": "[U-Boot] [PATCH 2/2] lx2160: Enable support of EMC2305", "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": "Enable support for FAN controller EMC2305 for\nLX2160A RDB board.\n\nSigned-off-by: Sriram Dash <sriram.dash@nxp.com>\nSigned-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>\n---\n board/freescale/lx2160a/lx2160a.c | 11 +++++++++++\n include/configs/lx2160ardb.h | 6 ++++++\n 2 files changed, 17 insertions(+)", "diff": "diff --git a/board/freescale/lx2160a/lx2160a.c b/board/freescale/lx2160a/lx2160a.c\nindex 530f658..07ca58e 100644\n--- a/board/freescale/lx2160a/lx2160a.c\n+++ b/board/freescale/lx2160a/lx2160a.c\n@@ -26,6 +26,10 @@\n #include \"../common/vid.h\"\n #include <fsl_immap.h>\n \n+#ifdef CONFIG_EMC2305\n+#include \"../common/emc2305.h\"\n+#endif\n+\n #ifdef CONFIG_TARGET_LX2160AQDS\n #define CFG_MUX_I2C_SDHC(reg, value)\t((reg & 0x3f) | value)\n #define SET_CFG_MUX1_SDHC1_SDHC(reg) (reg & 0x3f)\n@@ -93,6 +97,13 @@ int board_early_init_f(void)\n \t/* get required clock for UART IP */\n \tuart_get_clock();\n \n+#ifdef CONFIG_EMC2305\n+\tselect_i2c_ch_pca9547(I2C_MUX_CH_EMC2305);\n+\temc2305_init();\n+\tset_fan_speed(I2C_EMC2305_PWM);\n+\tselect_i2c_ch_pca9547(I2C_MUX_CH_DEFAULT);\n+#endif\n+\n \tfsl_lsch3_early_init_f();\n \treturn 0;\n }\ndiff --git a/include/configs/lx2160ardb.h b/include/configs/lx2160ardb.h\nindex 67d214d..818aa38 100644\n--- a/include/configs/lx2160ardb.h\n+++ b/include/configs/lx2160ardb.h\n@@ -70,6 +70,12 @@\n \n #endif\n \n+/* EMC2305 */\n+#define I2C_MUX_CH_EMC2305\t\t0x09\n+#define I2C_EMC2305_ADDR\t\t0x4D\n+#define I2C_EMC2305_CMD\t\t0x40\n+#define I2C_EMC2305_PWM\t\t0x80\n+\n /* EEPROM */\n #define CONFIG_ID_EEPROM\n #define CONFIG_SYS_I2C_EEPROM_NXID\n", "prefixes": [ "U-Boot", "2/2" ] }