Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/407288/?format=api
{ "id": 407288, "url": "http://patchwork.ozlabs.org/api/patches/407288/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1415242319-19815-1-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": "<1415242319-19815-1-git-send-email-b18965@freescale.com>", "list_archive_url": null, "date": "2014-11-06T02:51:59", "name": "[U-Boot] ls1021aqds: set the default I2C channel before DDR init", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "dbe61df8321eb151884885f3947af1e4246e2b6e", "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/1415242319-19815-1-git-send-email-b18965@freescale.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/407288/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/407288/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 A7B4714007D\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 6 Nov 2014 13:53:16 +1100 (AEDT)", "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 5712B4BEB0;\n\tThu, 6 Nov 2014 03:53:13 +0100 (CET)", "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 c2FWwsIqbk1L; Thu, 6 Nov 2014 03:53:12 +0100 (CET)", "from theia.denx.de (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 88EAF4BDEC;\n\tThu, 6 Nov 2014 03:53:12 +0100 (CET)", "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 8B8274BDEC\n\tfor <u-boot@lists.denx.de>; Thu, 6 Nov 2014 03:53:07 +0100 (CET)", "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 KVIlw932+RAu for <u-boot@lists.denx.de>;\n\tThu, 6 Nov 2014 03:53:07 +0100 (CET)", "from na01-bn1-obe.outbound.protection.outlook.com\n\t(mail-bn1bon0138.outbound.protection.outlook.com [157.56.111.138])\n\tby theia.denx.de (Postfix) with ESMTPS id 1232D4BBCC\n\tfor <u-boot@lists.denx.de>; Thu, 6 Nov 2014 03:53:03 +0100 (CET)", "from CO2PR03CA0034.namprd03.prod.outlook.com (10.141.194.161) by\n\tBL2PR03MB145.namprd03.prod.outlook.com (10.255.230.13) with Microsoft\n\tSMTP Server (TLS) id 15.1.11.14; Thu, 6 Nov 2014 02:53:01 +0000", "from BY2FFO11FD038.protection.gbl (2a01:111:f400:7c0c::149) by\n\tCO2PR03CA0034.outlook.office365.com (2a01:111:e400:1414::33) with\n\tMicrosoft SMTP Server (TLS) id 15.1.11.14 via Frontend Transport;\n\tThu, 6 Nov 2014 02:52:57 +0000", "from tx30smr01.am.freescale.net (192.88.168.50) by\n\tBY2FFO11FD038.mail.protection.outlook.com (10.1.14.223) with\n\tMicrosoft SMTP Server (TLS) id 15.1.6.13 via Frontend Transport;\n\tThu, 6 Nov 2014 02:52:57 +0000", "from titan.ap.freescale.net ([10.192.208.233])\n\tby tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id\n\tsA62qrlC015140; Wed, 5 Nov 2014 19:52:54 -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>, <u-boot@lists.denx.de>", "Date": "Thu, 6 Nov 2014 10:51:59 +0800", "Message-ID": "<1415242319-19815-1-git-send-email-b18965@freescale.com>", "X-Mailer": "git-send-email 2.1.0.27.g96db324", "X-EOPAttributedMessage": "0", "X-Forefront-Antispam-Report": "CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI;\n\tSFV:NSPM;\n\tSFS:(10019020)(6009001)(199003)(189002)(21056001)(50466002)(450100001)(36756003)(47776003)(107046002)(62966003)(93916002)(50226001)(102836001)(4396001)(77156002)(95666004)(87286001)(229853001)(105606002)(20776003)(48376002)(106466001)(87936001)(6806004)(68736004)(33646002)(99396003)(88136002)(92566001)(89996001)(92726001)(104166001)(50986999)(104016003)(120916001)(44976005)(64706001)(46102003)(97736003)(19580405001)(31966008)(84676001)(19580395003)(42262002);\n\tDIR:OUT; SFP:1102; SCL:1; SRVR:BL2PR03MB145;\n\tH:tx30smr01.am.freescale.net; FPR:; MLV:sfv;\n\tPTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; ", "MIME-Version": "1.0", "X-Microsoft-Antispam": [ "UriScan:;", "BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB145;" ], "X-Exchange-Antispam-Report-Test": "UriScan:;", "X-Forefront-PRVS": "0387D64A71", "Received-SPF": "Fail (protection.outlook.com: domain of freescale.com does not\n\tdesignate 192.88.168.50 as permitted sender)\n\treceiver=protection.outlook.com; \n\tclient-ip=192.88.168.50; helo=tx30smr01.am.freescale.net;", "Authentication-Results": "spf=fail (sender IP is 192.88.168.50)\n\tsmtp.mailfrom=alison.wang@freescale.com; ", "X-OriginatorOrg": "freescale.com", "Cc": "Chenhui Zhao <chenhui.zhao@freescale.com>", "Subject": "[U-Boot] [PATCH] ls1021aqds: set the default I2C channel before DDR\n\tinit", "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": "From: Chenhui Zhao <chenhui.zhao@freescale.com>\n\nWhen resuming from deep sleep, the I2C channel may not be\nin the default channel. So, switch to the default channel\nbefore accessing DDR SPD.\n\nSigned-off-by: Chenhui Zhao <chenhui.zhao@freescale.com>\n---\n board/freescale/ls1021aqds/ls1021aqds.c | 32 +++++++++++++++++++-------------\n 1 file changed, 19 insertions(+), 13 deletions(-)", "diff": "diff --git a/board/freescale/ls1021aqds/ls1021aqds.c b/board/freescale/ls1021aqds/ls1021aqds.c\nindex 485f412..7edc828 100644\n--- a/board/freescale/ls1021aqds/ls1021aqds.c\n+++ b/board/freescale/ls1021aqds/ls1021aqds.c\n@@ -137,8 +137,27 @@ unsigned long get_board_ddr_clk(void)\n \treturn 66666666;\n }\n \n+int select_i2c_ch_pca9547(u8 ch)\n+{\n+\tint ret;\n+\n+\tret = i2c_write(I2C_MUX_PCA_ADDR_PRI, 0, 1, &ch, 1);\n+\tif (ret) {\n+\t\tputs(\"PCA: failed to select proper channel\\n\");\n+\t\treturn ret;\n+\t}\n+\n+\treturn 0;\n+}\n+\n int dram_init(void)\n {\n+\t/*\n+\t * When resuming from deep sleep, the I2C channel may not be\n+\t * in the default channel. So, switch to the default channel\n+\t * before accessing DDR SPD.\n+\t */\n+\tselect_i2c_ch_pca9547(I2C_MUX_CH_DEFAULT);\n \tgd->ram_size = initdram(0);\n \n \treturn 0;\n@@ -157,19 +176,6 @@ int board_mmc_init(bd_t *bis)\n }\n #endif\n \n-int select_i2c_ch_pca9547(u8 ch)\n-{\n-\tint ret;\n-\n-\tret = i2c_write(I2C_MUX_PCA_ADDR_PRI, 0, 1, &ch, 1);\n-\tif (ret) {\n-\t\tputs(\"PCA: failed to select proper channel\\n\");\n-\t\treturn ret;\n-\t}\n-\n-\treturn 0;\n-}\n-\n int board_early_init_f(void)\n {\n \tstruct ccsr_scfg *scfg = (struct ccsr_scfg *)CONFIG_SYS_FSL_SCFG_ADDR;\n", "prefixes": [ "U-Boot" ] }