arm: Add explicit include of <asm/mach-types.h>Rather than relying on common.h to provide this include, which is goingaway at some point, include it explicitly in each file.Signed-off-by: Simon
arm: Add explicit include of <asm/mach-types.h>Rather than relying on common.h to provide this include, which is goingaway at some point, include it explicitly in each file.Signed-off-by: Simon Glass <sjg@chromium.org>Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
board_f: Drop setup_dram_config() wrapperBy making dram_init_banksize() return an error code we can drop thewrapper. Adjust this and clean up all implementations.Signed-off-by: Simon Glass <sjg@
board_f: Drop setup_dram_config() wrapperBy making dram_init_banksize() return an error code we can drop thewrapper. Adjust this and clean up all implementations.Signed-off-by: Simon Glass <sjg@chromium.org>Reviewed-by: Stefan Roese <sr@denx.de>
mtd: OneNAND: allow board init function failSigned-off-by: Ladislav Michl <ladis@linux-mips.org>
dm: select CONFIG_DM* optionsAs mentioned in the previous commit, adding default values in eachKconfig causes problems because it does not co-exist with the"depends on" syntax. (Please note this
dm: select CONFIG_DM* optionsAs mentioned in the previous commit, adding default values in eachKconfig causes problems because it does not co-exist with the"depends on" syntax. (Please note this is not a bug of Kconfig.)We should not do so unless we have a special reason. Actually,for CONFIG_DM*, we have no good reason to do so.Generally, CONFIG_DM is not a user-configurable option. Once weconvert a driver into Driver Model, the board only works with DriverModel, i.e. CONFIG_DM must be always enabled for that board.So, using "select DM" is more suitable rather than allowing users tomodify it. Another good thing is, Kconfig warns unmet dependenciesfor "select" syntax, so we easily notice bugs.Actually, CONFIG_DM and other related options have been addedwithout consistency: some into arch/*/Kconfig, some intoboard/*/Kconfig, and some into configs/*_defconfig.This commit prefers "select" and cleans up the following issues.[1] Never use "CONFIG_DM=n" in defconfig filesIt is really rare to add "CONFIG_FOO=n" to disable CONFIG options.It is more common to use "# CONFIG_FOO is not set". But here, wedo not even have to do it.Less than half of OMAP3 boards have been converted to Driver Model.Adding the default values to arch/arm/cpu/armv7/omap3/Kconfig isweird. Instead, add "select DM" only to appropriate boards, whicheventually eliminates "CONFIG_DM=n", etc.[2] Delete redundant CONFIGsSandbox sets CONFIG_DM in arch/sandbox/Kconfig and defines it againin configs/sandbox_defconfig.Likewise, OMAP3 sets CONFIG_DM arch/arm/cpu/armv7/omap3/Kconfig anddefines it also in omap3_beagle_defconfig and devkit8000_defconfig.Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
remove unnecessary version.h includesVarious files are needlessly rebuilt every time due to the version andbuild time changing. As version.h is not actually needed, remove theinclude.Signed-off
remove unnecessary version.h includesVarious files are needlessly rebuilt every time due to the version andbuild time changing. As version.h is not actually needed, remove theinclude.Signed-off-by: Rob Herring <robh@kernel.org>Cc: Albert Aribaud <albert.u.boot@aribaud.net>Cc: Stefano Babic <sbabic@denx.de>Cc: Minkyu Kang <mk7.kang@samsung.com>Cc: Marek Vasut <marex@denx.de>Cc: Tom Warren <twarren@nvidia.com>Cc: Michal Simek <monstr@monstr.eu>Cc: Macpaul Lin <macpaul@andestech.com>Cc: Wolfgang Denk <wd@denx.de>Cc: York Sun <yorksun@freescale.com>Cc: Stefan Roese <sr@denx.de>Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>Cc: Simon Glass <sjg@chromium.org>Cc: Philippe Reynes <tremyfr@yahoo.fr>Cc: Eric Jarrige <eric.jarrige@armadeus.org>Cc: "David Müller" <d.mueller@elsoft.ch>Cc: Phil Edworthy <phil.edworthy@renesas.com>Cc: Robert Baldyga <r.baldyga@samsung.com>Cc: Torsten Koschorrek <koschorrek@synertronixx.de>Cc: Anatolij Gustschin <agust@denx.de>Reviewed-by: Linus Walleij <linus.walleij@linaro.org>Reviewed-by: Łukasz Majewski <l.majewski@samsung.com>
kconfig: remove unneeded dependency on !SPL_BUILDNow CONFIG_SPL_BUILD is not defined in Kconfig, so"!depends on SPL_BUILD" and "if !SPL_BUILD" are redundant.Signed-off-by: Masahiro Yamada <yamad
kconfig: remove unneeded dependency on !SPL_BUILDNow CONFIG_SPL_BUILD is not defined in Kconfig, so"!depends on SPL_BUILD" and "if !SPL_BUILD" are redundant.Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
dm: exynos: Move driver model CONFIGs to KconfigRemove driver model CONFIGs from the board config headers and use Kconfiginstead.Signed-off-by: Simon Glass <sjg@chromium.org>
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>
dm: exynos: Tidy up GPIO headersThe wrong header is being included, thus requiring the code to re-declarethe generic GPIO interface in each GPIO header.Fix this.Signed-off-by: Simon Glass <sjg
dm: exynos: Tidy up GPIO headersThe wrong header is being included, thus requiring the code to re-declarethe generic GPIO interface in each GPIO header.Fix this.Signed-off-by: Simon Glass <sjg@chromium.org>
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>
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>
Merge branch 'u-boot-samsung/master' into 'u-boot-arm/master'
S5P: Exynos: Add GPIO pin numbering and rename definitionsThis patch includes following changes :* Adds gpio pin numbering support for EXYNOS SOCs. To have consistent 0..n-1 GPIO numbering the b
S5P: Exynos: Add GPIO pin numbering and rename definitionsThis patch includes following changes :* Adds gpio pin numbering support for EXYNOS SOCs. To have consistent 0..n-1 GPIO numbering the banks are divided into different parts where ever they have holes in them.* Rename GPIO definitions from GPIO_... to S5P_GPIO_... These changes were done to enable cmd_gpio for EXYNOS and cmd_gpio has GPIO_INPUT same as s5p_gpio driver and hence getting a error during compilation.* Adds support for name to gpio conversion in s5p_gpio to enable gpio command EXYNOS SoCs. Function has been added to asm/gpio.h to decode the input gpio name to gpio number. Example: SMDK5420 # gpio set gpa00Signed-off-by: Leela Krishna Amudala <l.krishna@samsung.com>Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>Signed-off-by: Akshay Saraswat <akshay.s@samsung.com>Acked-by: Przemyslaw Marczak <p.marczak@samsung.com>Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
board: samsung: delete unused source filesSigned-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Cc: Mateusz Zalega <m.zalega@samsung.com>Cc: Minkyu Kang <mk7.kang@samsung.com>Acked-by: Mateu
board: samsung: delete unused source filesSigned-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Cc: Mateusz Zalega <m.zalega@samsung.com>Cc: Minkyu Kang <mk7.kang@samsung.com>Acked-by: Mateusz Zalega <m.zalega@samsung.com>
arm: remove unneeded symbol offsets and _TEXT_BASERemove the last uses of symbol offsets in ARM U-Boot.Remove some needless uses of _TEXT_BASE.Remove all _TEXT_BASE definitions.Signed-off-by: A
arm: remove unneeded symbol offsets and _TEXT_BASERemove the last uses of symbol offsets in ARM U-Boot.Remove some needless uses of _TEXT_BASE.Remove all _TEXT_BASE definitions.Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
board: arm: convert makefiles to Kbuild styleSigned-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>Cc: Andreas Bießmann <andreas.devel@googlemail
board: arm: convert makefiles to Kbuild styleSigned-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>Cc: Andreas Bießmann <andreas.devel@googlemail.com>Cc: Stefano Babic <sbabic@denx.de>Cc: Prafulla Wadaskar <prafulla@marvell.com>Cc: Minkyu Kang <mk7.kang@samsung.com>Cc: Vipin Kumar <vipin.kumar@st.com>Cc: Tom Warren <twarren@nvidia.com>Cc: Tom Rini <trini@ti.com>
arm: smdkc100: remove config.mk fileSince config.mk is deprecated, remove this file,and move CONFIG_SYS_TEXT_BASE define to config file.Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>Cc: Wolf
arm: smdkc100: remove config.mk fileSince config.mk is deprecated, remove this file,and move CONFIG_SYS_TEXT_BASE define to config file.Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>Cc: Wolfgang Denk <wd@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>
IPL: Remove remains of OneNAND IPLAfter removing the Apollon board, remove the OneNAND IPL too.There are no users for it any more.Signed-off-by: Marek Vasut <marex@denx.de>Cc: Albert Aribaud <a
IPL: Remove remains of OneNAND IPLAfter removing the Apollon board, remove the OneNAND IPL too.There are no users for it any more.Signed-off-by: Marek Vasut <marex@denx.de>Cc: Albert Aribaud <albert.u.boot@aribaud.net>Cc: Minkyu Kang <promsoft@gmail.com>Cc: Tom Rini <trini@ti.com>Acked-by: Minkyu Kang <mk7.kang@samsung.com>
linux/compat.h: rename from linux/mtd/compat.hThis lets us use it in more places than just mtd code.Signed-off-by: Mike Frysinger <vapier@gentoo.org>
punt unused clean/distclean targetsThe top level Makefile does not do any recursion into subdirs whencleaning, so these clean/distclean targets in random arch/board dirsnever get used. Punt them
punt unused clean/distclean targetsThe top level Makefile does not do any recursion into subdirs whencleaning, so these clean/distclean targets in random arch/board dirsnever get used. Punt them all.MAKEALL didn't report any errors related to this that I could see.Signed-off-by: Mike Frysinger <vapier@gentoo.org>
gpio:samsung s5p_ suffix add for GPIO functionsThis change is driven by need of general gpio_* functions,which as their parameter are accepting the GPIO pin number, NOTblock and pin.This makes
gpio:samsung s5p_ suffix add for GPIO functionsThis change is driven by need of general gpio_* functions,which as their parameter are accepting the GPIO pin number, NOTblock and pin.This makes the code alike to omap, and allows for using moregeneric frameworks (e.g. software I2C).Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>Acked-by: Mike Frysinger <vapier@gentoo.org>
S5P:SROM config code moved to s5p-common directorySROM config code is made common for S5P series of boards.smdkc100.c now refers to s5p-common/sromc.c for SROM relatedsubroutines.Signed-off-by:
S5P:SROM config code moved to s5p-common directorySROM config code is made common for S5P series of boards.smdkc100.c now refers to s5p-common/sromc.c for SROM relatedsubroutines.Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Merge branch 'master' of git://git.denx.de/u-boot-samsung
12