{"id":813746,"url":"http://patchwork.ozlabs.org/api/covers/813746/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/cover/1505379066-5334-1-git-send-email-andy.yan@rock-chips.com/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/projects/18/?format=json","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":"<1505379066-5334-1-git-send-email-andy.yan@rock-chips.com>","list_archive_url":null,"date":"2017-09-14T08:51:06","name":"[U-Boot,v2,0/3] support enter download mode on rockchip platform","submitter":{"id":65124,"url":"http://patchwork.ozlabs.org/api/people/65124/?format=json","name":"Andy Yan","email":"andy.yan@rock-chips.com"},"mbox":"http://patchwork.ozlabs.org/project/uboot/cover/1505379066-5334-1-git-send-email-andy.yan@rock-chips.com/mbox/","series":[{"id":3052,"url":"http://patchwork.ozlabs.org/api/series/3052/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=3052","date":"2017-09-14T08:51:06","name":"support enter download mode on rockchip platform","version":2,"mbox":"http://patchwork.ozlabs.org/series/3052/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/covers/813746/comments/","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>)","Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xtC212WS1z9sPs\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 14 Sep 2017 18:51:36 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid 1A4FEC21E2F; Thu, 14 Sep 2017 08:51:29 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id CD124C21D8D;\n\tThu, 14 Sep 2017 08:51:26 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid D7B77C21CA5; Thu, 14 Sep 2017 08:51:25 +0000 (UTC)","from regular1.263xmail.com (regular1.263xmail.com [211.150.99.140])\n\tby lists.denx.de (Postfix) with ESMTPS id 08ECBC21C6D\n\tfor <u-boot@lists.denx.de>; Thu, 14 Sep 2017 08:51:25 +0000 (UTC)","from andy.yan?rock-chips.com (unknown [192.168.167.239])\n\tby regular1.263xmail.com (Postfix) with ESMTP id 5B8B34CBB\n\tfor <u-boot@lists.denx.de>; Thu, 14 Sep 2017 16:51:17 +0800 (CST)","from localhost.localdomain (localhost [127.0.0.1])\n\tby smtp.263.net (Postfix) with ESMTPA id 5F5CB3CF;\n\tThu, 14 Sep 2017 16:51:13 +0800 (CST)","from localhost.localdomain (unknown [58.22.7.114])\n\tby smtp.263.net (Postfix) whith ESMTP id 16697BCJ3K1;\n\tThu, 14 Sep 2017 16:51:16 +0800 (CST)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=0.6 required=5.0 tests=RCVD_IN_DNSWL_NONE,\n\tRCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RCVD_IN_SORBS_WEB autolearn=no\n\tautolearn_force=no version=3.4.0","X-263anti-spam":"KSV:0;","X-MAIL-GRAY":"0","X-MAIL-DELIVERY":"1","X-KSVirus-check":"0","X-ABS-CHECKED":"4","X-RL-SENDER":"andy.yan@rock-chips.com","X-FST-TO":"sjg@chromium.org","X-SENDER-IP":"58.22.7.114","X-LOGIN-NAME":"andy.yan@rock-chips.com","X-UNIQUE-TAG":"<8d319b62477e7f010fca87ffdf6ff95f>","X-ATTACHMENT-NUM":"0","X-SENDER":"yxj@rock-chips.com","X-DNS-TYPE":"0","From":"Andy Yan <andy.yan@rock-chips.com>","To":"sjg@chromium.org,\n\tphilipp.tomsich@theobroma-systems.com","Date":"Thu, 14 Sep 2017 16:51:06 +0800","Message-Id":"<1505379066-5334-1-git-send-email-andy.yan@rock-chips.com>","X-Mailer":"git-send-email 2.7.4","Cc":"u-boot@lists.denx.de, Andy Yan <andy.yan@rock-chips.com>,\n\tdavid.wu@rock-chips.com","Subject":"[U-Boot] [PATCH v2 0/3] support enter download mode on rockchip\n\tplatform","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":"Most rockchip platform based boards use a key to instruct\nthe board enter download firmware mode, some boards use a\nadc to detect the key status, and some use a gpio.\n\nThis series try to implement all the download mode related\nfunctions.\n\nChanges in v2:\n- correct the rk322x boot mode register address\n- make the help text more clear\n- implement the back to bootrom download mode check in c, thanks for Dr. Philipp Tomsich's suggestion.\n- more document\n- move adc key detect as the defaut\n\nAndy Yan (3):\n  rockchip: make boot_mode related codes reused across all platforms\n  rockchip: add support for enter to bootrom download mode\n  rockchip: check download key before bootup\n\n arch/arm/include/asm/arch-rockchip/boot_mode.h |  7 +++\n arch/arm/include/asm/arch-rockchip/bootrom.h   | 15 ++++-\n arch/arm/mach-rockchip/Kconfig                 | 15 +++++\n arch/arm/mach-rockchip/Makefile                |  4 ++\n arch/arm/mach-rockchip/boot_mode.c             | 76 ++++++++++++++++++++++++++\n arch/arm/mach-rockchip/bootrom.c               | 31 ++++++++++-\n arch/arm/mach-rockchip/rk3036-board.c          | 24 --------\n arch/arm/mach-rockchip/rk322x-board.c          | 24 --------\n arch/arm/mach-rockchip/rk3288-board.c          | 25 ---------\n arch/arm/mach-rockchip/rk3399-board.c          | 14 +++++\n arch/arm/mach-rockchip/save_boot_param.S       | 25 ++++++---\n 11 files changed, 177 insertions(+), 83 deletions(-)\n create mode 100644 arch/arm/mach-rockchip/boot_mode.c\n create mode 100644 arch/arm/mach-rockchip/rk3399-board.c"}