- May 05, 2015
-
-
git://git.denx.de/u-boot-marvellTom Rini authored
-
Stefan Roese authored
By removing this default build target, the "u-boot.kwb" target is not automatically generated. This fixes a temporary build error when using out-of-tree builds, as buildman does per default (reported by Simon). When the full SPL support is added for these targets with the DDR training code, the "u-boot-spl.kwb" image will be generated automatically. Users providing a special bin_hdr binary (binary.0) file can always add this binary file and generate the full firmware image by issuing the "make u-boot.kwb" command directly. Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Simon Glass <sjg@chromium.org> Cc: Prafulla Wadaskar <prafulla@marvell.com> Cc: Luka Perkov <luka.perkov@sartura.hr>
-
Stefan Roese authored
The macro to select the I2C address for ECC bus-width detection was defined incorrectly for the Marvell DB-MV784MP-GP board. This patch changes the macro to the correct value to fix this issue. Signed-off-by:
Stefan Roese <sr@denx.de>
-
Stefan Roese authored
This patch adds support for the Marvell DB-88F6820-GP Armada A38x evaluation board. Supported peripherals are: - UART - Ethernet (mvneta) - I2C - SPI (including SPI NOR flash) Please note that this board support right now only supports the main U-Boot. Without the bin_hdr integration (DDR training etc). This will be added in a few days / weeks to complete this board port. But till then this U-Boot version can be run on the target via the original Marvell U-Boot via this command: tftpboot 4000000 db-88f6820-gp/u-boot.bin;go 4000000 Signed-off-by:
Stefan Roese <sr@denx.de> Tested-by:
Kevin Smith <kevin.smith@elecsyscorp.com> Tested-by:
Dirk Eibach <dirk.eibach@gdsys.cc>
-
Stefan Roese authored
This solves some RX problems that have been seen, when using the mvneta ethernet driver. The cache needs to be reset into a "clean" state before using it. Signed-off-by:
Stefan Roese <sr@denx.de> Tested-by:
Kevin Smith <kevin.smith@elecsyscorp.com> Tested-by:
Dirk Eibach <dirk.eibach@gdsys.cc>
-
Stefan Roese authored
This enables the usage of the "preboot" environment variable on Marvell boards. Signed-off-by:
Stefan Roese <sr@denx.de> Tested-by:
Kevin Smith <kevin.smith@elecsyscorp.com> Tested-by:
Dirk Eibach <dirk.eibach@gdsys.cc>
-
Stefan Roese authored
We are not using the coherency feature in U-Boot at all. So lets remove this configuration from the mbus driver. Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Tested-by:
Kevin Smith <kevin.smith@elecsyscorp.com> Tested-by:
Dirk Eibach <dirk.eibach@gdsys.cc>
-
Stefan Roese authored
With the introduction of the Armada 38x support, its necessary to change the mvneta ethernet driver init call from always 4 times to a configurable value. Lets make this init call more flexible by moving the actually used devices to the config header. Additionally this patch takes care of the slightly different base addresses for the ethernet controllers on A38x. Signed-off-by:
Stefan Roese <sr@denx.de> Tested-by:
Kevin Smith <kevin.smith@elecsyscorp.com> Tested-by:
Dirk Eibach <dirk.eibach@gdsys.cc> Acked-by:
Joe Hershberger <joe.hershberger@ni.com>
-
Stefan Roese authored
This patch adds support for the Marvell Armada 38x SoC family. Supported peripherals are: - UART - Ethernet (mvneta) - I2C - SPI (including SPI NOR flash) Tested on Marvell DB-88F6820-GP evaluation board. Signed-off-by:
Stefan Roese <sr@denx.de> Tested-by:
Kevin Smith <kevin.smith@elecsyscorp.com> Tested-by:
Dirk Eibach <dirk.eibach@gdsys.cc>
-
Stefan Roese authored
This way, new MVEBU boards don't need to specifiy the common location for the SPL linker script. Signed-off-by:
Stefan Roese <sr@denx.de> Tested-by:
Kevin Smith <kevin.smith@elecsyscorp.com> Tested-by:
Dirk Eibach <dirk.eibach@gdsys.cc>
-
Stefan Roese authored
This define is used by the DDR training code for Armada XP. With the upcoming addition of Armada 38x support, lets only define it for Armada XP in this common header. Signed-off-by:
Stefan Roese <sr@denx.de> Tested-by:
Kevin Smith <kevin.smith@elecsyscorp.com> Tested-by:
Dirk Eibach <dirk.eibach@gdsys.cc>
-
Stefan Roese authored
MAX_MVNETA_DEVS is not used anywhere in U-Boot. So lets remove it. Signed-off-by:
Stefan Roese <sr@denx.de> Tested-by:
Kevin Smith <kevin.smith@elecsyscorp.com> Tested-by:
Dirk Eibach <dirk.eibach@gdsys.cc>
-
Stefan Roese authored
Since these files will be used for other MVEBU SoC's, lets reflect this in the headers marcos as well. Signed-off-by:
Stefan Roese <sr@denx.de> Tested-by:
Kevin Smith <kevin.smith@elecsyscorp.com> Tested-by:
Dirk Eibach <dirk.eibach@gdsys.cc>
-
Stefan Roese authored
Now that the mach-mvebu directory exists and is used by Armada XP we can move the mvebu-common files into this directory as well. Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Masahiro Yamada <yamada.masahiro@socionext.com> Tested-by:
Kevin Smith <kevin.smith@elecsyscorp.com> Tested-by:
Dirk Eibach <dirk.eibach@gdsys.cc>
-
Stefan Roese authored
Move arch/arm/include/asm/arch-armada-xp/* -> arch/arm/mach-mvebu/include/mach/* Additionally the SYS_SOC is renamed from "armada-xp" to "mvebu". With this change all these files can better be shared with other, newer Mavell MVEBU SoC's. Like the upcoming Armada 38x support. Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Masahiro Yamada <yamada.masahiro@socionext.com> Tested-by:
Kevin Smith <kevin.smith@elecsyscorp.com> Tested-by:
Dirk Eibach <dirk.eibach@gdsys.cc>
-
Stefan Roese authored
Move arch/arm/cpu/armv7armada-xp/* -> arch/arm/mach-mvebu/* Since this platform will be extended to support other Marvell SoC's as well, lets rename it directly to mvebu. This will be used by the upcoming Armada 38x suport (A38x). Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Masahiro Yamada <yamada.masahiro@socionext.com> Tested-by:
Kevin Smith <kevin.smith@elecsyscorp.com> Tested-by:
Dirk Eibach <dirk.eibach@gdsys.cc>
-
git://git.denx.de/u-boot-mmcTom Rini authored
-
git://git.denx.de/u-boot-armTom Rini authored
-
Marek Vasut authored
The get_timer_us() function is something which is no longer existing in case we use generic timer framework, so replace it with get_timer(). Signed-off-by:
Marek Vasut <marex@denx.de> Cc: Stephen Warren <swarren@wwwdotorg.org> Cc: Tyler Baker <tyler.baker@linaro.org>
-
Simon Glass authored
If the mmc device is non-removable (as indicated by the device tree), set the flag so that users of the device know. Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Joe Hershberger <joe.hershberger@ni.com>
-
Alexander Stein authored
We need to clear the allocated memory explicitly as the included struct sdhci_host has function pointers. Those are compared to NULL to test if this (optional) feature is supported. Leaving them undefined let u-boot jump to arbitrary memory. Signed-off-by:
Alexander Stein <alexanders83@web.de>
-
Yangbo Lu authored
Freescale eMMC44 adapter card uses Micron N2M400FDB311A3CF eMMC memory. According to the silicon datasheet, secure erase timeout is 600ms. So increase erase timeout value from 250ms to 600ms. Signed-off-by:
Yangbo Lu <yangbo.lu@freescale.com> Cc: York Sun <yorksun@freescale.com>
-
Kevin Liu authored
Timeout interrupt also work for response busy command(R1b) like cmd38/cmd6. So need to set it accordingly. Current code only set timeout for data command. Signed-off-by:
Kevin Liu <kliu5@marvell.com> Signed-off-by:
Rob Herring <robh@kernel.org> Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
-
Rob Herring authored
High capacity support is not a host capability, but a device capability that is queried via the OCR. The flag in the operating conditions request argument can just be set unconditionally. This matches the Linux implementation. [panto] Hand merged and renumbering MMC_MODE_DDR_52MHz. Signed-off-by:
Rob Herring <robh@kernel.org> Signed-off-by:
Pantelis Antoniou <pantelis.antoniou@konsulko.com> Cc: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
-
Andrew Gabbasov authored
Starting part of device initialization sets the init_in_progress flag only if the MMC card did not yet come to ready state and needs to continue polling. If the card is SD or if the MMC card became ready quickly, the flag is not set and (if using pre-initialization) the starting phase will be re-executed from mmc_init function. Set the init_in_progress flag in all non-error cases. Also, move flags setting statements around so that the flags are not set in error paths. Also, IN_PROGRESS return status becomes unnecessary, so get rid of it. Signed-off-by:
Andrew Gabbasov <andrew_gabbasov@mentor.com>
-
Andrew Gabbasov authored
The polling loops in sd_send_op_cond and mmc_complete_op_cond functions check the ready flag state at the end of the loop, that is after executing a delay inside the loop, which, in case of exiting with no error, is not needed. Also, one of these loops, as well as the loop in mmc_send_status, have the delay just before exiting on timeout conditions. Restructure all these loops to check the respective conditions before making a delay for the next loop pass, and to appropriately exit without the delay. Signed-off-by:
Andrew Gabbasov <andrew_gabbasov@mentor.com>
-
Andrew Gabbasov authored
Some MMC cards come to ready state quite quickly, so that the respective flag appears to be set in mmc_send_op_cond already. In this case trying to continue polling the card with CMD1 in mmc_complete_op_cond is incorrect and may lead to unpredictable results. So check the flag before polling and skip it appropriately. Signed-off-by:
Andrew Gabbasov <andrew_gabbasov@mentor.com>
-
Andrew Gabbasov authored
The previous change to use 'ocr' structure field for storing send_op_cond command response also stopped using command response directly outside of mmc_send_op_cond_iter(). Now it becomes possible to use command structure in mmc_send_op_cond_iter() locally, removing a necessity to pass it as an argument from the caller. Signed-off-by:
Andrew Gabbasov <andrew_gabbasov@mentor.com>
-
Andrew Gabbasov authored
The 'op_cond_response' field in mmc structure contains the response from the last SEND_OP_COND MMC command while making iterational polling of the card. Later it is copied to 'ocr' field, designed to contain the OCR register value, which is actually the same response from the same command. So, these fields have actually the same data, just in different time periods. It's easier to use the same 'ocr' field in both cases at once, without temporary using of the 'op_cond_response' field. Signed-off-by:
Andrew Gabbasov <andrew_gabbasov@mentor.com>
-
Andrew Gabbasov authored
The version flag constant name used in IS_MMC macro is incorrect/undefined. Signed-off-by:
Andrew Gabbasov <andrew_gabbasov@mentor.com>
-
Albert ARIBAUD authored
-
- May 04, 2015
-
-
git://git.denx.de/u-boot-sunxiTom Rini authored
-
Hans de Goede authored
Once we add support for the ohci controller the phy-init and phy-power-on functions may be called twice (once by the ehci code and once by the ohci code) protect them against this. Signed-off-by:
Hans de Goede <hdegoede@redhat.com> Acked-by:
Ian Campbell <ijc@hellion.org.uk>
-
Hans de Goede authored
The 2/3 usb-phys on the sunxi SoCs are really a single separate functional block, and are modelled as such in devicetree. So once we've moved all the sunxi usb code to the driver-model then phy_probe will be called once for the entire block from the driver-model enumeration code. Move to this now as this also avoids problems with phy_probe being called multiple times once we introduce ohci support. This also allows us to get rid of the sunxi_usb_phy_enabled_count variable as phy_probe now is guaranteed to be called only once. Since we're effectively rewriting the probe / remove functions, move them to the end of the file while we are at it, as that is the most logical place for them. Signed-off-by:
Hans de Goede <hdegoede@redhat.com> Acked-by:
Ian Campbell <ijc@hellion.org.uk>
-
Hans de Goede authored
The usbc.? files now only contain usb-phy related code, rename them to make this clear. Signed-off-by:
Hans de Goede <hdegoede@redhat.com> Acked-by:
Ian Campbell <ijc@hellion.org.uk>
-
Hans de Goede authored
Rename the sunxi_usbc_foo functions to sunxi_usb_phy_bar to make it clear that these are usb-phy functions. Also change the verbs & nouns in the suffix to match the verbs & nouns used in the Linux kernels generic phy framework. This patch purely renames things, it contains no functional changes. Signed-off-by:
Hans de Goede <hdegoede@redhat.com> Acked-by:
Ian Campbell <ijc@hellion.org.uk>
-
Hans de Goede authored
This is the only function left in sunxi/usbc.c which is not phy related, so remove it. This is a preparation patch for turning the usbc.c code into a proper usb phy driver. Signed-off-by:
Hans de Goede <hdegoede@redhat.com> Acked-by:
Ian Campbell <ijc@hellion.org.uk>
-
Hans de Goede authored
The sunxi "usbc" code is mostly about phy setup, but currently also sets up the host controller clocks, which is something which really belongs in the host controller drivers, so move it there. This is a preparation patch for moving the sunxi ehci code to the driver model and for adding ohci support. Signed-off-by:
Hans de Goede <hdegoede@redhat.com> Acked-by:
Ian Campbell <ijc@hellion.org.uk>
-
Hans de Goede authored
Now that all sunxi boards are using driver-model for gpio (*), we can remove the non driver-model support from the axp gpio code, and the glue to call into the axp gpio code from the sunxi_gpio non driver-model code. *) For the regular u-boot build, SPL still uses non driver-model gpio for now, but the SPL never uses axp gpios support and we were already not building axp-gpio support for the SPL. Signed-off-by:
Hans de Goede <hdegoede@redhat.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Acked-by:
Ian Campbell <ijc@hellion.org.uk>
-
Hans de Goede authored
All sunxi boards now use the driver-model, so remove the non driver-model code. Signed-off-by:
Hans de Goede <hdegoede@redhat.com> Reviewed-by:
Simon Glass <sjg@chromium.org> Acked-by:
Ian Campbell <ijc@hellion.org.uk>
-