1. 08 7月, 2021 5 次提交
    • T
      ppc: Remove T4160RDB board · ec6b37ce
      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>
      ec6b37ce
    • T
      ppc: Remove sbc8641d board · 1c58857a
      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>
      1c58857a
    • T
      ppc: Remove xpedite boards · ed7fe2be
      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>
      ed7fe2be
    • T
      ppc: Remove MPC8555CDS boards · 98898601
      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>
      98898601
    • T
      ppc: Remove MPC8541CDS board · a8571337
      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>
      a8571337
  2. 07 7月, 2021 1 次提交
    • T
      ARM: mvebu: a38x: Correct mismatched bound warnings · 12e3547f
      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>
      12e3547f
  3. 10 4月, 2021 1 次提交
  4. 08 4月, 2021 1 次提交
  5. 12 3月, 2021 5 次提交
    • P
      arm: mvebu: a38x: Remove dead code ARMADA_39X · 15942805
      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>
      15942805
    • M
      ddr: marvell: axp: fix array types have different bounds warning · 74f4929c
      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>
      74f4929c
    • M
      ddr: marvell: axp: align signature of mv_xor_mem_init() with a38x · e5b3e87d
      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>
      e5b3e87d
    • P
      ddr: marvell: a38x: Sync code with Marvell mv-ddr-marvell repository · 107c3391
      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>
      107c3391
    • S
      ddr: marvell: a38x: Add more space for additional info from SPD · a5fc0990
      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>
      a5fc0990
  6. 08 3月, 2021 1 次提交
  7. 26 2月, 2021 18 次提交
  8. 25 2月, 2021 1 次提交
  9. 21 2月, 2021 1 次提交
    • I
      dm: i2c: use CONFIG_IS_ENABLED macro for DM_I2C/DM_I2C_GPIO · 2147a169
      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>
      2147a169
  10. 03 2月, 2021 1 次提交
    • S
      common: Drop asm/global_data.h from common header · 401d1c4f
      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>
      401d1c4f
  11. 23 1月, 2021 1 次提交
  12. 06 1月, 2021 1 次提交
  13. 14 12月, 2020 3 次提交