mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-17 10:18:38 +00:00
f1df936445
This patch adds the DDR3 setup and training code taken from the Marvell U-Boot repository. This code used to be included as a binary (bin_hdr) into the Armada A38x boot image. Not linked with the main U-Boot. With this code addition and the serdes/PHY setup code, the Armada A38x support in mainline U-Boot is finally self-contained. So the complete image for booting can be built from mainline U-Boot. Without any additional external inclusion. Note: This code has undergone many hours (days!) of coding-style cleanup and refactoring. It still is not checkpatch clean though, I'm afraid. As the factoring of the code has so many levels of indentation that many lines are longer than 80 chars. Signed-off-by: Stefan Roese <sr@denx.de>
16 lines
419 B
C
16 lines
419 B
C
/*
|
|
* Copyright (C) Marvell International Ltd. and its affiliates
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0
|
|
*/
|
|
|
|
#ifndef _DDR_TRAINING_IP_DB_H_
|
|
#define _DDR_TRAINING_IP_DB_H_
|
|
|
|
#include "ddr_topology_def.h"
|
|
#include "ddr3_training_ip_db.h"
|
|
|
|
u32 speed_bin_table(u8 index, enum speed_bin_table_elements element);
|
|
u32 pattern_table_get_word(u32 dev_num, enum hws_pattern type, u8 index);
|
|
|
|
#endif /* _DDR3_TRAINING_IP_DB_H_ */
|