From patchwork Mon Mar 4 04:25:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10837315 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2DFB11390 for ; Mon, 4 Mar 2019 04:25:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 18819285A2 for ; Mon, 4 Mar 2019 04:25:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0BEA829C34; Mon, 4 Mar 2019 04:25:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 30FC3285A2 for ; Mon, 4 Mar 2019 04:25:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726022AbfCDEZc (ORCPT ); Sun, 3 Mar 2019 23:25:32 -0500 Received: from mail-eopbgr80079.outbound.protection.outlook.com ([40.107.8.79]:23360 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725938AbfCDEZc (ORCPT ); Sun, 3 Mar 2019 23:25:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=USPVWPzI2/7V9HrcsVX6udDqEOsTAhAi4I/sDejX9aA=; b=juF4GTj2yqd3sPCvSJL++bhRRtm44uoK1BjhoaDQyYbUeew++HALQaB2V4b0gPFnzfGs+Jpy/4/+iq8bc5EMFqSbC+wf3rs40VyhV8Cbiq4uEVIsJc/49VePVK1uNiehuXL1d8XDctAPo/USwQG3uKUlcrFjbZBBOxvDU4JhLK8= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3852.eurprd04.prod.outlook.com (52.134.71.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1665.19; Mon, 4 Mar 2019 04:25:21 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::1cb4:3e1c:fc85:7ed7]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::1cb4:3e1c:fc85:7ed7%2]) with mapi id 15.20.1665.019; Mon, 4 Mar 2019 04:25:21 +0000 From: Anson Huang To: "catalin.marinas@arm.com" , "will.deacon@arm.com" , "wim@linux-watchdog.org" , "linux@roeck-us.net" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , Andy Gross , "heiko@sntech.de" , "horms+renesas@verge.net.au" , "arnd@arndb.de" , "olof@lixom.net" , "bjorn.andersson@linaro.org" , "jagan@amarulasolutions.com" , "enric.balletbo@collabora.com" , "marc.w.gonzalez@free.fr" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-watchdog@vger.kernel.org" CC: dl-linux-imx Subject: [PATCH V6 1/2] watchdog: imx_sc: Add i.MX system controller watchdog support Thread-Topic: [PATCH V6 1/2] watchdog: imx_sc: Add i.MX system controller watchdog support Thread-Index: AQHU0kJHl6Gk6fg170aPbIypHs8nmw== Date: Mon, 4 Mar 2019 04:25:21 +0000 Message-ID: <1551673236-27834-1-git-send-email-Anson.Huang@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: HK0P153CA0039.APCP153.PROD.OUTLOOK.COM (2603:1096:203:17::27) To DB3PR0402MB3916.eurprd04.prod.outlook.com (2603:10a6:8:10::18) authentication-results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 48e82230-582c-43a7-5cb6-08d6a05969eb x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020);SRVR:DB3PR0402MB3852; x-ms-traffictypediagnostic: DB3PR0402MB3852: x-ld-processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr x-microsoft-exchange-diagnostics: =?iso-8859-1?q?1=3BDB3PR0402MB3852=3B23=3A?= =?iso-8859-1?q?U8AmwI4ALONXKAokOnWiHb7IOKBAJLygf2cTa2JZt4e0yuXhlRSGIf7/6Tov?= =?iso-8859-1?q?y1mALePdh4ZQ53SbouktBUx7N9C1DB/9ljQhkQQI/bLn1c+yljrrS+gVTfpA?= =?iso-8859-1?q?9jCQh1TNupMiv+rUTkkWGt6ZjlMkxy6sogzrK14L3epSxGfYZhb6N6bYoLN8?= =?iso-8859-1?q?ysojr9mgBS47MttgZjga4riZvZrCII/OmHamIAWHst3IntlyELa5cm3aDb5w?= =?iso-8859-1?q?+53yv+ucJo+mzvYxTD6YgbdImhiNbfwYS8NLqgUx9Krdik3Ahc9YLM1mawqN?= =?iso-8859-1?q?ecm7xvSCuvK36hKu1BxqTPTUmTk6VCmAq5IrNV/9GKnUgHNaPlbWIoPkMBC5?= =?iso-8859-1?q?nKRTchGcLua2RpzD8IENuJk9jpYsJADOlE3ncydq42DkLaVw78nVp/lI/fFO?= =?iso-8859-1?q?H3bYtVqlXkCb5cwgdU9Fuvu+CehYjK2W8PQ6to3RNiLAWhvnZRAkNun6UtZY?= =?iso-8859-1?q?oE/OjMPBMyWNGmcAQmW6HTxHxYRJ0FAZITlzsLo5nlfOnAp8jKGMJxAmIhJ7?= =?iso-8859-1?q?HapxkrXk51fyBHSMwsNfb1y/D2BZsIXjoLsyRz9F+w29PWcELo/srHJQ0SOX?= =?iso-8859-1?q?iRfIkjfX5SI+FG9lw5AtH7eaX19DdizRpFddXykMncqlaa71cLRoBG9aMxtN?= =?iso-8859-1?q?vmcPXr2UHTrwd52bQO1mJCR+5977TJbc+RyghWrjhoDS+GSQVQqSE8fL6rWr?= =?iso-8859-1?q?a/ZfYFtcbU4zYytoSr9QN/oFjrIr04dftb7iNejDFJOI9HWx0LthOeEngT1m?= =?iso-8859-1?q?OsFuxldXkMQXOV5Xdo7mD5Q+Ncnmp5Y42N5FuY+0Y7eVG6EF9Znie9QZPneS?= =?iso-8859-1?q?bOw/m5aexRXwOCQwGLEzj94TpNaqkEirKubSmXwk/oz5GLz9cq4zRGs4znRM?= =?iso-8859-1?q?7CvtPT0fUt8zkyuShX4TS2T2bzXdzrYPw82GG76PhkDa8F2KCreLEubTUhYK?= =?iso-8859-1?q?ljF+5ys6FDpqQXXXccLHGdn9yXNr9SgQ1ex9IOiyWn6dLmlPgpkXD9jcmvLB?= =?iso-8859-1?q?Y+vDtQqow+76Bm8DcW0NkoitlyEEAZPCJ4zuuzCru3qV8g3E3R3YdRvVVRV0?= =?iso-8859-1?q?nws2MJTLczihE4N+5NsRVdxSIIx6ORZ4bYRl25hMtMdAlSAWeqDwtX9NQDRB?= =?iso-8859-1?q?wiaMO+wXgzLSgdo/V8xPF4yG+q+wvONBc9KwL5eeNSdTMiYf7mh7Hjh02sLK?= =?iso-8859-1?q?ybC69VHAq50c+dz167Zq8Ufwk3CkHN/9a5zsmg=3D=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 09669DB681 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(39860400002)(376002)(366004)(136003)(346002)(189003)(199004)(256004)(102836004)(6506007)(476003)(386003)(106356001)(8676002)(81156014)(186003)(4326008)(316002)(110136005)(2501003)(25786009)(105586002)(5660300002)(7416002)(3846002)(97736004)(486006)(81166006)(86362001)(6116002)(52116002)(99286004)(2201001)(26005)(2616005)(305945005)(14454004)(8936002)(66066001)(6486002)(50226002)(7736002)(478600001)(6512007)(53936002)(68736007)(6436002)(36756003)(71200400001)(2906002)(71190400001)(14444005)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3852;H:DB3PR0402MB3916.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: H0qY8+9k8GVkcU/tUGWPopPBMz5eUsuu8vf4CiRHg3+8n/oXMMOchMdKdwZKp2TFlf5nkAI6KF42C+a2xAwIW51mC4nwn6/BkxN3k7O/Da2XPyqbFfAELN3L0KFoBnNXKVyq+h+i4y1hQR9TW++wLPA5uvAArEivkXCYYVfikWhqv4Z1PlQLqtmQxvvcinXeCU4qcWIz0aMCpAOxPhtu/GKjHXJGA4MbQa2DIQWHnGVV1RTbytghPvIY8q8BIOcnBi8BnCHZmyAZCahZS9XQB2rJXgxBjtYr8pzkObWxr6XsNZAZ9+wxqoS81jvYbtgLYzbSU4DU189Y9x/UUObhGmTo9a+ljOE3AciZ/NRccqYVY30WxzCpQCZmlBmE4DWeZJ3qQYbfHb8UiDxDjhvQ5Ud5pOA3aq740nv+4S0OfM0= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 48e82230-582c-43a7-5cb6-08d6a05969eb X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Mar 2019 04:25:21.2992 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3852 Sender: linux-watchdog-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP i.MX8QXP is an ARMv8 SoC which has a Cortex-M4 system controller inside, the system controller is in charge of controlling power, clock and watchdog etc.. This patch adds i.MX system controller watchdog driver support, watchdog operation needs to be done in secure EL3 mode via ARM-Trusted-Firmware, using SMC call, CPU will trap into ARM-Trusted-Firmware and then it will request system controller to do watchdog operation via IPC. Signed-off-by: Anson Huang --- Changes since V5: - add "fsl,imx-scu" node check in imx_sc_wdt_init() function to decide whether to instantiate the imx scu watchdog platform driver/device. --- drivers/watchdog/Kconfig | 14 +++ drivers/watchdog/Makefile | 1 + drivers/watchdog/imx_sc_wdt.c | 204 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 219 insertions(+) create mode 100644 drivers/watchdog/imx_sc_wdt.c diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index 65c3c42..a6bfa54 100644 --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig @@ -625,6 +625,20 @@ config IMX2_WDT To compile this driver as a module, choose M here: the module will be called imx2_wdt. +config IMX_SC_WDT + tristate "IMX SC Watchdog" + depends on IMX_SCU + depends on HAVE_ARM_SMCCC + select WATCHDOG_CORE + help + This is the driver for the system controller watchdog + on the NXP i.MX SoCs with system controller inside. + If you have one of these processors and wish to have + watchdog support enabled, say Y, otherwise say N. + + To compile this driver as a module, choose M here: the + module will be called imx_sc_wdt. + config UX500_WATCHDOG tristate "ST-Ericsson Ux500 watchdog" depends on MFD_DB8500_PRCMU diff --git a/drivers/watchdog/Makefile b/drivers/watchdog/Makefile index 4e78a8c..0c9da63 100644 --- a/drivers/watchdog/Makefile +++ b/drivers/watchdog/Makefile @@ -68,6 +68,7 @@ obj-$(CONFIG_NUC900_WATCHDOG) += nuc900_wdt.o obj-$(CONFIG_TS4800_WATCHDOG) += ts4800_wdt.o obj-$(CONFIG_TS72XX_WATCHDOG) += ts72xx_wdt.o obj-$(CONFIG_IMX2_WDT) += imx2_wdt.o +obj-$(CONFIG_IMX_SC_WDT) += imx_sc_wdt.o obj-$(CONFIG_UX500_WATCHDOG) += ux500_wdt.o obj-$(CONFIG_RETU_WATCHDOG) += retu_wdt.o obj-$(CONFIG_BCM2835_WDT) += bcm2835_wdt.o diff --git a/drivers/watchdog/imx_sc_wdt.c b/drivers/watchdog/imx_sc_wdt.c new file mode 100644 index 0000000..df8b3e3 --- /dev/null +++ b/drivers/watchdog/imx_sc_wdt.c @@ -0,0 +1,204 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright 2018-2019 NXP. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#define DEFAULT_TIMEOUT 60 +/* + * Software timer tick implemented in scfw side, support 10ms to 0xffffffff ms + * in theory, but for normal case, 1s~128s is enough, you can change this max + * value in case it's not enough. + */ +#define MAX_TIMEOUT 128 + +#define IMX_SIP_TIMER 0xC2000002 +#define IMX_SIP_TIMER_START_WDOG 0x01 +#define IMX_SIP_TIMER_STOP_WDOG 0x02 +#define IMX_SIP_TIMER_SET_WDOG_ACT 0x03 +#define IMX_SIP_TIMER_PING_WDOG 0x04 +#define IMX_SIP_TIMER_SET_TIMEOUT_WDOG 0x05 +#define IMX_SIP_TIMER_GET_WDOG_STAT 0x06 +#define IMX_SIP_TIMER_SET_PRETIME_WDOG 0x07 + +#define SC_TIMER_WDOG_ACTION_PARTITION 0 + +static bool nowayout = WATCHDOG_NOWAYOUT; +module_param(nowayout, bool, 0000); +MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=" + __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); + +static unsigned int timeout = DEFAULT_TIMEOUT; +module_param(timeout, uint, 0000); +MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds (default=" + __MODULE_STRING(DEFAULT_TIMEOUT) ")"); + +static struct platform_device *imx_sc_wdt_pdev; + +static int imx_sc_wdt_ping(struct watchdog_device *wdog) +{ + struct arm_smccc_res res; + + arm_smccc_smc(IMX_SIP_TIMER, IMX_SIP_TIMER_PING_WDOG, + 0, 0, 0, 0, 0, 0, &res); + + return 0; +} + +static int imx_sc_wdt_start(struct watchdog_device *wdog) +{ + struct arm_smccc_res res; + + arm_smccc_smc(IMX_SIP_TIMER, IMX_SIP_TIMER_START_WDOG, + 0, 0, 0, 0, 0, 0, &res); + if (res.a0) + return -EACCES; + + arm_smccc_smc(IMX_SIP_TIMER, IMX_SIP_TIMER_SET_WDOG_ACT, + SC_TIMER_WDOG_ACTION_PARTITION, + 0, 0, 0, 0, 0, &res); + return res.a0 ? -EACCES : 0; +} + +static int imx_sc_wdt_stop(struct watchdog_device *wdog) +{ + struct arm_smccc_res res; + + arm_smccc_smc(IMX_SIP_TIMER, IMX_SIP_TIMER_STOP_WDOG, + 0, 0, 0, 0, 0, 0, &res); + + return res.a0 ? -EACCES : 0; +} + +static int imx_sc_wdt_set_timeout(struct watchdog_device *wdog, + unsigned int timeout) +{ + struct arm_smccc_res res; + + wdog->timeout = timeout; + arm_smccc_smc(IMX_SIP_TIMER, IMX_SIP_TIMER_SET_TIMEOUT_WDOG, + timeout * 1000, 0, 0, 0, 0, 0, &res); + + return res.a0 ? -EACCES : 0; +} + +static const struct watchdog_ops imx_sc_wdt_ops = { + .owner = THIS_MODULE, + .start = imx_sc_wdt_start, + .stop = imx_sc_wdt_stop, + .ping = imx_sc_wdt_ping, + .set_timeout = imx_sc_wdt_set_timeout, +}; + +static const struct watchdog_info imx_sc_wdt_info = { + .identity = "i.MX SC watchdog timer", + .options = WDIOF_SETTIMEOUT | WDIOF_KEEPALIVEPING | + WDIOF_MAGICCLOSE | WDIOF_PRETIMEOUT, +}; + +static int imx_sc_wdt_probe(struct platform_device *pdev) +{ + struct watchdog_device *imx_sc_wdd; + int ret; + + imx_sc_wdd = devm_kzalloc(&pdev->dev, sizeof(*imx_sc_wdd), GFP_KERNEL); + if (!imx_sc_wdd) + return -ENOMEM; + + platform_set_drvdata(pdev, imx_sc_wdd); + + imx_sc_wdd->info = &imx_sc_wdt_info; + imx_sc_wdd->ops = &imx_sc_wdt_ops; + imx_sc_wdd->min_timeout = 1; + imx_sc_wdd->max_timeout = MAX_TIMEOUT; + imx_sc_wdd->parent = &pdev->dev; + imx_sc_wdd->timeout = DEFAULT_TIMEOUT; + + ret = watchdog_init_timeout(imx_sc_wdd, timeout, &pdev->dev); + if (ret) + dev_warn(&pdev->dev, "Failed to set timeout value, using default\n"); + + watchdog_stop_on_reboot(imx_sc_wdd); + watchdog_stop_on_unregister(imx_sc_wdd); + + ret = devm_watchdog_register_device(&pdev->dev, imx_sc_wdd); + if (ret) { + dev_err(&pdev->dev, "Failed to register watchdog device\n"); + return ret; + } + + return 0; +} + +static int __maybe_unused imx_sc_wdt_suspend(struct device *dev) +{ + struct watchdog_device *imx_sc_wdd = dev_get_drvdata(dev); + + if (watchdog_active(imx_sc_wdd)) + imx_sc_wdt_stop(imx_sc_wdd); + + return 0; +} + +static int __maybe_unused imx_sc_wdt_resume(struct device *dev) +{ + struct watchdog_device *imx_sc_wdd = dev_get_drvdata(dev); + + if (watchdog_active(imx_sc_wdd)) + imx_sc_wdt_start(imx_sc_wdd); + + return 0; +} + +static SIMPLE_DEV_PM_OPS(imx_sc_wdt_pm_ops, + imx_sc_wdt_suspend, imx_sc_wdt_resume); + +static struct platform_driver imx_sc_wdt_driver = { + .probe = imx_sc_wdt_probe, + .driver = { + .name = "imx-sc-wdt", + .pm = &imx_sc_wdt_pm_ops, + }, +}; + +static int __init imx_sc_wdt_init(void) +{ + int ret; + + if (!of_find_compatible_node(NULL, NULL, "fsl,imx-scu")) + return -ENODEV; + + ret = platform_driver_register(&imx_sc_wdt_driver); + if (ret) + return ret; + + imx_sc_wdt_pdev = platform_device_register_simple("imx-sc-wdt", -1, NULL, 0); + if (IS_ERR(imx_sc_wdt_pdev)) { + platform_driver_unregister(&imx_sc_wdt_driver); + return PTR_ERR(imx_sc_wdt_pdev); + } + + return 0; +} +module_init(imx_sc_wdt_init); + +static void __exit imx_sc_wdt_exit(void) +{ + platform_driver_unregister(&imx_sc_wdt_driver); + platform_device_unregister(imx_sc_wdt_pdev); +} +module_exit(imx_sc_wdt_exit); + +MODULE_AUTHOR("Robin Gong "); +MODULE_DESCRIPTION("NXP i.MX system controller watchdog driver"); +MODULE_LICENSE("GPL v2"); From patchwork Mon Mar 4 04:25:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10837319 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 27D0D1390 for ; Mon, 4 Mar 2019 04:25:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1389F285A2 for ; Mon, 4 Mar 2019 04:25:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 05AB028B06; Mon, 4 Mar 2019 04:25:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A421D285A2 for ; Mon, 4 Mar 2019 04:25:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726087AbfCDEZf (ORCPT ); Sun, 3 Mar 2019 23:25:35 -0500 Received: from mail-eopbgr80079.outbound.protection.outlook.com ([40.107.8.79]:23360 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725997AbfCDEZe (ORCPT ); Sun, 3 Mar 2019 23:25:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7sGnsRBR11as5w8QjMfK7m6wH02zar6x4YDWvQV1bm8=; b=Gwmg6toPrmXuJvUH2/Xwha7ODaOAAe1Uj2XOpg25n6orLL3Z15d6ugCis4WBnL1ynTDzMGx7pnuz/mZ1Zw1U+Y+wclXAIeOmb+kL5aemE60i8rZ9rMgF17kel0oa9qFwngQnELWNRgh6BMOH5pFt8AZWI1SaQlLXbKMgI5T7yDg= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3852.eurprd04.prod.outlook.com (52.134.71.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1665.19; Mon, 4 Mar 2019 04:25:28 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::1cb4:3e1c:fc85:7ed7]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::1cb4:3e1c:fc85:7ed7%2]) with mapi id 15.20.1665.019; Mon, 4 Mar 2019 04:25:28 +0000 From: Anson Huang To: "catalin.marinas@arm.com" , "will.deacon@arm.com" , "wim@linux-watchdog.org" , "linux@roeck-us.net" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , Andy Gross , "heiko@sntech.de" , "horms+renesas@verge.net.au" , "arnd@arndb.de" , "olof@lixom.net" , "bjorn.andersson@linaro.org" , "jagan@amarulasolutions.com" , "enric.balletbo@collabora.com" , "marc.w.gonzalez@free.fr" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-watchdog@vger.kernel.org" CC: dl-linux-imx Subject: [PATCH V6 2/2] arm64: defconfig: add support for i.MX system controller watchdog Thread-Topic: [PATCH V6 2/2] arm64: defconfig: add support for i.MX system controller watchdog Thread-Index: AQHU0kJLnqBA5Q+pHEu2cM4q1hCKzA== Date: Mon, 4 Mar 2019 04:25:28 +0000 Message-ID: <1551673236-27834-2-git-send-email-Anson.Huang@nxp.com> References: <1551673236-27834-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <1551673236-27834-1-git-send-email-Anson.Huang@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: HK0P153CA0039.APCP153.PROD.OUTLOOK.COM (2603:1096:203:17::27) To DB3PR0402MB3916.eurprd04.prod.outlook.com (2603:10a6:8:10::18) authentication-results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5df9d680-8c7e-4cfc-a055-08d6a0596e0e x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020);SRVR:DB3PR0402MB3852; x-ms-traffictypediagnostic: DB3PR0402MB3852: x-ld-processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr x-microsoft-exchange-diagnostics: =?iso-8859-1?q?1=3BDB3PR0402MB3852=3B23=3A?= =?iso-8859-1?q?bo1Cm4RUDmbZSmKl0mKmSAT37ThqRtzl19iHdOVLsI/wLybdciW7K3wU5Z/b?= =?iso-8859-1?q?y0XfdVjxSADInKN7bK8xby84iJNBEo1sKrANr4hb/J7FVPL4f+/GcAUTiwLy?= =?iso-8859-1?q?amdYfp4d2G9FpewacU6msYP12P2dBH40SPy1GVGS38OjfTFJVGh1+XyHkZ25?= =?iso-8859-1?q?FXDSI9mKv/GIoEpusLn/Oqm+2lfT08pTNuEzxd3i2AiSNHNnZlHVzZXWj4iA?= =?iso-8859-1?q?v3YJIMIORdy5foMIESJ0g+YQpuLCUGLCi+Xr/YMQwSpc88kbgaP/9OX5CVdV?= =?iso-8859-1?q?1ek0wH7QC9HuXKeqn3iWAHNnDPmsq/ICZJTFQf5KA54MRfu3AmWrLhh2MO4V?= =?iso-8859-1?q?xmAFxGU2g/af7TT3jOTjMSkInzhOxTtNc/qrnWAq5tuiHYWsiDmdFkm7VS7D?= =?iso-8859-1?q?MAfAO40yHxgnc2eo4PArts6fGQbh7bWH0dmvGSoPAcaoWOFKpoPpIu3l3d2y?= =?iso-8859-1?q?EUXKkkgY23ZIrCashhB6vYCOvKZQhEuGAcmiKMesgOovw+jOVTMEy2MocaEp?= =?iso-8859-1?q?sCNiekTwE5h5h1199MX8cPfSfYVVuTK/M9O9XrDhsTsqgPCdCKRaHmubUJPi?= =?iso-8859-1?q?5sQK8BYsaQQOJoepiCQUS8pqMOR9rHb/KKNDPLuK1q50TLd63S43koLuiyfc?= =?iso-8859-1?q?wiQO12NwScsxbxVjCgO/i9LffDec74TEn50VI8ym3GLYV8cWDjAIlhUa4SFZ?= =?iso-8859-1?q?KOApbAtGSPcbTDlMzk8WbAWe+WHsA7vjy3KrQ0zwIGGMrHq/WQW+mSvFJoYb?= =?iso-8859-1?q?WKYFTY3dHDmiRJe2KC40eHfDDPNA80IRrjvPoDusrOLFHxeZWkT11alAfL6W?= =?iso-8859-1?q?AJ4sPs1pe57cl1KdACXpaD3EgpiHw6UrHycAKaiA56L8n+5T+U3zHy1sQZQM?= =?iso-8859-1?q?K76lMO/w4x8sqxbxYozT2DvIxx9+riibNzVdMW2yPD5luTQkfSH4ESq6hgqX?= =?iso-8859-1?q?2GgjSsjbEtQqmpiOrBBqCStr5h3LgZpaz5A1yjT1uqyxcWWz++IA5qDwMhEn?= =?iso-8859-1?q?6y3mdH/3/pH/3I+Dyx+fMsHMPooG0l8Nl9x0bcKxQYLPcHg/gDoGMDQ1j3MQ?= =?iso-8859-1?q?KzwsCW9dF7vSBCCnO3zLUOBdqZbS4fFdLMf8hxADFCCELtFwIa8C4rLJS/Dj?= =?iso-8859-1?q?S6tv8RxxId/sAF8SxWi5jdZx+MHLrb1Mnl960DTSjieiYi+1CQjrTa+ub3on?= =?iso-8859-1?q?gVk2zf7v8gOA75yOT5NsnnTYgOeNDfcbuBLmOdBFaPmJL9t2C5LVgY8tQMby?= =?iso-8859-1?q?Jz5cF1XUwjiAIsTNC4b1?= x-microsoft-antispam-prvs: x-forefront-prvs: 09669DB681 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(39860400002)(376002)(366004)(136003)(346002)(189003)(199004)(256004)(102836004)(6506007)(476003)(386003)(106356001)(8676002)(81156014)(4744005)(186003)(4326008)(316002)(110136005)(2501003)(25786009)(105586002)(5660300002)(446003)(7416002)(3846002)(97736004)(486006)(81166006)(86362001)(6116002)(52116002)(99286004)(2201001)(11346002)(26005)(2616005)(305945005)(76176011)(14454004)(8936002)(66066001)(6486002)(50226002)(7736002)(478600001)(6512007)(53936002)(68736007)(6436002)(36756003)(71200400001)(2906002)(71190400001)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3852;H:DB3PR0402MB3916.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: r+jE3cqqK6rol6odVrHRrZ+wjsOqt32lW09syA2WaEFieWrBtqBg/u5bGu6lOdB4TnESisxsxbr0WhRtv2QL9y3e449qtVmJPQtgmBS8H3t01NMb0ksF5+UYUh9BfJx3mHsXKgoVr5APPOiEKWA1Jziwka2aKZR4+/pDoLkz2bzBJo+DvaT1cN5BftBg7NvocB5fefUYJmNOmCB/LNpN5xng7Mzdib8UTMRQ9QU2F1c/2lUlmMe2zAPWS1nKyoO8u9S6saa+DQaMs6LMZFGe/7AQo5DeabZ1C5G2X++z90LKGYSnZv+eRubH2oU6naflC7zkosS2XETnnee1ARAyoJeWe9RWvYTat4YYv+qly41FzVSo5R4z4pok5x0OU1gzkDgC1IR+/Ak03wenoroqfZtpUvMPWlZnx6c5f0q6KB4= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5df9d680-8c7e-4cfc-a055-08d6a0596e0e X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Mar 2019 04:25:28.3893 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3852 Sender: linux-watchdog-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Enable CONFIG_IMX_SC_WDT as module to support i.MX system controller watchdog. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 2d9c390..690f4ba 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -427,6 +427,7 @@ CONFIG_WATCHDOG=y CONFIG_ARM_SP805_WATCHDOG=y CONFIG_S3C2410_WATCHDOG=y CONFIG_IMX2_WDT=y +CONFIG_IMX_SC_WDT=m CONFIG_MESON_GXBB_WATCHDOG=m CONFIG_MESON_WATCHDOG=m CONFIG_RENESAS_WDT=y