From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: [PATCH 04/11] memory: atmel-ebi: add sam9x60 EBI support 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> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20190213085930.31578-1-tudor.ambarus@microchip.com> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org To: robh+dt@kernel.org, mark.rutland@arm.com, Nicolas.Ferre@microchip.com, alexandre.belloni@bootlin.com, Ludovic.Desroches@microchip.com, dwmw2@infradead.org, computersforpeace@gmail.com, bbrezillon@kernel.org, marek.vasut@gmail.com, richard@nod.at, miquel.raynal@bootlin.com, lee.jones@linaro.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, Tudor.Ambarus@microchip.com List-Id: devicetree@vger.kernel.org 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 --- 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 =20 struct atmel_ebi_dev_config { int cs; @@ -440,6 +441,15 @@ static const struct atmel_ebi_caps sama5d3_ebi_caps = =3D { .apply_config =3D sama5_ebi_apply_config, }; =20 +static const struct atmel_ebi_caps sam9x60_ebi_caps =3D { + .available_cs =3D 0x3f, + .ebi_csa_offs =3D AT91_SFR_CCFG_EBICSA, + .regmap_name =3D "microchip,sfr", + .get_config =3D at91sam9_ebi_get_config, + .xlate_config =3D atmel_ebi_xslate_smc_config, + .apply_config =3D at91sam9_ebi_apply_config, +}; + static const struct of_device_id atmel_ebi_id_table[] =3D { { .compatible =3D "atmel,at91sam9260-ebi", @@ -473,6 +483,10 @@ static const struct of_device_id atmel_ebi_id_table[] = =3D { .compatible =3D "atmel,sama5d3-ebi", .data =3D &sama5d3_ebi_caps, }, + { + .compatible =3D "microchip,sam9x60-ebi", + .data =3D &sam9x60_ebi_caps, + }, { /* sentinel */ } }; =20 --=20 2.9.5