diff options
Diffstat (limited to 'arch/arm/boards/nxp-imx8mq-evk/ddr.h')
-rw-r--r-- | arch/arm/boards/nxp-imx8mq-evk/ddr.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/arm/boards/nxp-imx8mq-evk/ddr.h b/arch/arm/boards/nxp-imx8mq-evk/ddr.h new file mode 100644 index 0000000000..2c25e3f98c --- /dev/null +++ b/arch/arm/boards/nxp-imx8mq-evk/ddr.h @@ -0,0 +1,28 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright (c) 2018 Zodiac Inflight Innovation + * Author: Andrey Smirnov <andrew.smirnov@gmail.com> + * + * Varios wrappers and macros needed to intgrate code generated by + * i.MX8M DDR Tool into rest of Barebox + */ +#include <common.h> +#include <io.h> +#include <mach/imx8-ddrc.h> + +/* + * Code generated by i.MX8 M DDR Tool doesn't have any prefixes in the + * global identifiers below, so in order to avoid symbol name + * collisions with other boards we re-name them via a #define + */ +#define ddr_init nxp_imx8mq_evk_ddr_init +#define ddr_cfg_phy nxp_imx8mq_evk_ddr_cfg_phy + +void nxp_imx8mq_evk_ddr_init(void); + +#define FW_1D_IMAGE imx_lpddr4_pmu_train_1d_imem_bin, \ + imx_lpddr4_pmu_train_1d_dmem_bin +#define FW_2D_IMAGE imx_lpddr4_pmu_train_2d_imem_bin, \ + imx_lpddr4_pmu_train_2d_dmem_bin + + |