{"id":810366,"url":"http://patchwork.ozlabs.org/api/patches/810366/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/1504664087-26473-6-git-send-email-kever.yang@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":"<1504664087-26473-6-git-send-email-kever.yang@rock-chips.com>","list_archive_url":null,"date":"2017-09-06T02:14:32","name":"[U-Boot,05/10] sysreset: enable driver support in SPL/TPL","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"48b9434dbca7a55f5d9f29bdc019a75b992163e9","submitter":{"id":64532,"url":"http://patchwork.ozlabs.org/api/people/64532/?format=json","name":"Kever Yang","email":"kever.yang@rock-chips.com"},"delegate":{"id":69486,"url":"http://patchwork.ozlabs.org/api/users/69486/?format=json","username":"ptomsich","first_name":"Philipp","last_name":"Tomsich","email":"philipp.tomsich@theobroma-systems.com"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/1504664087-26473-6-git-send-email-kever.yang@rock-chips.com/mbox/","series":[{"id":1682,"url":"http://patchwork.ozlabs.org/api/series/1682/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=1682","date":"2017-09-06T02:14:28","name":"rockchip: add tpl and OPTEE support for rk3229","version":1,"mbox":"http://patchwork.ozlabs.org/series/1682/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/810366/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/810366/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\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"DSgbgXL1\"; dkim-atps=neutral"],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xn6d84XXwz9sR9\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed,  6 Sep 2017 12:15:56 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid 4B8D6C21EAB; Wed,  6 Sep 2017 02:15:49 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 835BFC21E90;\n\tWed,  6 Sep 2017 02:15:30 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid F3F27C21E4E; Wed,  6 Sep 2017 02:15:28 +0000 (UTC)","from mail-pf0-f196.google.com (mail-pf0-f196.google.com\n\t[209.85.192.196])\n\tby lists.denx.de (Postfix) with ESMTPS id DC385C21E8E\n\tfor <u-boot@lists.denx.de>; Wed,  6 Sep 2017 02:15:24 +0000 (UTC)","by mail-pf0-f196.google.com with SMTP id a2so2439945pfj.4\n\tfor <u-boot@lists.denx.de>; Tue, 05 Sep 2017 19:15:24 -0700 (PDT)","from localhost.localdomain ([58.22.7.114])\n\tby smtp.gmail.com with ESMTPSA id\n\tz30sm362126pfg.54.2017.09.05.19.15.20\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tTue, 05 Sep 2017 19:15:22 -0700 (PDT)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de","X-Spam-Level":"*","X-Spam-Status":"No, score=1.9 required=5.0 tests=RCVD_IN_BL_SPAMCOP_NET,\n\tRCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, RCVD_IN_SORBS_WEB,\n\tT_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=sender:from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=MQVOdXeQkpPX65JYgS9Ct3+vXJXOys6jVOS1nkcHGjk=;\n\tb=DSgbgXL1bRglHQ2glTWxBdTNynUjnUhE19dGLT39KOEBEQgdo2+51YJL/hbXVWDiQH\n\tz46lsv/kfMqPOPzQfNn2hfGcN1Rs1IVuL3ZyaJqUCEIZRVn0PGa+hsDZC+8n4ctAYHy6\n\t1l+tEMtoRkYtWmpVbbRqxfZE9bD2PtYJKBawhaerxKafHsamQt28wWjJ0dxMIJpoFm45\n\tW8Kgaj98VguGYT6mq90QIjovRWuTMG+84zEgJuYTfmJNqfVr+3/hr8ilyVzoFcbWRFOz\n\tOjyTIkLQGElJQe+u4G14QdBvvyFhEWCGLVAXabI+gLi/YlJQ5ttTG30uMPFvzH1AsyqI\n\t3sgQ==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id\n\t:in-reply-to:references;\n\tbh=MQVOdXeQkpPX65JYgS9Ct3+vXJXOys6jVOS1nkcHGjk=;\n\tb=OKKn65R2ubrUKle7jT8ynhaBlmj/tZpaVcbI1bs3qt3W0GAgIThrPlg7Tf1NvsPjOc\n\t+PxRsNlOPBqlU50gHmx1HrYc6zUXkfqZ1X02bOB3XAACabZnnC7naTBO9vhkqBJon3mL\n\tPQg1KiWIzy0aPlFCPxC8LrUKb6ryGRHvhwUlGYzwb/lkC+7tFtMx45xDPzC9uob4Fp8H\n\tHTwJ2CDLXgbX1JTJnxY8Dp8lJHLHjkp2g5DuVQx6uo8UZZj6S2L2oRVoqW2n5ptiLNkO\n\tgR+cwEHhZNEHR86VLpRkL/KooMsBtLHCsIgixpQtg09Uyxq2aWf7ILTe0Tf3cQu3EcSf\n\tNPJQ==","X-Gm-Message-State":"AHPjjUi/lzhGgrnRvrM+VO2K6DsRSpsZ0nPr3r0V+Idl0ct5DADvID4H\n\tNjgwAQ0GSoaNeDId","X-Google-Smtp-Source":"ADKCNb7HVEZZOr90v59aZLhkyNn2AI6mYgKNhcM4BK9PQAhMlbo7Ckhosz6CzuAFMgOVLV7fCiylzw==","X-Received":"by 10.98.72.157 with SMTP id q29mr5852804pfi.140.1504664123427; \n\tTue, 05 Sep 2017 19:15:23 -0700 (PDT)","From":"Kever Yang <kever.yang@rock-chips.com>","To":"u-boot@lists.denx.de","Date":"Wed,  6 Sep 2017 10:14:32 +0800","Message-Id":"<1504664087-26473-6-git-send-email-kever.yang@rock-chips.com>","X-Mailer":"git-send-email 1.9.1","In-Reply-To":"<1504664087-26473-1-git-send-email-kever.yang@rock-chips.com>","References":"<1504664087-26473-1-git-send-email-kever.yang@rock-chips.com>","Cc":"vagrant@debian.org, Andy Yan <andy.yan@rock-chips.com>","Subject":"[U-Boot] [PATCH 05/10] sysreset: enable driver support in SPL/TPL","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":"SPL/TPL also need use sysreset for some feature like panic callback.\n\nSigned-off-by: Kever Yang <kever.yang@rock-chips.com>\n---\n\n drivers/sysreset/Kconfig  | 18 ++++++++++++++++++\n drivers/sysreset/Makefile |  2 +-\n 2 files changed, 19 insertions(+), 1 deletion(-)","diff":"diff --git a/drivers/sysreset/Kconfig b/drivers/sysreset/Kconfig\nindex a6d48e8..a61a7d3 100644\n--- a/drivers/sysreset/Kconfig\n+++ b/drivers/sysreset/Kconfig\n@@ -13,6 +13,24 @@ config SYSRESET\n \t  to effect a reset. The uclass will try all available drivers when\n \t  reset_walk() is called.\n \n+config SPL_SYSRESET\n+\tbool \"Enable support for system reset drivers in SPL mode\"\n+\tdepends on SYSRESET && SPL_DM\n+\thelp\n+\t  Enable system reset drivers which can be used to reset the CPU or\n+\t  board. Each driver can provide a reset method which will be called\n+\t  to effect a reset. The uclass will try all available drivers when\n+\t  reset_walk() is called.\n+\n+config TPL_SYSRESET\n+\tbool \"Enable support for system reset drivers in TPL mode\"\n+\tdepends on SYSRESET && TPL_DM\n+\thelp\n+\t  Enable system reset drivers which can be used to reset the CPU or\n+\t  board. Each driver can provide a reset method which will be called\n+\t  to effect a reset. The uclass will try all available drivers when\n+\t  reset_walk() is called.\n+\n if SYSRESET\n \n config SYSRESET_PSCI\ndiff --git a/drivers/sysreset/Makefile b/drivers/sysreset/Makefile\nindex 476d361..ce161a7 100644\n--- a/drivers/sysreset/Makefile\n+++ b/drivers/sysreset/Makefile\n@@ -4,7 +4,7 @@\n # SPDX-License-Identifier:\tGPL-2.0+\n #\n \n-obj-$(CONFIG_SYSRESET) += sysreset-uclass.o\n+obj-$(CONFIG_$(SPL_TPL_)SYSRESET) += sysreset-uclass.o\n obj-$(CONFIG_SYSRESET_PSCI) += sysreset_psci.o\n obj-$(CONFIG_SYSRESET_SYSCON) += sysreset_syscon.o\n obj-$(CONFIG_SYSRESET_WATCHDOG) += sysreset_watchdog.o\n","prefixes":["U-Boot","05/10"]}