summaryrefslogtreecommitdiff
path: root/arch/arm/mach-k3/include/mach/k3-ddr.h
blob: 207e60b2763b02842e333d57520ff6dd88504ef0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * Copyright (C) 2024, Texas Instruments Incorporated - https://www.ti.com/
 */

#ifndef _K3_DDR_H_
#define _K3_DDR_H_

#include <spl.h>

/* We need 3 extra entries for:
 *   SoC peripherals, flash and the sentinel value.
 */
#define K3_MEM_MAP_LEN			((CONFIG_NR_DRAM_BANKS) + 3)
#define K3_MEM_MAP_FIRST_BANK_IDX	2

int dram_init(void);
int dram_init_banksize(void);

void fixup_ddr_driver_for_ecc(struct spl_image_info *spl_image);
void fixup_memory_node(struct spl_image_info *spl_image);

#endif /* _K3_DDR_H_ */