imx: reorganize IMX code as other SOCsChange is consistent with other SOCs and it is in preparationfor adding SOMs. SOC's related files are moved from cpu/ tomach-imx/<SOC>.This change is also
imx: reorganize IMX code as other SOCsChange is consistent with other SOCs and it is in preparationfor adding SOMs. SOC's related files are moved from cpu/ tomach-imx/<SOC>.This change is also coherent with the structure in kernel.Signed-off-by: Stefano Babic <sbabic@denx.de>CC: Fabio Estevam <fabio.estevam@nxp.com>CC: Akshay Bhat <akshaybhat@timesys.com>CC: Ken Lin <Ken.Lin@advantech.com.tw>CC: Marek Vasut <marek.vasut@gmail.com>CC: Heiko Schocher <hs@denx.de>CC: "Sébastien Szymanski" <sebastien.szymanski@armadeus.com>CC: Christian Gmeiner <christian.gmeiner@gmail.com>CC: Stefan Roese <sr@denx.de>CC: Patrick Bruenn <p.bruenn@beckhoff.com>CC: Troy Kisky <troy.kisky@boundarydevices.com>CC: Nikita Kiryanov <nikita@compulab.co.il>CC: Otavio Salvador <otavio@ossystems.com.br>CC: "Eric Bénard" <eric@eukrea.com>CC: Jagan Teki <jagan@amarulasolutions.com>CC: Ye Li <ye.li@nxp.com>CC: Peng Fan <peng.fan@nxp.com>CC: Adrian Alonso <adrian.alonso@nxp.com>CC: Alison Wang <b18965@freescale.com>CC: Tim Harvey <tharvey@gateworks.com>CC: Martin Donnelly <martin.donnelly@ge.com>CC: Marcin Niestroj <m.niestroj@grinn-global.com>CC: Lukasz Majewski <lukma@denx.de>CC: Adam Ford <aford173@gmail.com>CC: "Albert ARIBAUD (3ADEV)" <albert.aribaud@3adev.fr>CC: Boris Brezillon <boris.brezillon@free-electrons.com>CC: Soeren Moch <smoch@web.de>CC: Richard Hu <richard.hu@technexion.com>CC: Wig Cheng <wig.cheng@technexion.com>CC: Vanessa Maegima <vanessa.maegima@nxp.com>CC: Max Krummenacher <max.krummenacher@toradex.com>CC: Stefan Agner <stefan.agner@toradex.com>CC: Markus Niebel <Markus.Niebel@tq-group.com>CC: Breno Lima <breno.lima@nxp.com>CC: Francesco Montefoschi <francesco.montefoschi@udoo.org>CC: Jaehoon Chung <jh80.chung@samsung.com>CC: Scott Wood <oss@buserror.net>CC: Joe Hershberger <joe.hershberger@ni.com>CC: Anatolij Gustschin <agust@denx.de>CC: Simon Glass <sjg@chromium.org>CC: "Andrew F. Davis" <afd@ti.com>CC: "Łukasz Majewski" <l.majewski@samsung.com>CC: Patrice Chotard <patrice.chotard@st.com>CC: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>CC: Hans de Goede <hdegoede@redhat.com>CC: Masahiro Yamada <yamada.masahiro@socionext.com>CC: Stephen Warren <swarren@nvidia.com>CC: Andre Przywara <andre.przywara@arm.com>CC: "Álvaro Fernández Rojas" <noltari@gmail.com>CC: York Sun <york.sun@nxp.com>CC: Xiaoliang Yang <xiaoliang.yang@nxp.com>CC: Chen-Yu Tsai <wens@csie.org>CC: George McCollister <george.mccollister@gmail.com>CC: Sven Ebenfeld <sven.ebenfeld@gmail.com>CC: Filip Brozovic <fbrozovic@gmail.com>CC: Petr Kulhavy <brain@jikos.cz>CC: Eric Nelson <eric@nelint.com>CC: Bai Ping <ping.bai@nxp.com>CC: Anson Huang <Anson.Huang@nxp.com>CC: Sanchayan Maity <maitysanchayan@gmail.com>CC: Lokesh Vutla <lokeshvutla@ti.com>CC: Patrick Delaunay <patrick.delaunay@st.com>CC: Gary Bisson <gary.bisson@boundarydevices.com>CC: Alexander Graf <agraf@suse.de>CC: u-boot@lists.denx.deReviewed-by: Fabio Estevam <fabio.estevam@nxp.com>Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
show more ...
treewide: replace #include <asm/errno.h> with <linux/errno.h>Now, arch/${ARCH}/include/asm/errno.h and include/linux/errno.h havethe same content. (both just wrap <asm-generic/errno.h>)Replace
treewide: replace #include <asm/errno.h> with <linux/errno.h>Now, arch/${ARCH}/include/asm/errno.h and include/linux/errno.h havethe same content. (both just wrap <asm-generic/errno.h>)Replace all include directives for <asm/errno.h> with <linux/errno.h>.Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>[trini: Fixup include/clk.]Signed-off-by: Tom Rini <trini@konsulko.com>
Use correct spelling of "U-Boot"Correct spelling of "U-Boot" shall be used in all written text(documentation, comments in source files etc.).Signed-off-by: Bin Meng <bmeng.cn@gmail.com>Reviewed
Use correct spelling of "U-Boot"Correct spelling of "U-Boot" shall be used in all written text(documentation, comments in source files etc.).Signed-off-by: Bin Meng <bmeng.cn@gmail.com>Reviewed-by: Heiko Schocher <hs@denx.de>Reviewed-by: Simon Glass <sjg@chromium.org>Reviewed-by: Minkyu Kang <mk7.kang@samsung.com>
mx6: remove SYS_SOC from board KconfigRemove duplicated SYS_SOC Kconfig entry from board Kconfig,because we have this entry in arch/arm/cpu/armv7/mx6/Kconfig.Signed-off-by: Peng Fan <Peng.Fan@fr
mx6: remove SYS_SOC from board KconfigRemove duplicated SYS_SOC Kconfig entry from board Kconfig,because we have this entry in arch/arm/cpu/armv7/mx6/Kconfig.Signed-off-by: Peng Fan <Peng.Fan@freescale.com>Cc: Stefano Babic <sbabic@denx.de>Cc: Heiko Schocher <hs@denx.de>Cc: Christian Gmeiner <christian.gmeiner@gmail.com>Cc: Stefan Roese <sr@denx.de>Cc: Troy Kisky <troy.kisky@boundarydevices.com>Cc: Nikita Kiryanov <nikita@compulab.co.il>Cc: "Eric Bénard" <eric@eukrea.com>Cc: Fabio Estevam <fabio.estevam@freescale.com>Cc: Tim Harvey <tharvey@gateworks.com>Cc: Marek Vasut <marex@denx.de>Cc: Markus Niebel <Markus.Niebel@tq-group.com>Cc: Otavio Salvador <otavio@ossystems.com.br>Acked-by: Stefan Roese <sr@denx.de>Acked-by: Marek Vasut <marex@denx.de>Acked-by: Christian Gmeiner <christian.gmeiner@gmail.com>Acked-by: Markus Niebel <Markus.Niebel@tq-group.com>Acked-by: Troy Kisky <troy.kisky@boundarydevices.com>Acked-by: Igor Grinberg <grinberg@compulab.co.il>
mx6boards: Fix error handling in board_mmc_init()When an invalid USDHC port is passed we should return -EINVAL instead of 0.Also, return the error immediately on fsl_esdhc_initialize() failure.
mx6boards: Fix error handling in board_mmc_init()When an invalid USDHC port is passed we should return -EINVAL instead of 0.Also, return the error immediately on fsl_esdhc_initialize() failure.Cc: Eric Benard <eric@eukrea.com>Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
kconfig: arm: introduce symbol for ARM CPUsThis commit introduces a Kconfig symbol for each ARM CPU:CPU_ARM720T, CPU_ARM920T, CPU_ARM926EJS, CPU_ARM946ES, CPU_ARM1136,CPU_ARM1176, CPU_V7, CPU_PXA
kconfig: arm: introduce symbol for ARM CPUsThis commit introduces a Kconfig symbol for each ARM CPU:CPU_ARM720T, CPU_ARM920T, CPU_ARM926EJS, CPU_ARM946ES, CPU_ARM1136,CPU_ARM1176, CPU_V7, CPU_PXA, CPU_SA1100.Also, it adds the CPU feature Kconfig symbol HAS_VBAR which is selectedfor CPU_ARM1176 and CPU_V7.For each target, the corresponding CPU is selected and the definition ofSYS_CPU in the corresponding Kconfig file is removed.Also, it removes redundant "string" type in some Kconfig files.Signed-off-by: Georges Savoundararadj <savoundg@gmail.com>Acked-by: Albert ARIBAUD <albert.u.boot@aribaud.net>Cc: Masahiro Yamada <yamada.m@jp.panasonic.com>
ARM: i.MX: provide declaration for board_spi_cs_gpioProvide a public declaration of the board_spi_cs_gpio()callback for i.MX SPI chip selects to prevent the warning"Should it be static?" when com
ARM: i.MX: provide declaration for board_spi_cs_gpioProvide a public declaration of the board_spi_cs_gpio()callback for i.MX SPI chip selects to prevent the warning"Should it be static?" when compiling with "make C=1".Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
spi: mxc: fix sf probe when using mxc_spiMXC SPI driver has a feature whereas a GPIO line can be used to force CS highacross multiple transactions. This is set up by embedding the GPIO information
spi: mxc: fix sf probe when using mxc_spiMXC SPI driver has a feature whereas a GPIO line can be used to force CS highacross multiple transactions. This is set up by embedding the GPIO informationin the CS value:cs = (cs | gpio << 8)This merge of cs and gpio data into one value breaks the sf probe command:if the use of gpio is required, invoking "sf probe <cs>" will not work, becausethe CS argument doesn't have the GPIO information in it. Instead, the user mustuse "sf probe <cs | gpio << 8>". For example, if bank 2 gpio 30 is used to forcecs high on cs 0, bus 0, then instead of typing "sf probe 0" the user now musttype "sf probe 15872".This is inconsistent with the description of the sf probe command, and forcesthe user to be aware of implementaiton details.Fix this by introducing a new board function: board_spi_cs_gpio(), which willaccept a naked CS value, and provide the driver with the relevant GPIO, if oneis necessary.Cc: Eric Nelson <eric.nelson@boundarydevices.com>Cc: Eric Benard <eric@eukrea.com>Cc: Fabio Estevam <fabio.estevam@freescale.com>Cc: Tim Harvey <tharvey@gateworks.com>Cc: Stefano Babic <sbabic@denx.de>Cc: Tom Rini <trini@ti.com>Cc: Marek Vasut <marex@denx.de>Reviewed-by: Marek Vasut <marex@denx.de>Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>Reviewed-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
kconfig: remove redundant "string" type in arch and board KconfigsNow the types of CONFIG_SYS_{ARCH, CPU, SOC, VENDOR, BOARD, CONFIG_NAME}are specified in arch/Kconfig.We can delete the ones in
kconfig: remove redundant "string" type in arch and board KconfigsNow the types of CONFIG_SYS_{ARCH, CPU, SOC, VENDOR, BOARD, CONFIG_NAME}are specified in arch/Kconfig.We can delete the ones in arch and board Kconfig files.This commit can be easily reproduced by the following command:find . -name Kconfig -a ! -path ./arch/Kconfig | xargs sed -i -e '/config[[:space:]]SYS_\(ARCH\|CPU\|SOC\|\VENDOR\|BOARD\|CONFIG_NAME\)/ { N s/\n[[:space:]]*string//}'Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
embest/mx6boards: only toggle eMMC usdhc3 RST line on MarSboardOn MarS usdhc3 is eMMC, on RIoT usdhc3 is uSD and eMMC is usdhc4.Don't run the MarS specific eMMC reset code on usdhc3 whenboard_ty
embest/mx6boards: only toggle eMMC usdhc3 RST line on MarSboardOn MarS usdhc3 is eMMC, on RIoT usdhc3 is uSD and eMMC is usdhc4.Don't run the MarS specific eMMC reset code on usdhc3 whenboard_type == BOARD_IS_RIOTBOARDSigned-off-by: Iain Paton <ipaton0@gmail.com>
Add board MAINTAINERS filesWe have switched to Kconfig and the boards.cfg file is going tobe removed. We have to retrieve the board status and maintainersinformation from it.The MAINTAINERS for
Add board MAINTAINERS filesWe have switched to Kconfig and the boards.cfg file is going tobe removed. We have to retrieve the board status and maintainersinformation from it.The MAINTAINERS format as in Linux Kernel would be nicebecause we can crib the scripts/get_maintainer.pl script.After some discussion, we chose to put a MAINTAINERS file under eachboard directory, not the top-level one because we want to collectrelevant information for a board into a single place.TODO:Modify get_maintainer.pl to scan multiple MAINTAINERS files.Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Suggested-by: Tom Rini <trini@ti.com>Acked-by: Simon Glass <sjg@chromium.org>
kconfig: add board Kconfig and defconfig filesThis commit adds: - arch/${ARCH}/Kconfig provide a menu to select target boards - board/${VENDOR}/${BOARD}/Kconfig or board/${BOARD}/Kconfig
kconfig: add board Kconfig and defconfig filesThis commit adds: - arch/${ARCH}/Kconfig provide a menu to select target boards - board/${VENDOR}/${BOARD}/Kconfig or board/${BOARD}/Kconfig set CONFIG macros to the appropriate values for each board - configs/${TARGET_BOARD}_defconfig default setting of each board(This commit was automatically generated by a conversion scriptbased on boards.cfg)In Linux Kernel, defconfig files are located underarch/${ARCH}/configs/ directory.It works in Linux Kernel since ARCH is always given from thecommand line for cross compile.But in U-Boot, ARCH is not given from the command line.Which means we cannot know ARCH until the board configuration is done.That is why all the "*_defconfig" files should be gathered into asingle directory ./configs/.Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Acked-by: Simon Glass <sjg@chromium.org>
embest/mx6boards: use common detect_hdmiSigned-off-by: Eric Bénard <eric@eukrea.com>
RiOTboard and MarSBoard: add new boards supportRiOTboard is produced by Embest/Element 14 and is based on i.MX6 SoloThe following features are tested :- UART2 (console)- eMMC- SDCard- uSDCard
RiOTboard and MarSBoard: add new boards supportRiOTboard is produced by Embest/Element 14 and is based on i.MX6 SoloThe following features are tested :- UART2 (console)- eMMC- SDCard- uSDCard- Ethernet- USB Host (through 4 ports hub)- HDMI output- I2C 1/2/3- LVDS TFT with LCD8000-97C from Embest/Element 14Boot on eMMC and through USB loader are tested.For more informations on this board : http://www.riotboard.org/MarSBoard is produced by Embest/Element 14 and is based on i.MX6 DualThe following features are tested :- UART2 (console)- eMMC- uSDCard- Ethernet- USB Host (through 2 ports hub)- HDMI output- I2C 1/2- SPI NOR Flash- LVDS TFT with LCD8000-97C from Embest/Element 14Boot on SPI NOR and through USB loader are tested.For more informations on this board :http://www.embest-tech.com/shop/star/marsboard.htmlBoth boards are supported by the same code base as they are based on acommon trunk of schematics.Signed-off-by: Eric Bénard <eric@eukrea.com>Acked-by: Stefano Babic <sbabic@denx.de>