- 08 7月, 2021 5 次提交
-
-
由 Tom Rini 提交于
This board has not been converted to CONFIG_DM_PCI by the deadline and is also missing conversion to CONFIG_DM. Remove it. As this is the last ARCH_T4160 platform, remove that support as well. Signed-off-by: NTom Rini <trini@konsulko.com>
-
由 Tom Rini 提交于
This board has not been converted to CONFIG_DM_PCI by the deadline and is also missing conversion to CONFIG_DM. Remove it. This is also the last of the ARCH_MPC8641/MPC8610 platforms, so remove that support as well. Cc: Paul Gortmaker <paul.gortmaker@windriver.com> Cc: Priyanka Jain <priyanka.jain@nxp.com> Signed-off-by: NTom Rini <trini@konsulko.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Tom Rini 提交于
These boards have not been converted to CONFIG_DM_PCI by the deadline and is also missing conversion to CONFIG_DM. Remove them. As this includes the last ARCH_MPC8572 platform, remove that as well. Cc: Peter Tyser <ptyser@xes-inc.com> Signed-off-by: NTom Rini <trini@konsulko.com> Acked-by: NPeter Tyser <ptyser@xes-inc.com>
-
由 Tom Rini 提交于
These boards have not been converted to CONFIG_DM_PCI by the deadline and is also missing conversion to CONFIG_DM. Remove them. As this is the only ARCH_MPC8555 platform left, remove that support as well. Cc: Priyanka Jain <priyanka.jain@nxp.com> Signed-off-by: NTom Rini <trini@konsulko.com>
-
由 Tom Rini 提交于
This board has not been converted to CONFIG_DM_PCI by the deadline and is also missing conversion to CONFIG_DM. Remove it. As this is the only MPC8541 target left, remove that architecture support as well. Cc: Priyanka Jain <priyanka.jain@nxp.com> Signed-off-by: NTom Rini <trini@konsulko.com>
-
- 07 7月, 2021 1 次提交
-
-
由 Tom Rini 提交于
With gcc-11 we see: drivers/ddr/marvell/a38x/ddr3_debug.c:672:47: error: argument 2 of type 'u32[5]' {aka 'unsigned int[5]'} with mismatched bound [-Werror=array-parameter=] 672 | int ddr3_tip_read_adll_value(u32 dev_num, u32 pup_values[MAX_INTERFACE_NUM * MAX_BUS_NUM], | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/ddr/marvell/a38x/ddr3_training_ip_engine.h:10, from drivers/ddr/marvell/a38x/ddr3_init.h:17, from drivers/ddr/marvell/a38x/ddr3_debug.c:6: drivers/ddr/marvell/a38x/ddr3_training_ip_flow.h:116:47: note: previously declared as 'u32[]' {aka 'unsigned int[]'} And similar warnings. Correct these by updating the prototype. Remove the prototype for ddr3_tip_read_pup_value as it is unused. Signed-off-by: NTom Rini <trini@konsulko.com>
-
- 10 4月, 2021 1 次提交
-
-
由 Tom Rini 提交于
These boards have not been converted to CONFIG_DM_MMC by the deadline. Remove them. As the P5020 is the last ARCH_P5020 platform, remove that support as well. Cc: Andy Fleming <afleming@gmail.com> Cc: Priyanka Jain <priyanka.jain@nxp.com> Signed-off-by: NTom Rini <trini@konsulko.com> Reviewed-by: NPriyanka Jain <priyanka.jain@nxp.com>
-
- 08 4月, 2021 1 次提交
-
-
由 haidong.zheng 提交于
VDD SOC normal run changed to 0.85V LPDDR4 freq0 change from 4000MTS to 2400MTS Signed-off-by: Nhaidong.zheng <haidong.zheng@nxp.com> Signed-off-by: NPeng Fan <peng.fan@nxp.com>
-
- 12 3月, 2021 5 次提交
-
-
由 Pali Rohár 提交于
Config option ARMADA_39X is never set so remove all dead code hidden under ifdef CONFIG_ARMADA_39X blocks. Also remove useless checks for CONFIG_ARMADA_38X define as this macro is always defined for a38x code path. Signed-off-by: NPali Rohár <pali@kernel.org> Reviewed-by: NStefan Roese <sr@denx.de>
-
由 Marek Behún 提交于
The arrays `pbs_dq_mapping`, `div_ratio1to1` and `div_ratio2to1` have different bounds declared in header files where these variables are also defined from the ones declared in source files. This causes the compiler to complain (when building with LTO): ddr3_sdram.c:24:12: warning: type of ‘pbs_dq_mapping’ does not match original declaration [-Wlto-type-mismatch] ddr3_patterns_64bit.h:911:5: note: array types have different bounds ddr3_patterns_64bit.h:911:5: note: ‘pbs_dq_mapping’ was previously declared here ddr3_dfs.c:45:11: warning: type of ‘div_ratio1to1’ does not match original declaration [-Wlto-type-mismatch] ddr3_axp_vars.h:167:4: note: array types have different bounds ddr3_axp_vars.h:167:4: note: ‘div_ratio1to1’ was previously declared here ddr3_dfs.c:46:11: warning: type of ‘div_ratio2to1’ does not match original declaration [-Wlto-type-mismatch] ddr3_axp_vars.h:196:4: note: array types have different bounds ddr3_axp_vars.h:196:4: note: ‘div_ratio2to1’ was previously declared here CI managed to trigger this as an error when compiling with LTO for AXP. Fix this by using values from the header files, which seem to be the correct ones. Signed-off-by: NMarek Behún <marek.behun@nic.cz>
-
由 Marek Behún 提交于
In arch/arm/mach-mvebu/dram.c we always include axp's xor.h for common XOR definitions, regardless whether we compile for axp or a38x. But the declaration of this function has a different signature in axp's xor.h from the one used in a38x' implementation - one parameter is u64 instead of u32. This can result in wrong argument's being passed to that function on a38x with no one the wiser. I discovered this when building U-Boot for Turris Omnia with LTO. The compiler complains about the different signatures being thrown into the same linking process: axp/xor.h:67:5: warning: type of ‘mv_xor_mem_init’ does not match original declaration [-Wlto-type-mismatch] 67 | int mv_xor_mem_init(u32 chan, u32 start_ptr, u32 block_size, | ^ a38x/xor.c:165:5: note: type mismatch in parameter 3 165 | int mv_xor_mem_init(u32 chan, u32 start_ptr, unsigned long long | ^ a38x/xor.c:165:5: note: type ‘long long unsigned int’ should match type ‘u32’ Fix this by changing the type of the block_size argument in the axp's implementation and header file to the one used in a38x (and upstream mv-ddr-marvell). Signed-off-by: NMarek Behún <marek.behun@nic.cz> Reviewed-by: NStefan Roese <sr@denx.de>
-
由 Pali Rohár 提交于
This syncs drivers/ddr/marvell/a38x/ with the master branch of repository https://github.com/MarvellEmbeddedProcessors/mv-ddr-marvell.git up to the commit 7c351731d196 ("Merge pull request #29 from pali/sync-a38x-uboot"). This patch was created by following steps: 1. Replace all a38x files in U-Boot tree by files from upstream github Marvell mv-ddr-marvell repository. 2. Run following command to omit portions not relevant for a38x and ddr3: files=drivers/ddr/marvell/a38x/* sed 's/#if defined(CONFIG_ARMADA_38X) || defined(CONFIG_ARMADA_39X)/#ifdef TRUE/' -i $files unifdef -m -UMV_DDR -UMV_DDR_ATF -UCONFIG_DDR4 -UCONFIG_APN806 \ -UCONFIG_MC_STATIC -UCONFIG_MC_STATIC_PRINT -UCONFIG_PHY_STATIC \ -UCONFIG_PHY_STATIC_PRINT -UCONFIG_CUSTOMER_BOARD_SUPPORT \ -UCONFIG_A3700 -UA3900 -UA80X0 -UA70X0 -DTRUE $files 3. Manually omit SPDX-License-Identifier changes from this patch as upstream license in upstream github repository contains long license texts and U-Boot is using just SPDX-License-Identifier. After applying this patch, a38x ddr3 code in upstream Marvell github repository and in U-Boot would be fully identical. So in future applying above steps could be used to sync code again. The only change in this patch is removal of dead code and some fixes with include files. Signed-off-by: NPali Rohár <pali@kernel.org> Tested-by: NChris Packham <judge.packham@gmail.com> Reviewed-by: NStefan Roese <sr@denx.de>
-
由 Sujeet Baranwal 提交于
commit 258be123226f8f5cd516b7813fe201fb7d7416e9 upstream. At this moment, only page 0 of SPD is being read but to support smbios, we need to read page 1 also which has more info. In order to do that, we need to allocate more space. Signed-off-by: NSujeet Baranwal <sujeet.baranwal@cavium.com> Tested-by: Nsa_ip-sw-jenkins <sa_ip-sw-jenkins@marvell.com> Reviewed-by: NSujeet Kumar Baranwal <Sujeet.Baranwal@cavium.com> Reviewed-by: NNadav Haklai <nadavh@marvell.com> Signed-off-by: NMarek Behún <marek.behun@nic.cz> Tested-by: NChris Packham <judge.packham@gmail.com>
-
- 08 3月, 2021 1 次提交
-
-
由 Siew Chin Lim 提交于
Create common macro TARGET_SOCFPGA_SOC64 for Stratix10 and Agilex. Signed-off-by: NSiew Chin Lim <elly.siew.chin.lim@intel.com>
-
- 26 2月, 2021 18 次提交
-
-
由 Marek Behún 提交于
The code was processed with unifdef utility to omit portions not relevant to A38x and DDR3. This removes usage of many macros, including A70X0, A80X0 and A3900. It seems that the unifdef utility did not remove the macros from #else comment. Signed-off-by: NMarek Behún <marek.behun@nic.cz> Tested-by: NChris Packham <chris.packham@alliedtelesis.co.nz>
-
由 Marek Behún 提交于
Bump version of a38x DDR3 trianing to version 14.0.0 to reflect the version in the mv-ddr-devel branch of upstream repository https://github.com/MarvellEmbeddedProcessors/mv-ddr-marvell.git. There is a new version numbering system, where after 18.12.0 came 1.0.0, 2.0.0, and so on until 14.0.0. So 14.0.0 is newer than 18.12.0. Signed-off-by: NMarek Behún <marek.behun@nic.cz> Tested-by: NChris Packham <chris.packham@alliedtelesis.co.nz>
-
由 heaterC 提交于
commit 56db5d1464b44df10a02b99e615ebd6f6a35c428 upstream. @pali suggested this change In commit 6285efb ("mv_ddr: add support for twin-die combined memory device") was added support for twin-die combined memory device and default value for explicitly uninitialized structure members is zero, s also twin_die_combined is initialized to zero. Which means COMBINED value. As prior this commit there was no support for twin-die combined memory device, default value for twin_die_combined should be NOT_COMBINED. This change change order of enum mv_ddr_twin_die to ensure that NOT_COMBINED has value zero. Signed-off-by: NheaterC <airyguy@gmx.de> Signed-off-by: NMarek Behún <marek.behun@nic.cz> Tested-by: NChris Packham <chris.packham@alliedtelesis.co.nz>
-
由 Marek Behún 提交于
commit 2bdd12dd68b1f8e27a03a3443ae49a09a14c18e4 upstream. The commit mentioned above changes non-DDR3 stuff in upstream, but it also changes code in ddr3_training.c. Import this change to remain consistent with upstream. Signed-off-by: NMarek Behún <marek.behun@nic.cz> Tested-by: NChris Packham <chris.packham@alliedtelesis.co.nz>
-
由 Moti Buskila 提交于
commit c8b301463d508c807a33f7b7eaea98bbda4aa35e upstream. The funtion returnd cs size in byte instead of MB, that cause calculation error since the caller was expected to get u32 and when he got above 4G it refers it as 0. The fix was to get the cs memory size from function as in MB and then multiply it by 1MB. Signed-off-by: NMoti Buskila <motib@marvell.com> Reviewed-by: NKostya Porotchkin <kostap@marvell.com> Signed-off-by: NMarek Behún <marek.behun@nic.cz> Tested-by: NChris Packham <chris.packham@alliedtelesis.co.nz>
-
由 Marek Behún 提交于
commit d653b305d0b3da9727c49124683f1a6d95d5c9a5 upstream. The commit mentioned above changes non-DDR3 stuff in upstream, but it also changes header ddr_topology_def.h. Import this header change to remain consistent with upstream. Signed-off-by: NMarek Behún <marek.behun@nic.cz> Tested-by: NChris Packham <chris.packham@alliedtelesis.co.nz>
-
由 Moti Buskila 提交于
commit 20c89a28548cdab11f88d2ec8936344af0686a1e upstream. WL phase correcion stage is failing while using bus_width of 16bit, not to be fix this stage is un-necessary when working with bus_width of 16 bit. Signed-off-by: NMoti Buskila <motib@marvell.com> Reviewed-by: NKostya Porotchkin <kostap@marvell.com> Signed-off-by: NMarek Behún <marek.behun@nic.cz> Tested-by: NChris Packham <chris.packham@alliedtelesis.co.nz>
-
由 Moti Buskila 提交于
commit 6285efb8a118940877522c4c07bd7c64569b4f5f upstream. the twin-die combined memory device should be treatened as X8 device and not as X16 one Signed-off-by: NMoti Buskila <motib@marvell.com> Reviewed-by: NKostya Porotchkin <kostap@marvell.com> [ - the default value for twin_die_combined is set to NOT_COMBINED for all boards, as this was default behaviour prior this change ] Signed-off-by: NMarek Behún <marek.behun@nic.cz> Tested-by: NChris Packham <chris.packham@alliedtelesis.co.nz>
-
由 Moti Buskila 提交于
commit 994509eb4fe6771d92cd06314c37895098ac48fa upstream. Signed-off-by: NMoti Buskila <motib@marvell.com> Reviewed-by: NKostya Porotchkin <kostap@marvell.com> Signed-off-by: NMarek Behún <marek.behun@nic.cz> Tested-by: NChris Packham <chris.packham@alliedtelesis.co.nz>
-
由 Baruch Siach 提交于
commit 2d3b9437cf38c06c4330e0de07f29476197f5e04 upstream. The ODT enable heuristic based on active chip-selects is not always correct. Some board might use two chip-selects, but have only one ODT line connected. Allow board specific mv_ddr_topology_map to directly set the ODT configuration register value. Signed-off-by: NBaruch Siach <baruch@tkos.co.il> Reviewed-by: NMoti Buskila <motib@marvell.com> Reviewed-by: NNadav Haklai <Nadav.Haklai@cavium.com> Reviewed-by: NKostya Porotchkin <Kostya.Porotchkin@cavium.com> Signed-off-by: NMarek Behún <marek.behun@nic.cz> Tested-by: NChris Packham <chris.packham@alliedtelesis.co.nz>
-
由 Marek Behún 提交于
commit 3908e20c6c520339e9bddb566823ae5e065d5218 upstream. The commit mentioned above changes non-DDR3 stuff in upstream, but it also changes header ddr_topology_def.h. Import this header change to remain consistent with upstream. Signed-off-by: NMarek Behún <marek.behun@nic.cz> Tested-by: NChris Packham <chris.packham@alliedtelesis.co.nz>
-
由 Moti Buskila 提交于
commit ab9240402a70cc02496683971779e75eff410ab4 upstream. - function mv_ddr_spd_die_capacity_user_get() has a bug, since it insert a user memory enum to it, instead of SPD memory enum (which are different) - fix: remove mv_ddr_spd_die_capacity_user_get() function. - memory size with 64 and 32 bit already calculated correctly at mv_ddr_mem_sz_per_cs_get() function Signed-off-by: NMoti Buskila <motib@marvell.com> Reviewed-by: NStefan Chulski <Stefan.Chulski@cavium.com> Reviewed-by: NAlex Leibovich <alexl@marvell.com> Reviewed-by: NKostya Porotchkin <Kostya.Porotchkin@cavium.com> Signed-off-by: NMarek Behún <marek.behun@nic.cz> Tested-by: NChris Packham <chris.packham@alliedtelesis.co.nz>
-
由 Moti Buskila 提交于
commit 0b5adedd4ced9b8f528faad1957d4d69e95759ef upstream. Signed-off-by: NMoti Buskila <motib@marvell.com> Reviewed-by: NAlex Leibovich <alexl@marvell.com> Reviewed-by: NKostya Porotchkin <Kostya.Porotchkin@cavium.com> Signed-off-by: NMarek Behún <marek.behun@nic.cz> Tested-by: NChris Packham <chris.packham@alliedtelesis.co.nz>
-
由 Marek Behún 提交于
commit 6c705ebc0d70f67ed7cae83ad1978c3305ef25be upstream. The commit mentioned above changes non-DDR3 stuff in upstream, but it also changes header mv_ddr_topology.h. Import this header change to remain consistent with upstream. Signed-off-by: NMarek Behún <marek.behun@nic.cz> Tested-by: NChris Packham <chris.packham@alliedtelesis.co.nz>
-
由 Alex Leibovich 提交于
commit 61a8910998d7b553e80f600ebe8147a8b98f0945 upstream. Required changes made for 32bit ddr support. An update is made to the topology map, according to bus_act_mask, set in the dram_port.c Signed-off-by: NAlex Leibovich <alexl@marvell.com> Reviewed-by: NKostya Porotchkin <Kostya.Porotchkin@cavium.com> Signed-off-by: NMarek Behún <marek.behun@nic.cz> Tested-by: NChris Packham <chris.packham@alliedtelesis.co.nz>
-
由 Alex Leibovich 提交于
commit 32800667b375ebd1f82120da0f3479b1cf52d96d upstream. Required changes made for 32bit ddr support. An update is made to the topology map, according to bus_act_mask, set in the dram_port.c Signed-off-by: NAlex Leibovich <alexl@marvell.com> Reviewed-by: NNadav Haklai <Nadav.Haklai@cavium.com> Reviewed-by: NKostya Porotchkin <Kostya.Porotchkin@cavium.com> Signed-off-by: NMarek Behún <marek.behun@nic.cz> Tested-by: NChris Packham <chris.packham@alliedtelesis.co.nz>
-
由 Marek Behún 提交于
commit a165037ec26f301be75e1fabc263643683e85255 upstream. The commit mentioned above changes non-DDR3 stuff in upstream, but it also changes header ddr_topology_def.h. Import this header change to remain consistent with upstream. Signed-off-by: NMarek Behún <marek.behun@nic.cz> Tested-by: NChris Packham <chris.packham@alliedtelesis.co.nz>
-
由 Moti Buskila 提交于
commit ce62bef8fac559e27245259882e45f19cdc293ad upstream. - fix JIRA A7K8K-5056 - remove TEST_PATTERN write at the load patern stage earlier to WL SUP stage - the WL SUP stage already writes this pattern to the memory, if the pattern exist at the memory then the algorithm will fail, since it think that there are no phase to correct Signed-off-by: NMoti Buskila <motib@marvell.com> Reviewed-by: NKostya Porotchkin <kostap@marvell.com> Signed-off-by: NMarek Behún <marek.behun@nic.cz> Tested-by: NChris Packham <chris.packham@alliedtelesis.co.nz>
-
- 25 2月, 2021 1 次提交
-
-
由 Heinrich Schuchardt 提交于
The values of left_edge[0] and right_edge[0] are overwritten before they are used. Remove the superfluous assignments. Fixes: 285b3cb9 ("dm: ddr: socfpga: fix gen5 ddr driver to not use bss") Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
- 21 2月, 2021 1 次提交
-
-
由 Igor Opaniuk 提交于
Use CONFIG_IS_ENABLED() macro, which provides more convenient way to check $(SPL)DM_I2C/$(SPL)DM_I2C_GPIO configs for both SPL and U-Boot proper. CONFIG_IS_ENABLED(DM_I2C) expands to: - 1 if CONFIG_SPL_BUILD is undefined and CONFIG_DM_I2C is set to 'y', - 1 if CONFIG_SPL_BUILD is defined and CONFIG_SPL_DM_I2C is set to 'y', - 0 otherwise. All occurences were replaced automatically using these bash cmds: $ find . -type f -exec sed -i 's/ifndef CONFIG_DM_I2C/if !CONFIG_IS_ENABLED(DM_I2C)/g' {} + $ find . -type f -exec sed -i 's/ifdef CONFIG_DM_I2C/if CONFIG_IS_ENABLED(DM_I2C)/g' {} + $ find . -type f -exec sed -i 's/defined(CONFIG_DM_I2C)/CONFIG_IS_ENABLED(DM_I2C)/g' {} + $ find . -type f -exec sed -i 's/ifndef CONFIG_DM_I2C_GPIO/if !CONFIG_IS_ENABLED(DM_I2C_GPIO)/g' {} + $ find . -type f -exec sed -i 's/ifdef CONFIG_DM_I2C_GPIO/if CONFIG_IS_ENABLED(DM_I2C_GPIO)/g' {} + $ find . -type f -exec sed -i 's/defined(CONFIG_DM_I2C_GPIO)/CONFIG_IS_ENABLED(DM_I2C_GPIO)/g' {} + Reviewed-by: NHeiko Schocher <hs@denx.de> Reviewed-by: NSimon Glass <sjg@chromium.org> Signed-off-by: NIgor Opaniuk <igor.opaniuk@foundries.io> Reviewed-by: NTom Rini <trini@konsulko.com> Reviewed-by: NPriyanka Jain <priyanka.jain@nxp.com>
-
- 03 2月, 2021 1 次提交
-
-
由 Simon Glass 提交于
Move this out of the common header and include it only where needed. In a number of cases this requires adding "struct udevice;" to avoid adding another large header or in other cases replacing / adding missing header files that had been pulled in, very indirectly. Finally, we have a few cases where we did not need to include <asm/global_data.h> at all, so remove that include. Signed-off-by: NSimon Glass <sjg@chromium.org> Signed-off-by: NTom Rini <trini@konsulko.com>
-
- 23 1月, 2021 1 次提交
-
-
由 Ye Li 提交于
When doing DDR scrub, the DDR may enter into self refresh if the selfref_en is enabled before DDR scrub. This will cause scrub can't complete that SBRSTAT.scrub_done won't be set. Since the selfref_en can be programmed during the course of normal operation, move it after DDR scrub Signed-off-by: NYe Li <ye.li@nxp.com> Acked-by: NPeng Fan <peng.fan@nxp.com> Signed-off-by: NPeng Fan <peng.fan@nxp.com>
-
- 06 1月, 2021 1 次提交
-
-
由 Simon Glass 提交于
Most drivers use these access methods but a few do not. Update them. In some cases the access is not permitted, so mark those with a FIXME tag for the maintainer to check. Signed-off-by: NSimon Glass <sjg@chromium.org> Acked-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: NPratyush Yadav <p.yadav@ti.com>
-
- 14 12月, 2020 3 次提交
-
-
由 Simon Glass 提交于
Try to maintain some consistency between these variables by using _plat as a suffix for them. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
This name is far too long. Rename it to remove the 'data' bits. This makes it consistent with the platdata->plat rename. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
We use 'priv' for private data but often use 'platdata' for platform data. We can't really use 'pdata' since that is ambiguous (it could mean private or platform data). Rename some of the latter variables to end with 'plat' for consistency. Signed-off-by: NSimon Glass <sjg@chromium.org>
-