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 ...
mmc: move more driver config options to KconfigMove (and rename) the following CONFIG options to Kconfig: CONFIG_DAVINCI_MMC (renamed to CONFIG_MMC_DAVINCI) CONFIG_OMAP_HSMMC (renamed to CO
mmc: move more driver config options to KconfigMove (and rename) the following CONFIG options to Kconfig: CONFIG_DAVINCI_MMC (renamed to CONFIG_MMC_DAVINCI) CONFIG_OMAP_HSMMC (renamed to CONFIG_MMC_OMAP_HS) CONFIG_MXC_MMC (renamed to CONFIG_MMC_MXC) CONFIG_MXS_MMC (renamed to CONFIG_MMC_MXS) CONFIG_TEGRA_MMC (renamed to CONFIG_MMC_SDHCI_TEGRA) CONFIG_SUNXI_MMC (renamed to CONFIG_MMC_SUNXI)They are the same option names as used in Linux.This commit was created as follows:[1] Rename the options with the following command:find . -name .git -prune -o ! -path ./scripts/config_whitelist.txt \-type f -print | xargs sed -i -e 's/CONFIG_DAVINCI_MMC/CONFIG_MMC_DAVINCI/gs/CONFIG_OMAP_HSMMC/CONFIG_MMC_OMAP_HS/gs/CONFIG_MXC_MMC/CONFIG_MMC_MXC/gs/CONFIG_MXS_MMC/CONFIG_MMC_MXS/gs/CONFIG_TEGRA_MMC/CONFIG_MMC_SDHCI_TEGRA/gs/CONFIG_SUNXI_MMC/CONFIG_MMC_SUNXI/g'[2] Commit the changes[3] Create entries in driver/mmc/Kconfig. (copied from Linux)[4] Move the options with the following commandtools/moveconfig.py -y -r HEAD \MMC_DAVINCI MMC_OMAP_HS MMC_MXC MMC_MXS MMC_SDHCI_TEGRA MMC_SUNXI[5] Sort and align drivers/mmc/Makefile for readabilitySigned-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>Reviewed-by: Marek Vasut <marex@denx.de>
mx27: 16-bit wide watchdog registersMake the watchdog registers 16-bit wide, as they are according to TRM.Signed-off-by: Leonid Iziumtsev <leonid.iziumtsev@se.atlascopco.com>Reviewed-by: Fabio E
mx27: 16-bit wide watchdog registersMake the watchdog registers 16-bit wide, as they are according to TRM.Signed-off-by: Leonid Iziumtsev <leonid.iziumtsev@se.atlascopco.com>Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
imx: mx27 implement get_cpu_revImplement get_cpu_rev to support runtime check using is_cpu_type.Signed-off-by: Peng Fan <Peng.Fan@freescale.com>Cc: Stefano Babic <sbabic@denx.de>Reviewed-by: St
imx: mx27 implement get_cpu_revImplement get_cpu_rev to support runtime check using is_cpu_type.Signed-off-by: Peng Fan <Peng.Fan@freescale.com>Cc: Stefano Babic <sbabic@denx.de>Reviewed-by: Stefano Babic <sbabic@denx.de>
imx: fix exception vectors relocation in imx27Commit 3ff46cc4 fixed exception vectors setting inthe general ARM case, by either copying the exceptionand indirect vector tables to normal (0x000000
imx: fix exception vectors relocation in imx27Commit 3ff46cc4 fixed exception vectors setting inthe general ARM case, by either copying the exceptionand indirect vector tables to normal (0x00000000) orhigh (0xFFFF0000) vectors address, or setting VBAR toU-Boot's base if applicable.i.MX27 SoC is ARM926E-JS, thus has only normal andhigh options, but does not provide RAM at 0xFFFF0000and has only ROM at 0x00000000; it is therefore notpossible to move or change its exception vectors.Besides, i.MX27 ROM code does provide an indirectvectors table but at a non-standard address and withthe reset and reserved vectors missing.Turn the current vector relocation code into a weakroutine called after relocate_code from crt0, and addstrong version for i.MX27.Series-Cc: Heiko Schocher <hs@denx.de>Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>Reviewed-by: Stefano Babic <sbabic@denx.de>Tested-by: Stefano Babic <sbabic@denx.de>Tested-by: Philippe Reynes <tremyfr@gmail.com>Tested-by: Philippe Reynes <tremyfr@yahoo.fr>
kbuild: move asm-offsets.c from SoC directory to arch/$(ARCH)/libU-Boot has supported two kinds of asm-offsets.h.One is generic for all architectures and its source is located at./lib/asm-offset
kbuild: move asm-offsets.c from SoC directory to arch/$(ARCH)/libU-Boot has supported two kinds of asm-offsets.h.One is generic for all architectures and its source is located at./lib/asm-offsets.c.The other is SoC specific and its source is under SoC directory.The problem here is that only boards with SoC directory can usethe asm-offsets infrastructure.Putting asm-offsets.c right under CPU directory does not work.Now a new demand is coming. PowerPC folks want to use asm-offsets.But no PowerPC boards have SoC directory.It seems inconsistent that some boards add asm-offsets.c to SoCdirectoreis and some to CPU directories.It looks more reasonable to put asm-offsets.c under arch/$(ARCH)/lib.This commit merges asm-offsets.c under SoC directories intoarch/$(ARCH)/lib/asm-offsets.c.By the way, I doubt the necessity of some entries in asm-offsets.c.I am leaving refactoring to the board maintainers.Please check "TODO" in the comment blocks inarch/{arm,nds32}/lib/asm-offsets.c.Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Cc: Yuantian Tang <Yuantian.Tang@freescale.com>
arm926ejs: convert makefiles to Kbuild styleNote1:In arch/arm/cpu/arm926ejs/spear/MakefileSTART := start.owas changedextra-$(CONFIG_SPL_BUILD) := start.obecause spear/start.o is only used for
arm926ejs: convert makefiles to Kbuild styleNote1:In arch/arm/cpu/arm926ejs/spear/MakefileSTART := start.owas changedextra-$(CONFIG_SPL_BUILD) := start.obecause spear/start.o is only used for SPL.Note2:START := start.owas missing from arch/arm/cpu/arm926ejs/mxs/Makefile.This commit simply addsextra-$(CONFIG_SPL_BUILD) := start.oSigned-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
mx27: add missing constant for mx27Add some missing constant (chip select, ...)Signed-off-by: Philippe Reynes <tremyfr@yahoo.fr>Signed-off-by: Eric Jarrige <eric.jarrige@armadeus.org>Acked-by:
mx27: add missing constant for mx27Add some missing constant (chip select, ...)Signed-off-by: Philippe Reynes <tremyfr@yahoo.fr>Signed-off-by: Eric Jarrige <eric.jarrige@armadeus.org>Acked-by: Stefano Babic <sbabic@denx.de>
Add GPL-2.0+ SPDX-License-Identifier to source filesSigned-off-by: Wolfgang Denk <wd@denx.de>[trini: Fixup common/cmd_io.c]Signed-off-by: Tom Rini <trini@ti.com>
mx27: add i2c clockSigned-off-by: Eric Jarrige <eric.jarrige@armadeus.org>Signed-off-by: Philippe Reynes <tremyfr@yahoo.fr>
mx27: add function enable_cachesSigned-off-by: Philippe Reynes <tremyfr@yahoo.fr>
arm: Move lastinc to arch_global_dataMove this field into arch_global_data and tidy up.Signed-off-by: Simon Glass <sjg@chromium.org>
arm: Move tbl to arch_global_dataMove this field into arch_global_data and tidy up.Signed-off-by: Simon Glass <sjg@chromium.org>
gpio: add gpio api support to mx27 (v4)The gpio api has been tested on an armadeus apf27.Signed-off-by: Philippe Reynes <tremyfr@yahoo.fr>Acked-by: Stefano Babic <sbabic@denx.de>
MX27: add missing get_tbclk()Signed-off-by: Stefano Babic <sbabic@denx.de>
mmc: access mxcmmc from mx31 boardsThis patch modifies mxcmmc.c to be usednot only by i.MX27 but also by i.MX31 boards.Both use the same SD controller, but have differentclock set-ups.The i.MX2
mmc: access mxcmmc from mx31 boardsThis patch modifies mxcmmc.c to be usednot only by i.MX27 but also by i.MX31 boards.Both use the same SD controller, but have differentclock set-ups.The i.MX27 imx_get_XXXclock functions are made static togeneric.c and a public mxc_get_clock() functionis provided. Pins, base address and prototypes foran i.MX31 specific board_init_mmc() are provided.Some of the i.MX27 clock getters are unused and markedas such to avoid warnings (./MAKEALL -s mx27), butthe code was left in for future use.Signed-off-by: Helmut Raiger <helmut.raiger@hale.at>Acked-by: Stefano Babic <sbabic@denx.de>
net: imx: Add multi-FEC support for imx_get_mac_from_fuseAdd multi-FEC support for imx_get_mac_from_fuse by passing dev_id as a parameter.This feature is important on mx28 SoC for example that ha
net: imx: Add multi-FEC support for imx_get_mac_from_fuseAdd multi-FEC support for imx_get_mac_from_fuse by passing dev_id as a parameter.This feature is important on mx28 SoC for example that has two FEC ports.Cc: Ben Warren <biggerbadderben@gmail.com>Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>Acked-by: Stefano Babic <sbabic@denx.de>
imx: fix coding styleFix checkpatch warning and errors in several i.MX related files.While at it also address a checkpatch warning at arch/arm/cpu/armv7/mx5/soc.cregarding the usage of extern in
imx: fix coding styleFix checkpatch warning and errors in several i.MX related files.While at it also address a checkpatch warning at arch/arm/cpu/armv7/mx5/soc.cregarding the usage of extern in a C file.Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Makefile : fix generation of cpu related asm-offsets.hcommit 0edf8b5b2fa0d210ebc4d6da0fd1aceeb7e44e47 breaksbuilding on a different directory with the O= parameter.The patch wil fix this issue, g
Makefile : fix generation of cpu related asm-offsets.hcommit 0edf8b5b2fa0d210ebc4d6da0fd1aceeb7e44e47 breaksbuilding on a different directory with the O= parameter.The patch wil fix this issue, generating always asm-offsets.h beforethe other targets.Signed-off-by: Stefano Babic <sbabic@denx.de>CC: Matthias Weisser <weisserm@arcor.de>CC: Wolfgang Denk <wd@denx.de>
Timer: Remove reset_timer_masked()In some circumstances, reset_timer_masked() was called be timer_init() inorder to perform architecture specific timer initialisation. In suchcases, the required
Timer: Remove reset_timer_masked()In some circumstances, reset_timer_masked() was called be timer_init() inorder to perform architecture specific timer initialisation. In suchcases, the required code in reset_timer_masked() has been moved intotimer_init()
Timer: Remove reset_timer() for non-Nios2 arches
Timer: Remove set_timer completely
MX27: Update to autogenerated asm-offsets.hOn i.MX27, the asm-offsets.h file is not yet generated as it should be.Signed-off-by: Stefano Babic <sbabic@denx.de>CC: Matthias Weisser <weisserm@arco
MX27: Update to autogenerated asm-offsets.hOn i.MX27, the asm-offsets.h file is not yet generated as it should be.Signed-off-by: Stefano Babic <sbabic@denx.de>CC: Matthias Weisser <weisserm@arcor.de>
mx27: Make the UART port number explicitmx27_uart_init_pins does the IOMUX setting for UART1 port.Change the function name to make the UART port number explicit.Signed-off-by: Fabio Estevam <fa
mx27: Make the UART port number explicitmx27_uart_init_pins does the IOMUX setting for UART1 port.Change the function name to make the UART port number explicit.Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
arm926ejs: timer: Replace bss variable by gdrReuse the gd->tbl value for timestamp and add gd->lastinc for lastinc bssvalues in the arm926ejs timers implementation.The usage of bss values in dri
arm926ejs: timer: Replace bss variable by gdrReuse the gd->tbl value for timestamp and add gd->lastinc for lastinc bssvalues in the arm926ejs timers implementation.The usage of bss values in drivers before initialisation of bss is forbidden.In that special case some data in .rel.dyn gets corrupted.This patch is similiar to the patch Dirk Behme postedfor the armv7/omap-common/timer.c and added suggestionsfrom Reinhard Meyer.Tested on the arm926ejs mx27 based magnesium boardTested on the arm926ejs kirkwood based suen3 boardSigned-off-by: Heiko Schocher <hs@denx.de>cc: Albert ARIBAUD <albert.aribaud@free.fr>cc: Prafulla Wadaskar <prafulla@marvell.com>cc: Stefano Babic <sbabic@denx.de>cc: Reinhard Meyer <u-boot@emk-elektronik.de>
12