diff options
Diffstat (limited to 'plat/imx/imx6/imx6ul_picopi/include/atf_uboot_compat.h')
-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 00000000..20187017 --- /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__ */ + |