diff options
author | Tom Rini <trini@ti.com> | 2014-10-27 09:08:42 -0400 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-10-27 09:08:42 -0400 |
commit | 0ce4af99c07acebf4fce9a91f1099d2460629293 (patch) | |
tree | d87d969bfc91662e7a90b3c4fcce35acf4a3cdaf /arch | |
parent | 5aa7bece1045c28806ce919099616ebe8fa63325 (diff) | |
parent | 3f97af5302ee15530411232b464d255eb2ff2ffb (diff) | |
download | u-boot-0ce4af99c07acebf4fce9a91f1099d2460629293.zip u-boot-0ce4af99c07acebf4fce9a91f1099d2460629293.tar.gz u-boot-0ce4af99c07acebf4fce9a91f1099d2460629293.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-imx
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/cpu/armv7/mx6/soc.c | 1 | ||||
-rw-r--r-- | arch/arm/imx-common/video.c | 3 | ||||
-rw-r--r-- | arch/arm/include/asm/imx-common/spi.h | 17 | ||||
-rw-r--r-- | arch/arm/include/asm/imx-common/video.h | 5 | ||||
-rw-r--r-- | arch/arm/lib/bootm.c | 5 |
5 files changed, 27 insertions, 4 deletions
diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c index a202b03..dd5aaa2 100644 --- a/arch/arm/cpu/armv7/mx6/soc.c +++ b/arch/arm/cpu/armv7/mx6/soc.c @@ -21,6 +21,7 @@ #include <stdbool.h> #include <asm/arch/mxc_hdmi.h> #include <asm/arch/crm_regs.h> +#include <asm/bootm.h> enum ldo_reg { LDO_ARM, diff --git a/arch/arm/imx-common/video.c b/arch/arm/imx-common/video.c index 0121cd7..8651b80 100644 --- a/arch/arm/imx-common/video.c +++ b/arch/arm/imx-common/video.c @@ -6,9 +6,6 @@ #include <asm/errno.h> #include <asm/imx-common/video.h> -extern struct display_info_t const displays[]; -extern size_t display_count; - int board_video_skip(void) { int i; diff --git a/arch/arm/include/asm/imx-common/spi.h b/arch/arm/include/asm/imx-common/spi.h new file mode 100644 index 0000000..1d4473a --- /dev/null +++ b/arch/arm/include/asm/imx-common/spi.h @@ -0,0 +1,17 @@ +/* + * Copyright 2011 Freescale Semiconductor, Inc. + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#ifndef __MXC_SPI_H_ +#define __MXC_SPI_H_ + +/* + * Board-level chip-select callback + * Should return GPIO # to be used for chip-select + */ + +int board_spi_cs_gpio(unsigned bus, unsigned cs); + +#endif diff --git a/arch/arm/include/asm/imx-common/video.h b/arch/arm/include/asm/imx-common/video.h index 2d94850..1a907d4 100644 --- a/arch/arm/include/asm/imx-common/video.h +++ b/arch/arm/include/asm/imx-common/video.h @@ -21,4 +21,9 @@ struct display_info_t { extern int detect_hdmi(struct display_info_t const *dev); #endif +#ifdef CONFIG_IMX_VIDEO_SKIP +extern struct display_info_t const displays[]; +extern size_t display_count; +#endif + #endif diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c index 0d19c8a..cdb1975 100644 --- a/arch/arm/lib/bootm.c +++ b/arch/arm/lib/bootm.c @@ -23,6 +23,8 @@ #include <asm/bootm.h> #include <asm/secure.h> #include <linux/compiler.h> +#include <bootm.h> +#include <vxworks.h> #if defined(CONFIG_ARMV7_NONSEC) || defined(CONFIG_ARMV7_VIRT) #include <asm/armv7.h> @@ -300,7 +302,8 @@ static void boot_jump_linux(bootm_headers_t *images, int flag) * DIFFERENCE: Instead of calling prep and go at the end * they are called if subcommand is equal 0. */ -int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images) +int do_bootm_linux(int flag, int argc, char * const argv[], + bootm_headers_t *images) { /* No need for those on ARM */ if (flag & BOOTM_STATE_OS_BD_T || flag & BOOTM_STATE_OS_CMDLINE) |