diff options
| author | Bastien Curutchet <[email protected]> | 2024-10-21 17:13:26 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-10-29 18:45:22 -0600 |
| commit | 1ba44c8eed7c1c623f7010401bb0b8d2e59a8d8a (patch) | |
| tree | 3fd441e6d1fba932c8198603cc6d66ec1f8dd5cc /board | |
| parent | 7a7b13838f11f6dbb3049a44b8884e9139f39b5e (diff) | |
memory: ti-aemif: Make AEMIF driver architecture agnostic
AEMIF controller is present on other SoCs than the Keystone ones.
Remove Keystone specificities from the driver to be able to use it from
other architectures.
Adapt the ks2_evm/board.c to fit the new driver.
Signed-off-by: Bastien Curutchet <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Diffstat (limited to 'board')
| -rw-r--r-- | board/ti/ks2_evm/board.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/board/ti/ks2_evm/board.c b/board/ti/ks2_evm/board.c index c6735d37dda..b2f0dced677 100644 --- a/board/ti/ks2_evm/board.c +++ b/board/ti/ks2_evm/board.c @@ -49,8 +49,10 @@ int dram_init(void) gd->ram_size = get_ram_size((long *)CFG_SYS_SDRAM_BASE, CFG_MAX_RAM_BANK_SIZE); #if defined(CONFIG_TI_AEMIF) - if (!(board_is_k2g_ice() || board_is_k2g_i1())) + if (!(board_is_k2g_ice() || board_is_k2g_i1())) { + aemif_configs->base = (void *)KS2_AEMIF_CNTRL_BASE; aemif_init(ARRAY_SIZE(aemif_configs), aemif_configs); + } #endif if (!(board_is_k2g_ice() || board_is_k2g_i1())) { |
