1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/atxmega-a1u-xpro: Add ebi configuration

Enable EBI (External Bus Interface) and configure LPC SRAM memory.  This
set RIOT-OS to use up to 64k external data SRAM.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
This commit is contained in:
Gerson Fernando Budke 2021-01-23 19:41:24 -03:00 committed by Gerson Fernando Budke
parent 307e8c7a17
commit 9b36657793
2 changed files with 30 additions and 1 deletions

View File

@ -1,4 +1,7 @@
AVRDUDE_PROGRAMMER = xplainedpro_pdi
DEBUGPROTO = -X
override RAM_LEN = 65536
override EXP_RAM = 1
include $(RIOTBOARD)/common/atxmega/Makefile.include

View File

@ -138,7 +138,33 @@ static const spi_conf_t spi_config[] = {
* @{
*/
static const ebi_conf_t ebi_config = {
0
.addr_bits = 18, /* A0-A17 */
.flags = (EBI_PORT_LPC | EBI_PORT_CS2),
.sram_ale = 0,
.lpc_ale = 2,
.sdram = { 0 },
.cs = { /* Reserved A16 */
{ EBI_CS_MODE_DISABLED_gc,
0,
EBI_CS_SRWS_0CLK_gc,
0x0UL,
}, /* Reserved A17 */
{ EBI_CS_MODE_DISABLED_gc,
0,
EBI_CS_SRWS_0CLK_gc,
0x0UL,
}, /* CS2 - 256K SRAM */
{ EBI_CS_MODE_LPC_gc,
EBI_CS_ASPACE_256KB_gc,
EBI_CS_SRWS_1CLK_gc,
0x0UL,
}, /* Reserved LCD */
{ EBI_CS_MODE_DISABLED_gc,
0,
EBI_CS_SRWS_0CLK_gc,
0x0UL,
},
},
};
/** @} */