Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/394253/?format=api
{ "id": 394253, "url": "http://patchwork.ozlabs.org/api/patches/394253/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1411959194-48189-4-git-send-email-b18965@freescale.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": "<1411959194-48189-4-git-send-email-b18965@freescale.com>", "list_archive_url": null, "date": "2014-09-29T02:53:14", "name": "[U-Boot,4/4] arm: ls102xa: Add SystemID EEPROM support for LS1021ATWR board", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "c7e3c8d9102c71ddd57ba6b7d7b182f4c86b48d7", "submitter": { "id": 13010, "url": "http://patchwork.ozlabs.org/api/people/13010/?format=api", "name": "Alison Wang", "email": "b18965@freescale.com" }, "delegate": { "id": 2666, "url": "http://patchwork.ozlabs.org/api/users/2666/?format=api", "username": "yorksun", "first_name": "York", "last_name": "Sun", "email": "yorksun@freescale.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1411959194-48189-4-git-send-email-b18965@freescale.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/394253/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/394253/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", "Received": [ "from theia.denx.de (theia.denx.de [85.214.87.163])\n\tby ozlabs.org (Postfix) with ESMTP id 931C51400F1\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 29 Sep 2014 12:54:17 +1000 (EST)", "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id E7C69A745A;\n\tMon, 29 Sep 2014 04:54:13 +0200 (CEST)", "from theia.denx.de ([127.0.0.1])\n\tby localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 8DbMKoyrxNhp; Mon, 29 Sep 2014 04:54:13 +0200 (CEST)", "from theia.denx.de (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 5FD4DA742D;\n\tMon, 29 Sep 2014 04:54:13 +0200 (CEST)", "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id BC9D7A745A\n\tfor <u-boot@lists.denx.de>; Mon, 29 Sep 2014 04:53:54 +0200 (CEST)", "from theia.denx.de ([127.0.0.1])\n\tby localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id HXbwBOjyo2OW for <u-boot@lists.denx.de>;\n\tMon, 29 Sep 2014 04:53:54 +0200 (CEST)", "from na01-bn1-obe.outbound.protection.outlook.com\n\t(mail-bn1on0148.outbound.protection.outlook.com [157.56.110.148])\n\tby theia.denx.de (Postfix) with ESMTPS id 58856A7464\n\tfor <u-boot@lists.denx.de>; Mon, 29 Sep 2014 04:53:48 +0200 (CEST)", "from CO2PR03CA0027.namprd03.prod.outlook.com (10.141.194.154) by\n\tBLUPR03MB151.namprd03.prod.outlook.com (10.255.212.25) with Microsoft\n\tSMTP Server (TLS) id 15.0.1039.15; Mon, 29 Sep 2014 02:53:46 +0000", "from BN1BFFO11FD019.protection.gbl (2a01:111:f400:7c10::1:185) by\n\tCO2PR03CA0027.outlook.office365.com (2a01:111:e400:1414::26) with\n\tMicrosoft SMTP Server (TLS) id 15.0.1039.15 via Frontend Transport;\n\tMon, 29 Sep 2014 02:53:45 +0000", "from az84smr01.freescale.net (192.88.158.2) by\n\tBN1BFFO11FD019.mail.protection.outlook.com (10.58.144.82) with\n\tMicrosoft SMTP\n\tServer (TLS) id 15.0.1029.15 via Frontend Transport; Mon, 29 Sep 2014\n\t02:53:44 +0000", "from titan.ap.freescale.net ([10.192.208.233])\n\tby az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id\n\ts8T2rUX4010376; Sun, 28 Sep 2014 19:53:42 -0700" ], "X-policyd-weight": "NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5\n\tNOT_IN_BL_NJABL=-1.5 (only DNSBL check requested)", "From": "Alison Wang <b18965@freescale.com>", "To": "<yorksun@freescale.com>, <albert.u.boot@aribaud.net>,\n\t<u-boot@lists.denx.de>, <jason.jin@freescale.com>", "Date": "Mon, 29 Sep 2014 10:53:14 +0800", "Message-ID": "<1411959194-48189-4-git-send-email-b18965@freescale.com>", "X-Mailer": "git-send-email 2.1.0.27.g96db324", "In-Reply-To": "<1411959194-48189-1-git-send-email-b18965@freescale.com>", "References": "<1411959194-48189-1-git-send-email-b18965@freescale.com>", "X-EOPAttributedMessage": "0", "X-Forefront-Antispam-Report": "CIP:192.88.158.2; CTRY:US; IPV:CAL; IPV:NLI;\n\tEFV:NLI; SFV:NSPM;\n\tSFS:(10019020)(6009001)(199003)(189002)(79102003)(6806004)(85306004)(19580405001)(19580395003)(104166001)(84676001)(92726001)(77982003)(92566001)(2201001)(81542003)(74502003)(46102003)(74662003)(77156001)(81342003)(83322001)(80022003)(68736004)(48376002)(50466002)(88136002)(69596002)(21056001)(89996001)(93916002)(44976005)(85852003)(76176999)(50986999)(87936001)(31966008)(87286001)(97736003)(99396003)(4396001)(95666004)(76482002)(102836001)(120916001)(50226001)(83072002)(104016003)(36756003)(33646002)(106466001)(26826002)(81156004)(62966002)(10300001)(107046002)(90102001)(64706001)(47776003)(20776003)(229853001)(105606002)(42262002);\n\tDIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR03MB151;\n\tH:az84smr01.freescale.net; FPR:; MLV:ovrnspm;\n\tPTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; ", "MIME-Version": "1.0", "X-Microsoft-Antispam": [ "UriScan:;", "BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB151;" ], "X-Exchange-Antispam-Report-Test": "UriScan:;", "X-Forefront-PRVS": "034902F5BC", "Received-SPF": "Fail (protection.outlook.com: domain of freescale.com does not\n\tdesignate 192.88.158.2 as permitted sender)\n\treceiver=protection.outlook.com; \n\tclient-ip=192.88.158.2; helo=az84smr01.freescale.net;", "Authentication-Results": "spf=fail (sender IP is 192.88.158.2)\n\tsmtp.mailfrom=alison.wang@freescale.com; ", "X-OriginatorOrg": "freescale.com", "Cc": "Alison Wang <alison.wang@freescale.com>", "Subject": "[U-Boot] [PATCH 4/4] arm: ls102xa: Add SystemID EEPROM support for\n\tLS1021ATWR board", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.13", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<http://lists.denx.de/mailman/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": "<http://lists.denx.de/mailman/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Sender": "u-boot-bounces@lists.denx.de", "Errors-To": "u-boot-bounces@lists.denx.de" }, "content": "SystemID information could be read through I2C1 from EEPROM\non LS1021ATWR board.\n\nAs LS1 is a little-endian processor, getting the version ID by\nbe32_to_cpu() is wrong. Fix it by using e.version directly.\nThis change will be compatible for both ARM and PowerPC.\n\nSigned-off-by: Alison Wang <alison.wang@freescale.com>\n---\n board/freescale/common/sys_eeprom.c | 4 ++--\n include/configs/ls1021atwr.h | 9 +++++++++\n 2 files changed, 11 insertions(+), 2 deletions(-)", "diff": "diff --git a/board/freescale/common/sys_eeprom.c b/board/freescale/common/sys_eeprom.c\nindex 6144c53..3426b8a 100644\n--- a/board/freescale/common/sys_eeprom.c\n+++ b/board/freescale/common/sys_eeprom.c\n@@ -90,7 +90,7 @@ static void show_eeprom(void)\n \t/* EEPROM tag ID, either CCID or NXID */\n #ifdef CONFIG_SYS_I2C_EEPROM_NXID\n \tprintf(\"ID: %c%c%c%c v%u\\n\", e.id[0], e.id[1], e.id[2], e.id[3],\n-\t\tbe32_to_cpu(e.version));\n+\t e.version);\n #else\n \tprintf(\"ID: %c%c%c%c\\n\", e.id[0], e.id[1], e.id[2], e.id[3]);\n #endif\n@@ -485,7 +485,7 @@ int mac_read_from_eeprom(void)\n \n #ifdef CONFIG_SYS_I2C_EEPROM_NXID\n \tprintf(\"%c%c%c%c v%u\\n\", e.id[0], e.id[1], e.id[2], e.id[3],\n-\t\tbe32_to_cpu(e.version));\n+\t e.version);\n #else\n \tprintf(\"%c%c%c%c\\n\", e.id[0], e.id[1], e.id[2], e.id[3]);\n #endif\ndiff --git a/include/configs/ls1021atwr.h b/include/configs/ls1021atwr.h\nindex 2427f2e..b02fda2 100644\n--- a/include/configs/ls1021atwr.h\n+++ b/include/configs/ls1021atwr.h\n@@ -155,6 +155,15 @@\n #define CONFIG_SYS_I2C\n #define CONFIG_SYS_I2C_MXC\n \n+/* EEPROM */\n+#define CONFIG_ID_EEPROM\n+#define CONFIG_SYS_I2C_EEPROM_NXID\n+#define CONFIG_SYS_EEPROM_BUS_NUM\t\t1\n+#define CONFIG_SYS_I2C_EEPROM_ADDR\t\t0x53\n+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN\t\t1\n+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS\t3\n+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS\t5\n+\n /*\n * MMC\n */\n", "prefixes": [ "U-Boot", "4/4" ] }