diff options
author | Bryan O'Donoghue <bryan.odonoghue@linaro.org> | 2019-07-29 16:10:59 +0100 |
---|---|---|
committer | Bryan O'Donoghue <bryan.odonoghue@linaro.org> | 2019-08-06 15:14:48 +0100 |
commit | 12234ff855688281369b06229541bc7d5155a1d1 (patch) | |
tree | 3024a0f4217578083395126f397bc8ee8f8f2cef | |
parent | a095040d3cb92aa6135afe199784a541f2616695 (diff) |
imx6: imx6ul_picopi: atf_uboot_compat Add simple compatibility header
In order to import u-boot DDR initialization code we will need to provide
some very simple is_imx6ul() type functions.
We can inline those simple functions in a compatibility header licensed BSD
like the rest of ATF.
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
-rw-r--r-- | plat/imx/imx6/imx6ul_picopi/include/atf_uboot_compat.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/plat/imx/imx6/imx6ul_picopi/include/atf_uboot_compat.h b/plat/imx/imx6/imx6ul_picopi/include/atf_uboot_compat.h new file mode 100644 index 000000000..20187017c --- /dev/null +++ b/plat/imx/imx6/imx6ul_picopi/include/atf_uboot_compat.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#ifndef __ATF_UBOOT_COMPAT_H__ +#define __ATF_UBOOT_COMPAT_H__ + +#define is_mx6sx() false +#define is_mx6ul() true +#define is_mx6ull() false +#define is_mx6sl() false +#define is_mx6dq() false +#define is_mx6dqp() false + +#define readl(x) mmio_read_32((uintptr_t)x) + +#define DDR_CLOCK_MHZ 400000000 +#define mxc_get_clock(x) DDR_CLOCK_MHZ + +#endif /* __ATF_UBOOT_COMPAT_H__ */ + |