- Jan 22, 2015
-
- Jan 21, 2015
-
-
Hans de Goede authored
2 recent sunxi changes have removed the usage of lowlevel_init by moving some code around and then setting CONFIG_SKIP_LOWLEVEL_INIT. This is problematic for 2 reasons: 1) It does not just stop s_init from being called, it also stops cpu_init_cp15 from getting called, which is undesirable. 2) We want u-boot.bin to be usable standalone, without SPL, some people e.g. use an upstream u-boot.bin together with Allwinner's boot0 loader. So u-boot.bin must (re)initialize the gpios, timer, etc. This commit restores the lowlevel_init / s_init usage, while keeping the changes to no longer use the global-data (gd) struct in the SPL. Signed-off-by:
Hans de Goede <hdegoede@redhat.com>
-
Michal Simek authored
phys_addr_t is designed for physical addresses that's why use it. Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-
Michal Simek authored
This patch fix the compilation warning w+../drivers/net/xilinx_ll_temac.c: In function 'll_temac_init': w+../drivers/net/xilinx_ll_temac.c:235:3: warning: format '%X' expects argument of type 'unsigned int', but argument 4 has type 'phys_addr_t' [-Wformat] introduced by "net: Declare physical address as phys_addr_t unsigned type" (sha1: 16ae7827). Reported-by:
Tom Rini <trini@ti.com> Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-
Michal Simek authored
Use phys_addr_t for physical address declaration. It is also unsigned type instead of sign. Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-
Siva Durga Prasad Paladugu authored
Added support for zc7035 Signed-off-by:
Siva Durga Prasad Paladugu <sivadur@xilinx.com> Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-
Michal Simek authored
Show fpga_op->info even if desc->iface_fns is not defined. Signed-off-by:
Michal Simek <michal.simek@xilinx.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Michal Simek authored
Ensure that operations are correctly setup. Signed-off-by:
Michal Simek <michal.simek@xilinx.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Michal Simek authored
Set fpga operations to NULL for cases where FPGA is setup in board file but driver is not added Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-
Michal Simek authored
No functional changes. Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-
Michal Simek authored
Set fpga operations to NULL for cases where FPGA is setup in board file but driver is not added Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-
Michal Simek authored
Set fpga operations to NULL for cases where FPGA is setup in board file but driver is not added. Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-
Michal Simek authored
Set fpga operations to NULL for cases where FPGA is setup in board file but driver is not added. Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-
Michal Simek authored
SPL needs to detect FPGA device which will be used for loading bitstream. Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-
Michal Simek authored
This problem is reported by checkpatch.pl Warnings: CHECK: extern prototypes should be avoided in .h files Signed-off-by:
Michal Simek <michal.simek@xilinx.com>
-
Michal Simek authored
For case where CMD_FPGA_LOADMK is enabled and GZIP disable. Warning log: common/built-in.o: In function `do_fpga': /mnt/disk/u-boot/common/cmd_fpga.c:218: undefined reference to `gunzip' Signed-off-by:
Michal Simek <michal.simek@xilinx.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
- Jan 20, 2015
-
-
git://git.denx.de/u-boot-arcTom Rini authored
-
git://git.denx.de/u-boot-mmcTom Rini authored
-
git://git.denx.de/u-boot-usbTom Rini authored
-
Sinan Akman authored
Signed-off-by:
Sinan Akman <sinan@writeme.com> Cc: Tom Rini <trini@ti.com>
-
Sinan Akman authored
Signed-off-by:
Sinan Akman <sinan@writeme.com> Cc: kim.phillips@freescale.com
-
Simon Glass authored
The global_data pointer (gd) has already been set before board_init_f() is called. We should not assign it again. We should also not use gdata since it is going away. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
The global_data pointer (gd) has already been set before board_init_f() is called. We should not assign it again. We should also not use gdata since it is going away. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Stefano Babic <sbabic@denx.de>
-
Simon Glass authored
The global_data pointer (gd) has already been set before board_init_f() is called. We should not assign it again. We should also not use gdata since it is going away. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Igor Grinberg <grinberg@compulab.co.il> Tested-by:
Nikita Kiryanov <nikita@compulab.co.il> Acked-by:
Nikita Kiryanov <nikita@compulab.co.il>
-
Simon Glass authored
The global_data pointer (gd) has already been set before board_init_f() is called. We should not assign it again. We should also not use gdata since it is going away. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Jan 19, 2015
-
-
Andrew Gabbasov authored
Wider bus widths (larger than default 1 bit) appeared in MMC standard version 4.0. So, for MMC cards of any earlier version trying to change the bus width (including ext_csd comparison) does not make any sense. It may work incorrectly and at least cause unnecessary timeouts. So, just skip the entire bus width related activity for earlier versions. Signed-off-by:
Andrew Gabbasov <andrew_gabbasov@mentor.com> Tested-by:
Alexey Brodkin <abrodkin@synopsys.com>
-
Andrew Gabbasov authored
If all the commands switching an MMC card to 4- or 8-bit bus width fail, and the bus width for the controller and the driver is still set to default 1 bit, there is no need to send one more command to switch the card to 1-bit bus width. Also, if the card or host controller do not support wider bus widths, there is no need to send a switch command at all. However, if one of switch commands succeeds, but the subsequent ext_csd fields comparison fails, the card should be switched to some other bus width (next in the list for the loop), or to default 1-bit bus width as a last resort. That's why it would be incorrect to just remove the 1-bit bus width case from the list, it should still be processed in some cases. panto: Minor cosmetic edit removing superfluous parentheses. Signed-off-by:
Andrew Gabbasov <andrew_gabbasov@mentor.com> Tested-by:
Alexey Brodkin <abrodkin@synopsys.com> Signed-off-by:
Pantelis Antoniou <pantelis.antoniou@konsulko.com>
-
Diego Santa Cruz authored
This extends the mmcinfo hardware partition info output to show partitions with write reliability enabled with the "WRREL" string. If the partition does not have write reliability enabled the "WRREL" string is omitted; this is analogous to the ehhanced attribute. Example output: Device: OMAP SD/MMC Manufacturer ID: fe OEM: 14e Name: MMC16 Tran Speed: 52000000 Rd Block Len: 512 MMC version 4.41 High Capacity: Yes Capacity: 13.8 GiB Bus Width: 4-bit Erase Group Size: 8 MiB HC WP Group Size: 16 MiB User Capacity: 13.8 GiB ENH WRREL User Enhanced Start: 0 Bytes User Enhanced Size: 512 MiB Boot Capacity: 16 MiB ENH RPMB Capacity: 128 KiB ENH GP1 Capacity: 64 MiB ENH WRREL GP2 Capacity: 64 MiB ENH WRREL Signed-off-by:
Diego Santa Cruz <Diego.SantaCruz@spinetix.com>
-
Diego Santa Cruz authored
This change extends the mmc hwpartition sub-command to change the per-partition write reliability settings. It also changes the syntax used for the enhanced user data area slightly to better accomodate the write reliability option. Signed-off-by:
Diego Santa Cruz <Diego.SantaCruz@spinetix.com>
-
Diego Santa Cruz authored
The eMMC partition write reliability settings are to be set while partitioning a device, as per the eMMC spec, so changes to these attributes needs to be done in the hardware partitioning API. This commit adds such support. Signed-off-by:
Diego Santa Cruz <Diego.SantaCruz@spinetix.com>
-
Diego Santa Cruz authored
Adds the mmc hwpartition sub-command to perform eMMC hardware partitioning on an mmc device. The number of arguments can be large for a complex partitioning, but as the partitioning has to be done in one go it is difficult to make it simpler. Signed-off-by:
Diego Santa Cruz <Diego.SantaCruz@spinetix.com>
-
Diego Santa Cruz authored
This adds an API to do hardware partitioning on eMMC devices. The new mmc_hwpart_config() function does the partitioning in one go. As the different attributes and partitioning options on eMMC may be interdependent validation has to be done based on the complete partitioning configuration. The function accepts three modes: - MMC_HWPART_CONF_CHECK: just validates that the configuration is valid. - MMC_HWPART_CONF_SET: validates and sets all the fields in EXT_CSD but without setting the "partitioning completed" bit, and thus is reversible. - MMC_HWPART_CONF_COMPLETE: does everything and is thus not reversible. Signed-off-by:
Diego Santa Cruz <Diego.SantaCruz@spinetix.com>
-
Diego Santa Cruz authored
The mmc_startup() function uses the ext_csd data even if reading it from the mmc device failed. This bug was introduced in commit bc897b1d. We now bail out if reading it fails, this should not be a problem as ext_csd was introduced in MMC 4.0 and this code is conditional on MMC >= 4.0. Signed-off-by:
Diego Santa Cruz <Diego.SantaCruz@spinetix.com>
-
Diego Santa Cruz authored
The eMMC spec says that partitioning is only effective after the PARTITION_SETTING_COMPLETED is set in EXT_CSD (and a power cycle was done, but that we cannot know). Thus the partition sizes and attributes should be ignored when that bit is not set, otherwise the various capacities are not coherent (e.g., the user data capacity will be that of the unpartitioned device while partition sizes would be non-zero). Prescence of non-zero partitioning data is nevertheless still used to activate the high-capacity size definitions (EXT_CSD_ERASE_GROUP_DEF) as it is necessary to set that to write any of the partitioning fields in EXT_CSD, so having partitioning data means someone previously activated that and we should keep it activated. Signed-off-by:
Diego Santa Cruz <Diego.SantaCruz@spinetix.com>
-
Diego Santa Cruz authored
This adds the erase group size and high-capacity WP group size to mmcinfo's output. The erase group size is necessary to properly align erase requests on eMMC. The high-capacity WP group size is necessary to properly align partitions on eMMC. Signed-off-by:
Diego Santa Cruz <Diego.SantaCruz@spinetix.com>
-
Diego Santa Cruz authored
Read the eMMC high capacity write protect group size at mmc device initialization. This is useful to correctly partition an eMMC device, as partitions need to be aligned to this size. Signed-off-by:
Diego Santa Cruz <Diego.SantaCruz@spinetix.com>
-
Diego Santa Cruz authored
The erase_grp_size in struct mmc is to be a size in 512-byte sectors but the code used to compute it for eMMC when EXT_CSD_ERASE_GROUP_DEF is enabled computed it as bytes, leading to erase sizes and alignment much larger than what is actually required by the mmc device. Signed-off-by:
Diego Santa Cruz <Diego.SantaCruz@spinetix.com>
-
Diego Santa Cruz authored
This adds output to show the eMMC enhanced user data area size and offset along with the partition sizes in mmcinfo's output. Signed-off-by:
Diego Santa Cruz <Diego.SantaCruz@spinetix.com>
-
Diego Santa Cruz authored
This modification reads the size of the eMMC enhanced user data area upon initialization of an mmc device, it will be used later by mmcinfo. Signed-off-by:
Diego Santa Cruz <Diego.SantaCruz@spinetix.com>
-