diff options
author | Bryan O'Donoghue <bryan.odonoghue@linaro.org> | 2018-05-24 19:32:52 +0100 |
---|---|---|
committer | Bryan O'Donoghue <bryan.odonoghue@linaro.org> | 2018-09-04 14:18:31 +0100 |
commit | 54544c9982200836ad6e9d066ca89ccdc80ad484 (patch) | |
tree | 33b6863b588edd3415c80a3a199dbfe63c97c1af /plat/imx/imx7 | |
parent | b42ceebb40ae57ea18e77e2270fb131fa981c906 (diff) |
warp7: Add initial warp7_helpers.S
This commit adds a warp7_helpers.S which contains a implementation of:
- platform_mem_init
- plat_get_my_entrypoint
- plat_crash_console_init
- plat_crash_console_putc
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Diffstat (limited to 'plat/imx/imx7')
-rw-r--r-- | plat/imx/imx7/warp7/aarch32/warp7_helpers.S | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/plat/imx/imx7/warp7/aarch32/warp7_helpers.S b/plat/imx/imx7/warp7/aarch32/warp7_helpers.S new file mode 100644 index 00000000..b12ff325 --- /dev/null +++ b/plat/imx/imx7/warp7/aarch32/warp7_helpers.S @@ -0,0 +1,44 @@ +/* + * Copyright (c) Linaro 2018 Limited and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#include <arch.h> +#include <asm_macros.S> +#include <assert_macros.S> +#include <platform_def.h> + + .globl platform_mem_init + .globl plat_get_my_entrypoint + .globl plat_crash_console_init + .globl plat_crash_console_putc + + /* --------------------------------------------- + * int plat_mem_init(void) + * Function to initialize memory. + * The HAB hands off the DDR controller already + * setup and ready to use. + * Implement the mandatory function as a NOP + * --------------------------------------------- + */ +func platform_mem_init + bx lr +endfunc platform_mem_init + +func plat_get_my_entrypoint + mov r0, #0 + bx lr +endfunc plat_get_my_entrypoint + +func plat_crash_console_init + mov_imm r0, PLAT_WARP7_BOOT_UART_BASE + mov_imm r1, PLAT_WARP7_BOOT_UART_CLK_IN_HZ + mov_imm r2, PLAT_WARP7_CONSOLE_BAUDRATE + b imx_crash_uart_init +endfunc plat_crash_console_init + +func plat_crash_console_putc + mov_imm r1, PLAT_WARP7_BOOT_UART_BASE + b imx_crash_uart_putc +endfunc plat_crash_console_putc |