diff options
| author | Tudor Ambarus <tudor.ambarus@microchip.com> | 2019-02-13 03:59:55 -0500 |
|---|---|---|
| committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2019-03-21 11:45:04 -0400 |
| commit | 3e0863dd4c1f5b2c3b0ecd4320d3802ad975525d (patch) | |
| tree | b9e93887df9a0c2447491b6b2610c8f9dd9419d3 /drivers/memory | |
| parent | 996acbfb1fe370cfaa3c7469e93fc54c634fba08 (diff) | |
memory: atmel-ebi: add sam9x60 EBI support
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 <tudor.ambarus@microchip.com>
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'drivers/memory')
| -rw-r--r-- | drivers/memory/atmel-ebi.c | 14 |
1 files changed, 14 insertions, 0 deletions
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 @@ | |||
| 17 | #include <linux/init.h> | 17 | #include <linux/init.h> |
| 18 | #include <linux/of_device.h> | 18 | #include <linux/of_device.h> |
| 19 | #include <linux/regmap.h> | 19 | #include <linux/regmap.h> |
| 20 | #include <soc/at91/atmel-sfr.h> | ||
| 20 | 21 | ||
| 21 | struct atmel_ebi_dev_config { | 22 | struct atmel_ebi_dev_config { |
| 22 | int cs; | 23 | int cs; |
| @@ -440,6 +441,15 @@ static const struct atmel_ebi_caps sama5d3_ebi_caps = { | |||
| 440 | .apply_config = sama5_ebi_apply_config, | 441 | .apply_config = sama5_ebi_apply_config, |
| 441 | }; | 442 | }; |
| 442 | 443 | ||
| 444 | static const struct atmel_ebi_caps sam9x60_ebi_caps = { | ||
| 445 | .available_cs = 0x3f, | ||
| 446 | .ebi_csa_offs = AT91_SFR_CCFG_EBICSA, | ||
| 447 | .regmap_name = "microchip,sfr", | ||
| 448 | .get_config = at91sam9_ebi_get_config, | ||
| 449 | .xlate_config = atmel_ebi_xslate_smc_config, | ||
| 450 | .apply_config = at91sam9_ebi_apply_config, | ||
| 451 | }; | ||
| 452 | |||
| 443 | static const struct of_device_id atmel_ebi_id_table[] = { | 453 | static const struct of_device_id atmel_ebi_id_table[] = { |
| 444 | { | 454 | { |
| 445 | .compatible = "atmel,at91sam9260-ebi", | 455 | .compatible = "atmel,at91sam9260-ebi", |
| @@ -473,6 +483,10 @@ static const struct of_device_id atmel_ebi_id_table[] = { | |||
| 473 | .compatible = "atmel,sama5d3-ebi", | 483 | .compatible = "atmel,sama5d3-ebi", |
| 474 | .data = &sama5d3_ebi_caps, | 484 | .data = &sama5d3_ebi_caps, |
| 475 | }, | 485 | }, |
| 486 | { | ||
| 487 | .compatible = "microchip,sam9x60-ebi", | ||
| 488 | .data = &sam9x60_ebi_caps, | ||
| 489 | }, | ||
| 476 | { /* sentinel */ } | 490 | { /* sentinel */ } |
| 477 | }; | 491 | }; |
| 478 | 492 | ||
