get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/393120/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 393120,
    "url": "http://patchwork.ozlabs.org/api/patches/393120/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1411595329-29979-1-git-send-email-yorksun@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": "<1411595329-29979-1-git-send-email-yorksun@freescale.com>",
    "list_archive_url": null,
    "date": "2014-09-24T21:48:49",
    "name": "[U-Boot,v2,2/2] board/ls1021aqds_d4: Add DDR4 support",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "f043f2095b489198dedad9f4bbd4e1b81d8e042f",
    "submitter": {
        "id": 3777,
        "url": "http://patchwork.ozlabs.org/api/people/3777/?format=api",
        "name": "York Sun",
        "email": "yorksun@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/1411595329-29979-1-git-send-email-yorksun@freescale.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/393120/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/393120/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 3AFE4140140\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 25 Sep 2014 07:49:41 +1000 (EST)",
            "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 0C0824B616;\n\tWed, 24 Sep 2014 23:49:38 +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 rbUEKQolLQUY; Wed, 24 Sep 2014 23:49:37 +0200 (CEST)",
            "from theia.denx.de (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 85F454B609;\n\tWed, 24 Sep 2014 23:49:34 +0200 (CEST)",
            "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 590C34B609\n\tfor <u-boot@lists.denx.de>; Wed, 24 Sep 2014 23:49:28 +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 COMcHzAwWwo4 for <u-boot@lists.denx.de>;\n\tWed, 24 Sep 2014 23:49:24 +0200 (CEST)",
            "from na01-by2-obe.outbound.protection.outlook.com\n\t(mail-by2on0106.outbound.protection.outlook.com [207.46.100.106])\n\tby theia.denx.de (Postfix) with ESMTPS id 3A43F4B605\n\tfor <u-boot@lists.denx.de>; Wed, 24 Sep 2014 23:49:19 +0200 (CEST)",
            "from BN3PR0301CA0080.namprd03.prod.outlook.com (25.160.152.176) by\n\tBL2PR03MB145.namprd03.prod.outlook.com (10.255.230.13) with\n\tMicrosoft\n\tSMTP Server (TLS) id 15.0.1039.15; Wed, 24 Sep 2014 21:49:13 +0000",
            "from BN1BFFO11FD017.protection.gbl (2a01:111:f400:7c10::1:182) by\n\tBN3PR0301CA0080.outlook.office365.com (2a01:111:e400:401e::48) with\n\tMicrosoft SMTP Server (TLS) id 15.0.1034.13 via Frontend Transport;\n\tWed, 24 Sep 2014 21:49:13 +0000",
            "from tx30smr01.am.freescale.net (192.88.168.50) by\n\tBN1BFFO11FD017.mail.protection.outlook.com (10.58.144.80) with\n\tMicrosoft SMTP\n\tServer (TLS) id 15.0.1029.15 via Frontend Transport; Wed, 24 Sep 2014\n\t21:49:13 +0000",
            "from oslab-l1.am.freescale.net ([10.214.83.121])\n\tby tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id\n\ts8OLn7o9016625; Wed, 24 Sep 2014 14:49:11 -0700"
        ],
        "X-Virus-Scanned": [
            "Debian amavisd-new at theia.denx.de",
            "Debian amavisd-new at theia.denx.de"
        ],
        "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": "York Sun <yorksun@freescale.com>",
        "To": "<u-boot@lists.denx.de>",
        "Date": "Wed, 24 Sep 2014 14:48:49 -0700",
        "Message-ID": "<1411595329-29979-1-git-send-email-yorksun@freescale.com>",
        "X-Mailer": "git-send-email 1.7.9.5",
        "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)(47776003)(107046002)(92726001)(77156001)(64706001)(575784001)(104166001)(79102003)(20776003)(80022003)(97736003)(86362001)(93916002)(92566001)(46102003)(33646002)(229853001)(2351001)(68736004)(74662003)(104016003)(74502003)(110136001)(77982003)(90102001)(81342003)(81542003)(83072002)(85852003)(19580405001)(88136002)(95666004)(4396001)(76482002)(89996001)(50986999)(85306004)(10300001)(31966008)(48376002)(83322001)(120916001)(87286001)(50466002)(44976005)(102836001)(62966002)(6806004)(19580395003)(105606002)(87936001)(36756003)(84676001)(106466001)(21056001)(50226001)(99396003);\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-Forefront-PRVS": "03449D5DD1",
        "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=yorksun@freescale.com; ",
        "X-OriginatorOrg": "freescale.com",
        "Cc": "York Sun <yorksun@freescale.com>, otavio@ossystems.com.br",
        "Subject": "[U-Boot] [Patch v2, 2/2] board/ls1021aqds_d4: Add DDR4 support",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.11",
        "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": "LS1021AQDS has a variant with DDR4 slot. This patch adds a new target for\nthis variant and enables DDR4 support. RAW timing parameters are not added\nfor DDR4. The board timing parameters are only tuned for single-rank 1600\nand 1800MT/s with Micron DIMM 9ASF51272AZ-2G1A1 due to availability.\n\nSigned-off-by: York Sun <yorksun@freescale.com>\n---\nChange log\n v2: Drop the name of TARGET_LS1021AQDS_D4 in Kconfig.\n\n arch/arm/include/asm/arch-ls102xa/config.h |    5 +++++\n board/freescale/ls1021aqds/ddr.c           |    9 ++++++++-\n board/freescale/ls1021aqds/ddr.h           |   10 ++++++++++\n configs/ls1021aqds_ddr4_nor_defconfig      |    3 +++\n include/configs/ls1021aqds.h               |    4 +++-\n 5 files changed, 29 insertions(+), 2 deletions(-)\n create mode 100644 configs/ls1021aqds_ddr4_nor_defconfig",
    "diff": "diff --git a/arch/arm/include/asm/arch-ls102xa/config.h b/arch/arm/include/asm/arch-ls102xa/config.h\nindex ed78c33..a500b5b 100644\n--- a/arch/arm/include/asm/arch-ls102xa/config.h\n+++ b/arch/arm/include/asm/arch-ls102xa/config.h\n@@ -50,7 +50,11 @@\n #ifdef CONFIG_DDR_SPD\n #define CONFIG_SYS_FSL_DDR_BE\n #define CONFIG_VERY_BIG_RAM\n+#ifdef CONFIG_SYS_FSL_DDR4\n+#define CONFIG_SYS_FSL_DDRC_GEN4\n+#else\n #define CONFIG_SYS_FSL_DDRC_ARM_GEN3\n+#endif\n #define CONFIG_SYS_FSL_DDR\n #define CONFIG_SYS_LS1_DDR_BLOCK1_SIZE\t\t((phys_size_t)2 << 30)\n #define CONFIG_MAX_MEM_MAPPED\t\t\tCONFIG_SYS_LS1_DDR_BLOCK1_SIZE\n@@ -71,6 +75,7 @@\n #define CONFIG_MAX_CPUS\t\t\t\t2\n #define CONFIG_SYS_FSL_IFC_BANK_COUNT\t\t8\n #define CONFIG_NUM_DDR_CONTROLLERS\t\t1\n+#define CONFIG_SYS_FSL_DDR_VER\t\t\tFSL_DDR_VER_5_0\n #else\n #error SoC not defined\n #endif\ndiff --git a/board/freescale/ls1021aqds/ddr.c b/board/freescale/ls1021aqds/ddr.c\nindex 679c654..5898e33 100644\n--- a/board/freescale/ls1021aqds/ddr.c\n+++ b/board/freescale/ls1021aqds/ddr.c\n@@ -79,7 +79,6 @@ found:\n \t */\n \tpopts->wrlvl_override = 1;\n \tpopts->wrlvl_sample = 0xf;\n-\tpopts->cswl_override = DDR_CSWL_CS0;\n \n \t/*\n \t * Rtt and Rtt_WR override\n@@ -89,9 +88,17 @@ found:\n \t/* Enable ZQ calibration */\n \tpopts->zq_en = 1;\n \n+#ifdef CONFIG_SYS_FSL_DDR4\n+\tpopts->ddr_cdr1 = DDR_CDR1_DHC_EN | DDR_CDR1_ODT(DDR_CDR_ODT_80ohm);\n+\tpopts->ddr_cdr2 = DDR_CDR2_ODT(DDR_CDR_ODT_80ohm) |\n+\t\t\t  DDR_CDR2_VREF_OVRD(70);\t/* Vref = 70% */\n+#else\n+\tpopts->cswl_override = DDR_CSWL_CS0;\n+\n \t/* DHC_EN =1, ODT = 75 Ohm */\n \tpopts->ddr_cdr1 = DDR_CDR1_DHC_EN | DDR_CDR1_ODT(DDR_CDR_ODT_75ohm);\n \tpopts->ddr_cdr2 = DDR_CDR2_ODT(DDR_CDR_ODT_75ohm);\n+#endif\n }\n \n #ifdef CONFIG_SYS_DDR_RAW_TIMING\ndiff --git a/board/freescale/ls1021aqds/ddr.h b/board/freescale/ls1021aqds/ddr.h\nindex 16d87cb..f819c99 100644\n--- a/board/freescale/ls1021aqds/ddr.h\n+++ b/board/freescale/ls1021aqds/ddr.h\n@@ -30,6 +30,13 @@ static const struct board_specific_parameters udimm0[] = {\n \t *   num|  hi| rank|  clk| wrlvl |   wrlvl   |  wrlvl | cpo  |wrdata|2T\n \t * ranks| mhz| GB  |adjst| start |   ctl2    |  ctl3  |      |delay |\n \t */\n+#ifdef CONFIG_SYS_FSL_DDR4\n+\t{2,  1666, 0, 4,     7, 0x0808090B, 0x0C0D0E0A,},\n+\t{2,  1900, 0, 4,     6, 0x08080A0C, 0x0D0E0F0A,},\n+\t{1,  1666, 0, 4,     8, 0x090A0B0B, 0x0C0D0E0C,},\n+\t{1,  1900, 0, 4,     9, 0x0A0B0C0B, 0x0D0E0F0D,},\n+\t{1,  2200, 0, 4,    10, 0x0B0C0D0C, 0x0E0F110E,},\n+#elif defined(CONFIG_SYS_FSL_DDR3)\n \t{1,  833,  1, 6,     8, 0x06060607, 0x08080807,   0x1f,    2,  0},\n \t{1,  1350, 1, 6,     8, 0x0708080A, 0x0A0B0C09,   0x1f,    2,  0},\n \t{1,  833,  2, 6,     8, 0x06060607, 0x08080807,   0x1f,    2,  0},\n@@ -39,6 +46,9 @@ static const struct board_specific_parameters udimm0[] = {\n \t{2,  1350, 0, 6,     8, 0x0708080A, 0x0A0B0C09,   0x1f,    2,  0},\n \t{2,  1666, 4, 4,   0xa, 0x0B08090C, 0x0B0E0D0A,   0x1f,    2,  0},\n \t{2,  1666, 0, 4,   0xa, 0x0B08090C, 0x0B0E0D0A,   0x1f,    2,  0},\n+#else\n+#error DDR type not defined\n+#endif\n \t{}\n };\n \ndiff --git a/configs/ls1021aqds_ddr4_nor_defconfig b/configs/ls1021aqds_ddr4_nor_defconfig\nnew file mode 100644\nindex 0000000..3c57481\n--- /dev/null\n+++ b/configs/ls1021aqds_ddr4_nor_defconfig\n@@ -0,0 +1,3 @@\n+CONFIG_SYS_EXTRA_OPTIONS=\"SYS_FSL_DDR4\"\n+CONFIG_ARM=y\n+CONFIG_TARGET_LS1021AQDS=y\ndiff --git a/include/configs/ls1021aqds.h b/include/configs/ls1021aqds.h\nindex 657e3b6..bb47813 100644\n--- a/include/configs/ls1021aqds.h\n+++ b/include/configs/ls1021aqds.h\n@@ -49,10 +49,12 @@ unsigned long get_board_ddr_clk(void);\n #define CONFIG_DDR_SPD\n #define SPD_EEPROM_ADDRESS\t\t0x51\n #define CONFIG_SYS_SPD_BUS_NUM\t\t0\n-#define CONFIG_SYS_DDR_RAW_TIMING\n \n #define CONFIG_FSL_DDR_INTERACTIVE\t/* Interactive debugging */\n+#ifndef CONFIG_SYS_FSL_DDR4\n #define CONFIG_SYS_FSL_DDR3\t\t/* Use DDR3 memory */\n+#define CONFIG_SYS_DDR_RAW_TIMING\n+#endif\n #define CONFIG_DIMM_SLOTS_PER_CTLR\t1\n #define CONFIG_CHIP_SELECTS_PER_CTRL\t4\n \n",
    "prefixes": [
        "U-Boot",
        "v2",
        "2/2"
    ]
}