summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* cmd: ide: Make the first device the default oneBin Meng2017-09-101-1/+1
| | | | | | | | | | | At present the IDE device number is initialized to -1, which means we cannot type "ide read" command before setting the device number via "ide device #". For convenience, let's set the first device as the default one. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* block: ide: Don't bother to create BLK device if no CDROM insertedBin Meng2017-09-101-0/+7
| | | | | | | | When there is no CDROM inserted, the block size is zero hence there is no need to create a BLK device for it. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* block: ide: Fix block read/write with driver modelBin Meng2017-09-103-1/+75
| | | | | | | | | | | This converts the IDE driver to driver model so that block read and write are fully functional. Fixes: b7c6baef ("x86: Convert MMC to driver model") Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* blk: Use macros for block device vendor/product/rev string sizeBin Meng2017-09-101-3/+7
| | | | | | | So far these are using magic numbers. Replace them with macros. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* edison: Disable CONFIG_USB_HOST_ETHERTom Rini2017-09-081-0/+1
| | | | | | | This board does dwc3 gadget, not host, so we cannot have host support or we will fail to link. Signed-off-by: Tom Rini <trini@konsulko.com>
* env: Migrate CONFIG_ENV_AES to Kconfig and deprecateTom Rini2017-09-082-1/+8
| | | | | | | | | The underlying implementation for ENV_AES has security complications and is not recommended for use. Please see CVE-2017-3225 and CVE-2017-3226 for more details. Mark this as deprecated now and delete this in the medium term if no one comes forward to re-work the support. Signed-off-by: Tom Rini <trini@konsulko.com>
* usb: doc: update README.usb for new config optionsChris Packham2017-09-081-9/+13
| | | | | | | A number of the config options for USB networking have been migrated to Kconfig. Update README.usb to reflect this. Signed-off-by: Chris Packham <judge.packham@gmail.com>
* usb: net: migrate USB Ethernet adapters to KconfigChris Packham2017-09-08175-144/+209
| | | | | | | | This migrates ASIX, ASIX88179, MCS7830, RTL8152 and SMSC95XX to Kconfig. Update defconfigs. Signed-off-by: Chris Packham <judge.packham@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* usb: net: migrate CONFIG_USB_HOST_ETHER to KconfigChris Packham2017-09-08181-74/+119
| | | | | | | | | | CONFIG_USB_HOST_ETHER is the framework that the drivers are dependent on USB_HOST_ETHER. Use this as a menu and move the existing LAN75XX and LAN78XX options under new menu. Finally update the defconfigs that need CONFIG_USB_HOST_ETHER. Signed-off-by: Chris Packham <judge.packham@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* Kconfig: drop CONFIG_USB_ETHER_RNDISChris Packham2017-09-088-8/+0
| | | | | | | This is not a valid option. Drop it. Signed-off-by: Chris Packham <judge.packham@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* Kconfig: drop CONFIG_USB_ETHER_DM9601Chris Packham2017-09-082-2/+0
| | | | | | | This is not a valid option. Drop it. Signed-off-by: Chris Packham <judge.packham@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* README: Fix typo in description of CONFIG_OF_EMBEDNobuhiro Iwamatsu2017-09-081-1/+1
| | | | | | | | The correct name is 'gd->fdt_blob', not 'gd->blob'. Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> CC: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org>
* configs: Resync with savedefconfigTom Rini2017-09-0811-23/+10
| | | | | | Rsync all defconfig files using moveconfig.py Signed-off-by: Tom Rini <trini@konsulko.com>
* rockchip: enable SPL_SYSRESET config for all Rockchip SoCsKever Yang2017-09-081-0/+1
| | | | | | | | | | With Makefiles testing for $(SPL_TPL_)SYSRESET, we need SPL_SYSRESET for do_reset() in SPL for Rockchip SoCs. References: 87c16d4 "drivers: spl: consistently use the $(SPL_TPL_) macro" Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
* rockchip: rk3328: fix syscon id tableKever Yang2017-09-081-0/+1
| | | | | | | | | syscon id table need a dummy member as NULL ending, or else system will panic while try to match a compatible in this table as a list. Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
* ARM: rmobile: Disable CONFIG_ARCH_FIXUP_FDT_MEMORYMarek Vasut2017-09-074-0/+4
| | | | | | | | | | | | | | Disable CONFIG_ARCH_FIXUP_FDT_MEMORY to prevent U-Boot from modifying the memory {} nodes in the DT passed to the Linux kernel. The R8A779x DT contains multiple memory {} nodes, while U-Boot only modifies the first one and stuffs all the memory entries into it, which is wrong. Disabling CONFIG_ARCH_FIXUP_FDT_MEMORY is the least intrusive way to fix the issue this close to the release, while the real fix is to extend the fdt_fixup_memory_banks() to handle multiple memory nodes in DT. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* ARM: rmobile: Fix SD divider settings on Gen3Marek Vasut2017-09-072-8/+8
| | | | | | | | | | | On RCar M3 and on RCar H3 newer than and not including ES1.0, the SD clock must be divided by 4 rather than 2 because a hardware workaround present only in the H3 ES1.0 has been removed from these chips. U-Boot currently only supports M3 and H3 ES 2.0 and newer, so configure the SD pre-divider to 4 to prevent SD instability. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* Merge git://git.denx.de/u-boot-netTom Rini2017-09-077-21/+24
|\
| * net: fix typosHeinrich Schuchardt2017-09-073-3/+3
| | | | | | | | | | | | | | %s/Desriptor/Descriptor/g Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
| * armv8: ls1043/ls1046aqds: add support for RGMII_TXIDMadalin Bucur2017-09-072-0/+2
| | | | | | | | | | | | Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com> Acked-by: York Sun <york.sun@nxp.com>
| * net: nfs: Drop CONFIG_NFS_READ_SIZETom Rini2017-09-071-8/+5
| | | | | | | | | | | | | | | | | | | | | | In the general case, CONFIG_NFS_READ_SIZE is unchanged from the default of 1024. There are in fact no in-tree users that increase this size. Adjust the comment to reflect what could be done in the future in conjunction with CONFIG_IP_DEFRAG. Cc: Joe Hershberger <joe.hershberger@ni.com> Signed-off-by: Tom Rini <trini@konsulko.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
| * net: phy: realtek: fix enabling of the TX-delay for RTL8211FMadalin Bucur2017-09-071-10/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The old logic always enabled the TX-delay when the phy-mode was set to PHY_INTERFACE_MODE_RGMII. With this patch we enable the TX delay for PHY_INTERFACE_MODE_RGMII_ID and PHY_INTERFACE_MODE_RGMII_TXID and disable it for PHY_INTERFACE_MODE_RGMII. Based on a similar change made in the Linux Realtek PHY driver by Martin Blumenstingl <martin.blumenstingl@googlemail.com>. Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com> Acked-by: York Sun <york.sun@nxp.com>
* | spl: typo fix for SPL_ATF_SUPPORT descriptionKever Yang2017-09-071-1/+1
| | | | | | | | | | | | Delete one redundant 'which' for SPL_ATF_SUPPORT description. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
* | linker_lists: remove incorrect commentHeinrich Schuchardt2017-09-071-2/+1
| | | | | | | | | | | | Remove a comment line refering to a non-existent file. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* | vsprintf: vsprintf does not have parameter sizeHeinrich Schuchardt2017-09-071-3/+1
| | | | | | | | | | | | | | | | | | The inline documentation of vsprintf mentions a parameter size which does not exist in the function declaration. int vsprintf(char *buf, const char *fmt, va_list args); Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
* | Revert "dm: arm: rpi: Drop CONFIG_OF_EMBED"Paul Barker2017-09-074-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 25877d4e4c45451c5398aec3de50e0d5befe0e9f. This is a workaround for Raspberry Pi boot failures seen when passing on the device tree provided by the Raspberry Pi firmware at boot. Without CONFIG_OF_EMBED, we just get stuck at "Starting kernel ..." when we try to boot Linux with this device tree. Signed-off-by: Paul Barker <pbarker@toganlabs.com> Cc: Simon Glass <sjg@chromium.org> Tested-by: Jonathan Gray <jsg@jsg.id.au> Reviewed-by: Simon Glass <sjg@chromium.org>
* | tools: .gitignore: Add libfdt related filesBin Meng2017-09-072-8/+4
| | | | | | | | | | | | | | | | | | | | Some files are generated during libfdt build. Ignore them. This was wrongly put in the .gitignore in the root directory before. Now let's remove entries there and put them in the right place. Fixes: 34e2c285 ("gitignore: add intermediates from libfdt build") Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
* | tools: .gitignore: Sort in alphabetical orderBin Meng2017-09-071-10/+9
| | | | | | | | | | | | These are currently out of alphabetical order. Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
* | doc: remove duplicate text in README.gptAlison Chaiken2017-09-071-10/+0
| | | | | | | | Signed-off-by: Alison Chaiken <alison@she-devel.com>
* | part: mac: Suppress the error message after reading ddbBin Meng2017-09-071-5/+1
|/ | | | | | | Change to use 'debug' to output the error message if it fails to read the driver descriptor block. Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
* env: Add 'envtools' target to 'make help'Simon Glass2017-09-052-0/+4
| | | | | | | The target is not currently mentioned anywhere. Add it to the help so people can find it. Signed-off-by: Simon Glass <sjg@chromium.org>
* env: Fix operation of 'make environ'Simon Glass2017-09-052-4/+4
| | | | | | | | | | | | | | | | This was broken by the recent environment refactoring. Specifically: $ make environ scripts/Makefile.build:59: tools/environ/Makefile: No such file or directory make[1]: *** No rule to make target 'tools/environ/Makefile'. Stop. make: *** [Makefile:1469: environ] Error 2 Fix this by updating the Makefile and adjusting the #include filesnames in two C files. Fixes: ec74f5f (Makefile: Rename 'env' target to 'environ') Reported-by: Måns Rullgård <mans@mansr.com> Signed-off-by: Simon Glass <sjg@chromium.org>
* usb: gadget: g_dnl: Sync internal SN variable with envSam Protsenko2017-09-052-0/+16
| | | | | | | | | | | | | | | | | | | | Since commit 842778a09104 ("usb: gadget: g_dnl: only set iSerialNumber if we have a serial#") "fastboot devices" stopped to show correct device serial number for TI boards, showing this line instead: ???????????? fastboot This is because serial# env variable could be set after g_dnl gadget was initialized (e.g. by using env_set() in the board file). To fix this, let's update internal serial number variable (g_dnl_serial) when "serial#" env var is changed. Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org> Cc: Felipe Balbi <felipe.balbi@linux.intel.com> Tested-by: Heiko Schocher <hs@denx.de> Acked-by: Łukasz Majewski <lukma@denx.de> Reviewed-by: Marek Vasut <marex@denx.de>
* env: Fix out of tree building of tools-allTom Rini2017-09-054-4/+4
| | | | | | | | | | | | | With the move of environment code from common/ to env/ a number of changes needed to be made to various make targets. We missed updating some of the files required for out of tree builds of the tools. Correct the 'environ' target to know that we need to work under tools/env/ still (not tools/environ/) and then update the wrappers in env_attr.c and env_flags.c to point to the new correct file. Reported-by: Peter Robinson <pbrobinson@gmail.com> Tested-by: Peter Robinson <pbrobinson@gmail.com> Signed-off-by: Tom Rini <trini@konsulko.com>
* Merge git://git.denx.de/u-boot-videoTom Rini2017-09-055-0/+16
|\
| * MAINTAINERS: add lcd files to video sectionAnatolij Gustschin2017-09-051-0/+2
| | | | | | | | | | | | LCD drivers are video related, so add them to video section. Signed-off-by: Anatolij Gustschin <agust@denx.de>
| * splash_source: Verify FIT magicNiko Mauno2017-09-041-0/+5
| | | | | | | | | | | | | | | | | | | | Before reading entire FIT image, add sanity check by testing image header against FDT_MAGIC. This should help avoid problems in situations where FIT is not yet available from storage device, for example when performing initial programming of device. Cc: Anatolij Gustschin <agust@denx.de> Acked-by: Tomas Melin <tomas.melin@vaisala.com>
| * video: ipuv3_fb: skip IPU shutdown if IPU was not enabled beforeAnatolij Gustschin2017-09-043-0/+9
| | | | | | | | | | | | | | | | | | | | Boards can skip display interface init using board_video_skip(). If display interface was not initialized (e.g. no ipuv3 framebuffer registered or IPU clock disabled), booting Linux stops due to the crash in IPU shutdown function, when accessing IPU registers. Check IPU clock and skip shutdown if clock is not enabled. Signed-off-by: Anatolij Gustschin <agust@denx.de>
* | Merge git://git.denx.de/u-boot-rockchipTom Rini2017-09-058-4/+155
|\ \
| * | rockchip: i2c: fix >32 byte readsWadim Egorov2017-09-051-3/+16
| | | | | | | | | | | | | | | | | | | | | | | | The hw can read up to 32 bytes at a time. If we need more than one chunk, we have to enter the plain RX mode. Signed-off-by: Wadim Egorov <w.egorov@phytec.de> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
| * | rockchip: firefly-rk3399: enable ATF and dwmmcKever Yang2017-09-051-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | enable the ATF option and SDCard in defconfig. Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
| * | rockchip: timer: fix U_BOOT_DRIVER namePhilipp Tomsich2017-09-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When I originally added this driver, I did some careless (and in retrospect: mindless) copy & paste for the U_BOOT_DRIVER structure skeletion... unfortunately, the 'arc_timer' string was committed and slipped through all reviews. This fixes the U_BOOT_DRIVER name to read 'rockchip_rk3368_timer' (as originally intended). Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reported-by: Artturi Alm <artturi.alm@gmail.com>
| * | rockchip: rk3288: Add reset reason detectionWadim Egorov2017-09-052-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sometimes it's helpful to know the reset reason caused in the SoC. Add reset reason detection for the RK3288 SoC. This will set an environment variable which represents the reset reason. Signed-off-by: Wadim Egorov <w.egorov@phytec.de> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
| * | rockchip: phycore: Read configuration EEPROM & set ethaddr in late initWadim Egorov2017-09-053-0/+85
| |/ | | | | | | | | | | | | | | Read SoM information from EEPROM and set ethaddr in late init. Signed-off-by: Wadim Egorov <w.egorov@phytec.de> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
* | Merge branch 'rmobile' of git://git.denx.de/u-boot-shTom Rini2017-09-043-16/+48
|\ \
| * | ARM: rmobile: Add missing IPSR18 bits to R8A7795 PFCMarek Vasut2017-09-051-0/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The IPSR18 register bits were missing from the R8A7795 ES2.0+ PFC tables, which triggered a BUG() in sh_pfc driver. This is because of an out-of-bounds access to the pinmux_gpios[] array in the PFC tables, which was too short due to the missing IPSR18 bits. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
| * | ARM: rmobile: Drop board_mmc_initMarek Vasut2017-09-052-14/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | The board_mmc_init() is no longer invoked when DM is used, so move all the pinmux config into board_init() instead. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
| * | ARM: rmobile: Replace CONFIG_RAVB with CONFIG_RENESAS_RAVB in boardsMarek Vasut2017-09-052-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The configuration option name is the later, so replace usage of CONFIG_RAVB in board files with CONFIG_RENESAS_RAVB , otherwise the RAVB pinmux is not set and ethernet does not work. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* | | Merge git://git.denx.de/u-boot-dmTom Rini2017-09-044-5/+303
|\ \ \ | |_|/ |/| |
| * | dm: core: Add livetree documentationSimon Glass2017-09-041-0/+272
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add some documentation for the live device tree support in U-Boot. This was missing from the initial series. Signed-off-by: Simon Glass <sjg@chromium.org> Suggested-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Łukasz Majewski <lukma@denx.de>