blob: b30d8521947b9da3c8698da2f91890dd490d6c96 [file] [log] [blame]
Giulio Benetti8d9c0762020-01-10 15:51:48 +01001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright (C) 2019
4 * Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com>
5 */
6
Giulio Benetti8d9c0762020-01-10 15:51:48 +01007#include <config.h>
8
9/* image version */
10
11IMAGE_VERSION 2
12
13/*
14 * Boot Device : one of
15 * spi/sd/nand/onenand, qspi/nor
16 */
17
18BOOT_FROM sd
19
20/*
21 * Device Configuration Data (DCD)
22 *
23 * Each entry must have the format:
24 * Addr-type Address Value
25 *
26 * where:
27 * Addr-type register length (1,2 or 4 bytes)
28 * Address absolute address of the register
29 * value value to be stored in the register
30 */
31
Jesse Taube7079eeb2024-02-19 18:00:59 -050032/*
33 * 0x400AC044 is used to configure the flexram.
34 * Unfortunately setting all to OCRAM only works for MMC
35 * and setting all to DTCM only works for FLEXSPI NOR.
36 * This configuration fortunately works for both SPI and MMC.
37*/
38/* Set first two banks FlexRAM as OCRAM(01b) and the rest to DTCM(10b) */
39DATA 4 0x400AC044 0x55aaaaaa
Giulio Benetti8d9c0762020-01-10 15:51:48 +010040/* Use FLEXRAM_BANK_CFG to config FlexRAM */
41SET_BIT 4 0x400AC040 0x4