From patchwork Wed Feb 13 08:59:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 10809375 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 DE3011390 for ; Wed, 13 Feb 2019 09:01:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CAF942C9D7 for ; Wed, 13 Feb 2019 09:01:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C8BB72C9EA; Wed, 13 Feb 2019 09:01:32 +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=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 737622C9E1 for ; Wed, 13 Feb 2019 09:01:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=BRLe+RK8yxTAT+sMDWqT0egubM92bZMnJRf8u2G21s0=; b=H1sUe21NfiQVVj NOHjKzc/CFo/YKjXpcQpW44GicKGoH7CcrT2M9M/dt5HF7+9GVB9uTy8WcZEeELrxr8ybgtqsF6zE cCklkMerOQ90I3YxhxsS4YFnmiiXFgveCkO6jKvLQfhfilzbCh5D6E4NOci4esLNwt3FvhxIfo91c mVAO+bd9/umDmOETnzGAjYqVUaqMxN3Jrr8U3ngb1taFIukf4KxTi/o2THJIYBhTdipNaMpPVYkyP 3D5kL2Ubs9nrkqYSWDCs9v0uB//+sfJEQQKUDHJC86Zp8JYk8n0INuhBqXmRTRbtCyOWB7PR27xX7 U3xfOlsa/Sxup/wZSrhA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gtqQ5-0000EK-Ud; Wed, 13 Feb 2019 09:01:29 +0000 Received: from esa3.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gtqOe-0005Ud-SI; Wed, 13 Feb 2019 09:00:07 +0000 X-IronPort-AV: E=Sophos;i="5.58,365,1544511600"; d="scan'208";a="26652873" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES128-SHA; 13 Feb 2019 01:59:58 -0700 Received: from NAM05-BY2-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.76.37) with Microsoft SMTP Server (TLS) id 14.3.352.0; Wed, 13 Feb 2019 01:59:58 -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=8IZWL4twTy2xYkCdFqjyhzDlNJ6FSCI+6LfgKdArK4w=; b=wL6MnWYRPqK9ezSCpFGgoZrz0rJ3SnSjQCMpio7UQDIQ9T2ChKaywMDT1Bjv7htitfrEdtXyrKpkjitu40lwGjYoTS1bWpDxh7F3j2dyg0U7Eg6N44f0x6eC71tpnDBoicRLsR+kfYLsg8pspqsO+VFBjP5t8/bzE21s1lWWgVQ= Received: from BN6PR11MB1842.namprd11.prod.outlook.com (10.175.98.146) by BN6PR11MB0019.namprd11.prod.outlook.com (10.161.155.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.16; Wed, 13 Feb 2019 08:59:55 +0000 Received: from BN6PR11MB1842.namprd11.prod.outlook.com ([fe80::847:4296:13b9:fc9f]) by BN6PR11MB1842.namprd11.prod.outlook.com ([fe80::847:4296:13b9:fc9f%8]) with mapi id 15.20.1601.023; Wed, 13 Feb 2019 08:59:55 +0000 From: To: , , , , , , , , , , , Subject: [PATCH 04/11] memory: atmel-ebi: add sam9x60 EBI support Thread-Topic: [PATCH 04/11] memory: atmel-ebi: add sam9x60 EBI support Thread-Index: AQHUw3p9sN/CdCNCukG8e/clx2Pbpg== Date: Wed, 13 Feb 2019 08:59:55 +0000 Message-ID: <20190213085930.31578-5-tudor.ambarus@microchip.com> References: <20190213085930.31578-1-tudor.ambarus@microchip.com> In-Reply-To: <20190213085930.31578-1-tudor.ambarus@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: VI1PR08CA0085.eurprd08.prod.outlook.com (2603:10a6:800:d3::11) To BN6PR11MB1842.namprd11.prod.outlook.com (2603:10b6:404:101::18) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Tudor.Ambarus@microchip.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.9.5 x-originating-ip: [94.177.32.154] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 82e1e00d-b7a4-4fba-d9c6-08d691919f74 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(2017052603328)(7153060)(7193020); SRVR:BN6PR11MB0019; x-ms-traffictypediagnostic: BN6PR11MB0019: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; BN6PR11MB0019; 23:Rp5bUThHXzXSIrVmUVgFt9w9riOtQlTPe+1cABj?= =?iso-8859-1?q?LadCoEs+h/BUvwW?= =?iso-8859-1?q?hMCPiiTthqL7Ydp4fh7pu/ARcnWhYHBqvSIo8OX9Z+/UkD17JqwHS10HTcso?= =?iso-8859-1?q?qMkz1/7ANu7YMlBKrbVsSLEBdF5AK6IAky7eYRm1xEOzfojs1NC+0Oa1nr7e?= =?iso-8859-1?q?ZanHSE2h+3BoRQjqKY99XAf4HZdBeAzJQRg/2NKLQB6dmsLqo+d91Ond98pj?= =?iso-8859-1?q?vJTDC+vKOPiFV12e8Jv3TVRbWGgkzrEhaeEVgN0gGkjeQTfgRkrpC/1AFl9Y?= =?iso-8859-1?q?Nr1YUb22kDAOEkjSYDBD818KShO2zRGtz0rdKj3TVgHgbhPUg62fqw1Hn6e1?= =?iso-8859-1?q?wZqpxOOHs05seqMUqLBhpUG5fPDyYjEIqFHcFUmBg74XOiPInQZcOLv2cIGq?= =?iso-8859-1?q?ZUZiX2BT1+hk5NviX2jcZsofTzVsksIVlM0GiRPkPsFhhsKdfFmpprqrrk4j?= =?iso-8859-1?q?0e3UL3zBPCSl8XToylF8Ze0I4rPF2dRnWod3HprgKy8X+d+ZFY3KBauenod6?= =?iso-8859-1?q?k9TaN0Ua901zdcAmhHA/SoJnXDrWMskDy/jb0Pjm7Egn3TD6HKVs6ZxeYEVk?= =?iso-8859-1?q?27zckd91watJI5fvdAIxpksH31KCd7LMBQ0ApRZxnNibD7q2nO39xiSHCPrD?= =?iso-8859-1?q?qgzdY15a1cUmvyckUPeNL62WLJILBxFJdnW0TIFSMFRA3THL50jG1aeNexVO?= =?iso-8859-1?q?pPZbTTl6KOPpKcluF2wf+GbN1mf/PjZGMOUtjwxIoC9jfuh0FpNcb/TGIug4?= =?iso-8859-1?q?CLe5ZtDM1WvcPHbAbZO+IdmlYLSa9EqGLmYgVuFowVELVvWOEWSdEs8Mi7Fu?= =?iso-8859-1?q?MXQvt3jtV7GHwSS44nrTFB2pzq9MuUoKDb/xj1Q33QUt3/m4fkHhwgiQbN8o?= =?iso-8859-1?q?ZUvLIZoZ3RKBfWgvfZKTDjksZWHHAN5+okFLhK7ORjjCpG3OLKxeoPwrvAr9?= =?iso-8859-1?q?AWcP5R4cQlVTcq04o/WHuGieS6jeCYfB03hs3g/A9VTQTSYgvsk2C2T3M1Cb?= =?iso-8859-1?q?h6moXOVnCz3d4kppzv0XLxFroEzP1PRZz15lDflzbwZDEvPvL+M2mKhIkKTy?= =?iso-8859-1?q?AGBZhABzHtDC3wYG3bOuDA7xrpAcEr2fWz/4Q7uaCPOqiQRDs+1UEzS0uxUi?= =?iso-8859-1?q?YgUgYo+zk/rACzhwRUgYHsL34pzVt3kfnGOuzIOSkCt5ZE0zH8raLlUxflL8?= =?iso-8859-1?q?5yuCEJDbVvg2bkGMm3YbVDOhJ3JLWhShOh0AmzMcZ4O63+dBuqXy1EF0HV+0?= =?iso-8859-1?q?yU7YzQfaPhJyuDUyvtssVRZ2ESPfXA7E1nlNFucCuUmIKxnp8tsGMLm1UPl3?= =?iso-8859-1?q?Wa6g8k4X4=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 094700CA91 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(346002)(366004)(136003)(376002)(39860400002)(189003)(199004)(81166006)(50226002)(106356001)(7416002)(6436002)(54906003)(2201001)(1076003)(81156014)(26005)(110136005)(476003)(102836004)(107886003)(8936002)(6512007)(6486002)(4326008)(446003)(2616005)(316002)(8676002)(105586002)(99286004)(66066001)(486006)(6116002)(3846002)(186003)(11346002)(86362001)(2906002)(72206003)(71190400001)(14454004)(76176011)(53936002)(71200400001)(478600001)(68736007)(6506007)(386003)(2501003)(52116002)(97736004)(7736002)(305945005)(256004)(25786009)(36756003)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR11MB0019; H:BN6PR11MB1842.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A: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: 9Trk2sF0bZ66Sgm/DE4ITvUcPYoxWZ16Jt+zqOXMs2icmUQW73yThGnQgnLUS5la3u2bacTCX9/XgUSu1KbJobYC5pHXjsAgysl7w971WcnU3TuXJvePzwpZZ3NMRpFmyvlEHyuRSF8kqLADMDzU7xNwiXoSV+DjJJLOOUKSLj7+LI6ydhAvp2cAH7dsjM2fhJfzRgvlDsxe8AQzXvcm8R/2b5gpfuLnJ67//xF+O4CE2RtiOfhC1FWOgtIKapxkIwGWw+64SmO016NlLH1dm7/cQDlCIxXgHi/bKajo6cxkBU4UuRQElOLmldQpxm78mRpzyBgkQ1y+MgVzc87zuwGH407K0aEk1F6Hdh2viwX7Co7cAYE5LTwTON9SrLuroyiHBHxbu0Tc4IQwhsvTAor43ewUUhtM3oQ/QogqCKs= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 82e1e00d-b7a4-4fba-d9c6-08d691919f74 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Feb 2019 08:59:52.6074 (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: BN6PR11MB0019 X-OriginatorOrg: microchip.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190213_010001_233181_8478C931 X-CRM114-Status: UNSURE ( 9.78 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Tudor.Ambarus@microchip.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Tudor Ambarus The sam9x60 board defines the CCFG_EBICSA register under SFR, and not as a MATRIX register, as previous boards do. Signed-off-by: Tudor Ambarus Acked-by: Alexandre Belloni --- drivers/memory/atmel-ebi.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/memory/atmel-ebi.c b/drivers/memory/atmel-ebi.c index b45914cfa212..0322df9dc249 100644 --- a/drivers/memory/atmel-ebi.c +++ b/drivers/memory/atmel-ebi.c @@ -17,6 +17,7 @@ #include #include #include +#include struct atmel_ebi_dev_config { int cs; @@ -440,6 +441,15 @@ static const struct atmel_ebi_caps sama5d3_ebi_caps = { .apply_config = sama5_ebi_apply_config, }; +static const struct atmel_ebi_caps sam9x60_ebi_caps = { + .available_cs = 0x3f, + .ebi_csa_offs = AT91_SFR_CCFG_EBICSA, + .regmap_name = "microchip,sfr", + .get_config = at91sam9_ebi_get_config, + .xlate_config = atmel_ebi_xslate_smc_config, + .apply_config = at91sam9_ebi_apply_config, +}; + static const struct of_device_id atmel_ebi_id_table[] = { { .compatible = "atmel,at91sam9260-ebi", @@ -473,6 +483,10 @@ static const struct of_device_id atmel_ebi_id_table[] = { .compatible = "atmel,sama5d3-ebi", .data = &sama5d3_ebi_caps, }, + { + .compatible = "microchip,sam9x60-ebi", + .data = &sam9x60_ebi_caps, + }, { /* sentinel */ } };