diff options
author | Peng Fan <Peng.Fan@freescale.com> | 2015-10-16 15:17:59 +0800 |
---|---|---|
committer | Peng Fan <Peng.Fan@freescale.com> | 2015-10-16 15:44:50 +0800 |
commit | 8c4a5a9a19e87b0b96b6add5e3adc23d877b06ed (patch) | |
tree | 10103e787a4423bee37edd5b7133c3faca58f7f6 /core/include/drivers/imx_uart.h | |
parent | d0665cc3f3077fcaa7c036f61d5c7781cb9d4e06 (diff) |
arm: imx: add i.MX 6UltraLite and EVK board support
The i.MX 6UltraLite[1] is a high performance, ultra-efficient processor
family featuring an advanced implementation of a single ARM® Cortex®-A7
core.
This patch add i.MX 6Ulralite EVK board support:
1. Add a uart driver for i.MX platforms
2. Introduce plat-imx for i.MX platforms
3. Introduce i.MX6 UltraLite platform
4. This patch has been tested using the following step,
4.1. build step:
PLATFORM_FLAVOR=mx6ulevk make ARCH=arm PLATFORM=imx
${CROSS_COMPILE}-objcopy -O binary out/arm-plat-imx/core/tee.elf optee.bin
copy optee.bin to the first partition of SD card which is used for boot.
4.2. Boot setting in uboot:
run loadfdt;
run loadimage;
fatload mmc 1:1 0x9c100000 optee.bin;
run mmcargs;
bootz ${loadaddr} - ${fdt_addr};
5. pass xtest
Note:
CAAM is not implemented now, this will be added later.
[1] http://www.freescale.com/webapp/sps/site/prod_summary.jsp?
code=i.MX6UL&tid=redI.MX6UL-FAMILY&uc=true&lang_cd=en
Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
Diffstat (limited to 'core/include/drivers/imx_uart.h')
-rw-r--r-- | core/include/drivers/imx_uart.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/core/include/drivers/imx_uart.h b/core/include/drivers/imx_uart.h new file mode 100644 index 00000000..db63227b --- /dev/null +++ b/core/include/drivers/imx_uart.h @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2015 Freescale Semiconductor, Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ +#ifndef IMX_UART_H +#define IMX_UART_H + +#include <types_ext.h> + +void imx_uart_init(vaddr_t base); + +void imx_uart_putc(const char ch, vaddr_t base); + +void imx_uart_flush_tx_fifo(vaddr_t base); + +bool imx_uart_have_rx_data(vaddr_t base); + +int imx_uart_getchar(vaddr_t base); + +#endif /* IMX_UART_H */ |