From patchwork Thu Feb 14 11:24:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 10812501 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 2CCDD1399 for ; Thu, 14 Feb 2019 11:24:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 19D892D860 for ; Thu, 14 Feb 2019 11:24:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 165432D95F; Thu, 14 Feb 2019 11:24:24 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 97E562D950 for ; Thu, 14 Feb 2019 11:24:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406888AbfBNLYS (ORCPT ); Thu, 14 Feb 2019 06:24:18 -0500 Received: from esa6.microchip.iphmx.com ([216.71.154.253]:37939 "EHLO esa6.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389603AbfBNLYR (ORCPT ); Thu, 14 Feb 2019 06:24:17 -0500 X-IronPort-AV: E=Sophos;i="5.58,368,1544511600"; d="scan'208";a="23850296" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 14 Feb 2019 04:24:15 -0700 Received: from NAM05-DM3-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.76.108) with Microsoft SMTP Server (TLS) id 14.3.352.0; Thu, 14 Feb 2019 04:24:15 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector1-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CdNbPHEQzZQY/crhHPkeYp5zK+1VSmdjf16ikwmXzBQ=; b=eJT64NGisenKOT4hm/NCe0cIqD/n6r/DxhV8DFRtV5+CfYxNwu+/BgVqCAuKVpJQCfzzJOzzb+8Rux+RmAJT7kswdkr5BTzqzMUznN8mz3awHncrGhEvcZjRZPgQTh5N3b2PMSnffCfD3JhZWzoFtRUluL+yTOQ73IvuraYuvHM= Received: from MWHPR11MB1920.namprd11.prod.outlook.com (10.175.54.19) by MWHPR11MB1661.namprd11.prod.outlook.com (10.172.55.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1601.24; Thu, 14 Feb 2019 11:24:12 +0000 Received: from MWHPR11MB1920.namprd11.prod.outlook.com ([fe80::d917:8496:9d53:1f55]) by MWHPR11MB1920.namprd11.prod.outlook.com ([fe80::d917:8496:9d53:1f55%9]) with mapi id 15.20.1622.016; Thu, 14 Feb 2019 11:24:12 +0000 From: To: , , , , , CC: , , , , Subject: [PATCH 2/3] power: reset: at91-poweroff: add support for SAM9X60 Thread-Topic: [PATCH 2/3] power: reset: at91-poweroff: add support for SAM9X60 Thread-Index: AQHUxFfPG6YiVvagZUSJ4bNY2F3jzw== Date: Thu, 14 Feb 2019 11:24:12 +0000 Message-ID: <1550143407-26109-3-git-send-email-claudiu.beznea@microchip.com> References: <1550143407-26109-1-git-send-email-claudiu.beznea@microchip.com> In-Reply-To: <1550143407-26109-1-git-send-email-claudiu.beznea@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: VI1PR0102CA0104.eurprd01.prod.exchangelabs.com (2603:10a6:803:15::45) To MWHPR11MB1920.namprd11.prod.outlook.com (2603:10b6:300:110::19) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Claudiu.Beznea@microchip.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.7.4 x-originating-ip: [213.233.85.122] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 841f9afc-cbf5-4f51-e098-08d6926ef1de x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600110)(711020)(4605077)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:MWHPR11MB1661; x-ms-traffictypediagnostic: MWHPR11MB1661: x-microsoft-exchange-diagnostics: =?iso-8859-1?q?1=3BMWHPR11MB1661=3B23=3AU4?= =?iso-8859-1?q?S70XVYg5DwCowAqlSwGtqvxZY2GpfYjg+yrzz3/WyUC63ud0G9/J7I6g04/G?= =?iso-8859-1?q?GZWMjK3oQK9bA3rKmQw12uZ6wAPWglj8u+DULCcmV8trFUoTqzBtlz7RT/4f?= =?iso-8859-1?q?2ZGlL+ZouMcGWAJEyhaU/HHiSBA+KTt/G90X2a6BrbHM/yubl4pli/GbRjdC?= =?iso-8859-1?q?YfEDn2ac1Kwim9ge9c7VpiubbiwqUd7XinOMpjbZKqBtS9GobWm4dxcmV4Lv?= =?iso-8859-1?q?AZc1SqUdK/urxnDTllMDZ2yzOQrGJyZmECFTQCD8XPlyixye3rhALphLN9Kj?= =?iso-8859-1?q?z+Ca9IK84vkYM3dtEaZrEcN2Ulp/OrPKS4xQWhwHV7XOktW9+jy+u9YtnLS6?= =?iso-8859-1?q?84rHVjfCfIsi11nhba6X+UF7jWJzdEcdh199YOp+AvqCQpTDuRWVJt2GF7Rl?= =?iso-8859-1?q?o4pvtB3ozq0MAIGtVH860tbmqUcIalU19BavMo9f19zj5YSc1quy+ibwdIe5?= =?iso-8859-1?q?fVslmdT3sDPGnbLrbPc62KTpH50EELcpLmtC+Iwb7s83NDaiTITk1TouVlQT?= =?iso-8859-1?q?aOrE1l/hT9oPpp7U/I8O9jFm/YiDW7kt2BczSrR6X2vjzoJCFvT58u87Ra5U?= =?iso-8859-1?q?mCAqUy3KQoTDBC2he8kiRRO0Dbk04OGe9I7uaauISbc+I3QfNckRCuvB898D?= =?iso-8859-1?q?7pkneie173Eb+Le7lg/bu3MlRhXA68WDPlhxVsdAIdvEtoibUnQjrKbyNiZb?= =?iso-8859-1?q?+/5W14YspzT4OM1574bwnNwGuxIIijnIrNioBmtayykUIQcrx9hqH6K2ZGU6?= =?iso-8859-1?q?TXzJfDUTw+m7JIEtQFw/pWLIy0q84QObDHaV0I3AL26gS48dwRdOtbavwuNq?= =?iso-8859-1?q?UqlVnEHo5K/YzgRuwy852G5CK9to3+pt7PP1r4PviswamxyeEudcA5Kn3Wtd?= =?iso-8859-1?q?iQzYnXQiDFd1gOxz5gz7cBATwQEvNckFBrhCghn02NvYm5NtCCCoFPHc7//D?= =?iso-8859-1?q?QNhLjFVzyq0ziNcSAAKElguO1I50RhvzTwLPtRxGtovH8JdZgSNLwTq0sMeA?= =?iso-8859-1?q?3zcKoMVnONynglyArrJ6rHfd3c63cF/YsctiIJuwWQWDey2I/oXqRYhffoPg?= =?iso-8859-1?q?x45UwSqWBlnyMJxGPsIZGEOlyaBGUxF4MNBorDgB3tX+TXTQAmipvknIsDRX?= =?iso-8859-1?q?rZMyOVkjimFDRzLSLf1x8ArKCqkkoE3NhWJ705yCeWpVNwcFqFCVijVl2pFg?= =?iso-8859-1?q?7ecyHgB+1pf5MO1qmZdllRIqigswYqPXxnr+1va6EpcRi/lJG3WD07tdQ=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 09480768F8 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(376002)(136003)(346002)(396003)(39860400002)(199004)(189003)(68736007)(446003)(54906003)(386003)(105586002)(6506007)(106356001)(486006)(71190400001)(99286004)(71200400001)(478600001)(76176011)(36756003)(11346002)(72206003)(6436002)(110136005)(107886003)(2616005)(476003)(4326008)(4744005)(97736004)(86362001)(316002)(6512007)(53936002)(2906002)(2501003)(256004)(6486002)(305945005)(186003)(81156014)(50226002)(81166006)(66066001)(7736002)(8936002)(102836004)(52116002)(14454004)(3846002)(26005)(25786009)(6116002)(8676002);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR11MB1661;H:MWHPR11MB1920.namprd11.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microchip.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 6V4CWDnJ3D1qGZ3WPkFqu79Qb8pM+TziyROP9KAUW5gLWDxFTwuTjgDbScBELhg4pUe3/tsDfAMkGDKeu6thxNf8b7iSu75CHiHgsrV9pxYTA95Pbf3D7qLvVsLj/HmJxIzXUiOK/oJCvZCKsCmdqD5PlITxo1ezhiirCEBlnFCgGFFaBuR43lULDqqH9QkzOjebSas32+/Ka8H98OqQMVKxO1bvwgiYX1P1cCSMCRy+sdhmYoSTcvm6KZDQIlGgAi3Q+swKT31Z08+40LkboORRt5P7TqfVI1Z045V2mBrU0tUH6wmU4OigFHAJh3qP9S1wyzr1rbYmHJ4qjFiniPZWXKMRYEuK7Vbj8XJO8ALwG9ZHh/yDsfCXGwOc3a8jgD7/WqJJ/lFFx+E8SYDqpMxSmMSYGpbbMqL7nIxmZMw= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 841f9afc-cbf5-4f51-e098-08d6926ef1de X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Feb 2019 11:24:07.6270 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1661 X-OriginatorOrg: microchip.com Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Claudiu Beznea Add support for SAM9X60 shutdown controller. Signed-off-by: Claudiu Beznea Acked-by: Nicolas Ferre --- drivers/power/reset/at91-sama5d2_shdwc.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/power/reset/at91-sama5d2_shdwc.c b/drivers/power/reset/at91-sama5d2_shdwc.c index 0747e0cdf350..e341cc5c0ea6 100644 --- a/drivers/power/reset/at91-sama5d2_shdwc.c +++ b/drivers/power/reset/at91-sama5d2_shdwc.c @@ -246,12 +246,23 @@ static const struct shdwc_config sama5d2_shdwc_config = { .sr_rtcwk_shift = 5, .sr_rttwk_shift = SHDW_CFG_NOT_USED, }; + +static const struct shdwc_config sam9x60_shdwc_config = { + .wkup_pin_input = 0, + .mr_rtcwk_shift = 17, + .mr_rttwk_shift = 16, + .sr_rtcwk_shift = 5, + .sr_rttwk_shift = 4, }; static const struct of_device_id at91_shdwc_of_match[] = { { .compatible = "atmel,sama5d2-shdwc", .data = &sama5d2_shdwc_config, + }, + { + .compatible = "microchip,sam9x60-shdwc", + .data = &sam9x60_shdwc_config, }, { /*sentinel*/ }