1. 15 8月, 2018 1 次提交
  2. 14 8月, 2018 22 次提交
    • M
      ARM: socfpga: clk: Convert to clock framework · d81b5da3
      Marek Vasut 提交于
      Use clock framework functions to fetch clock information now that there
      is a clock driver for Arria10, instead of custom coded register parsing.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <chin.liang.see@intel.com>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Ley Foon Tan <ley.foon.tan@intel.com>
      d81b5da3
    • M
      mmc: socfpga: Add clock framework support · 12ea13ad
      Marek Vasut 提交于
      Add support for fetching the clock frequency both using the legacy
      method in case clock framework is disabled as well as via the clock
      framework if it is enabled. This allows for migration to the clock
      framework on platforms which supports it while not breaking legacy
      platforms. That said, the legacy method must be removed eventually.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <chin.liang.see@intel.com>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Ley Foon Tan <ley.foon.tan@intel.com>
      12ea13ad
    • M
      clk: socfpga: Add initial Arria10 clock driver · f9f016ad
      Marek Vasut 提交于
      Add clock driver for the Arria10, which allows reading the clock
      frequency from all the clock described in the DT. The driver also
      allows enabling and disabling the clock. Reconfiguring frequency
      is not supported thus far.
      
      Since the DT bindings for the SoCFPGA clock are massively misdesigned
      and the handoff DT adds additional incorrectly described entries to
      the DT, the driver contains workarounds which attempt to rectify all
      of those problems.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <chin.liang.see@intel.com>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Ley Foon Tan <ley.foon.tan@intel.com>
      f9f016ad
    • M
      ARM: dts: socfpga: Add u-boot,dm-pre-reloc to necessary clock nodes · ccc97432
      Marek Vasut 提交于
      Add the pre-reloc DT markers to clock nodes needed in SPL and early
      U-Boot stages. This is required to let the Arria10 clock driver start
      early and provide clock information for UART and SDMMC.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <chin.liang.see@intel.com>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Ley Foon Tan <ley.foon.tan@intel.com>
      ccc97432
    • M
      ARM: socfpga: clk: Drop unused variables on Arria10 · f4c3e0dc
      Marek Vasut 提交于
      The variables removed in this patch are never used, they are only ever
      assigned and then waste precious memory. Drop both the assignment and
      the variables.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <chin.liang.see@intel.com>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Ley Foon Tan <ley.foon.tan@intel.com>
      f4c3e0dc
    • M
      ARM: socfpga: clk: Make L4SP and MMC clock calculation Gen5 only · 49e508e9
      Marek Vasut 提交于
      The L4SP and MMC clock precalculation is specific to Gen5, it is not
      needed on Arria10/Stratix10. Isolate it to Gen5 until there is a proper
      clock driver for Gen5, at which point this will go away completely.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <chin.liang.see@intel.com>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Ley Foon Tan <ley.foon.tan@intel.com>
      49e508e9
    • M
      ARM: socfpga: clk: Obtain handoff base clock via DM · 934aec71
      Marek Vasut 提交于
      Bind fixed clock driver to the base clock instantiated in the handoff
      DT and use DM clock framework to get their clock rate. This replaces
      the ad-hoc DT parsing present thus far.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <chin.liang.see@intel.com>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Ley Foon Tan <ley.foon.tan@intel.com>
      934aec71
    • M
      ARM: socfpga: Enable DM ethernet on A10 · 2af5d51c
      Marek Vasut 提交于
      Enable DM ethernet framework on Arria10, so that the designware GMAC
      can be probed from DT as it should be.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <chin.liang.see@intel.com>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Ley Foon Tan <ley.foon.tan@intel.com>
      2af5d51c
    • M
      ARM: socfpga: Remove adhoc ethernet reset and configuration · d6a61da4
      Marek Vasut 提交于
      Remove ad-hoc ethernet syscon registers configuration and reset support.
      Reset is now handled by the reset framework and the syscon registers are
      set in the dwmac_socfpga.c driver.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <chin.liang.see@intel.com>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Ley Foon Tan <ley.foon.tan@intel.com>
      d6a61da4
    • M
      ARM: socfpga: Zap unused reset code · 6385a8a9
      Marek Vasut 提交于
      Remove code from the reset manager that is never called.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <chin.liang.see@intel.com>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Ley Foon Tan <ley.foon.tan@intel.com>
      6385a8a9
    • M
      net: designware: socfpga: Add Arria10 extras · 215a0656
      Marek Vasut 提交于
      Add wrapper around the designware MAC driver to handle the SoCFPGA
      specific configuration bits. On Arria10, this is configuration of
      syscon phy_intf.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <chin.liang.see@intel.com>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Ley Foon Tan <ley.foon.tan@intel.com>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      215a0656
    • M
      ARM: socfpga: Zap all the UART handling complexity · f9edeb32
      Marek Vasut 提交于
      The UART reset handling is now done via reset framework using the
      SoCFPGA reset driver. The UART console assignment is done using the
      DM and console framework. Nuke all this comlexity, since it is just
      duplicating the same functionality, badly.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <chin.liang.see@intel.com>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      f9edeb32
    • M
      ARM: socfpga: Enable DM I2C framework on A10 · fe88c2fe
      Marek Vasut 提交于
      Enable the DM I2C framework on Arria10, so that the DM capable
      Designware I2C driver can handle the reset via DM reset framework.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <chin.liang.see@intel.com>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Ley Foon Tan <ley.foon.tan@intel.com>
      fe88c2fe
    • M
      ARM: socfpga: Enable DM reset framework on A10 · 8145c1c2
      Marek Vasut 提交于
      Enable the DM reset framework and DM reset driver on Arria10 both
      in U-Boot and in SPL. This lets U-Boot parse reset control from DT.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <chin.liang.see@intel.com>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Ley Foon Tan <ley.foon.tan@intel.com>
      8145c1c2
    • M
      ARM: dts: socfpga: Add i2c alias to A10 SoCDK · c2950804
      Marek Vasut 提交于
      The A10 SoCDK is missing the I2C bus alias, so DM I2C cannot assign
      the I2C bus a bus number. Add the missing alias.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <chin.liang.see@intel.com>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Ley Foon Tan <ley.foon.tan@intel.com>
      c2950804
    • M
      ARM: dts: socfpga: Add missing I2C resets · 3d8685f1
      Marek Vasut 提交于
      The I2Cx resets are missing from DT, so the reset manager
      cannot control them. Add the missing DT reset entries.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <chin.liang.see@intel.com>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Ley Foon Tan <ley.foon.tan@intel.com>
      3d8685f1
    • M
      ARM: dts: socfpga: Fix Arria10 GMAC resets · da61e50f
      Marek Vasut 提交于
      Add the GMAC0,1 OCP resets, which must also be ungated for those GMACs
      to work and add GMAC2 reset and OCP resets which were missing altogether.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <chin.liang.see@intel.com>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Ley Foon Tan <ley.foon.tan@intel.com>
      da61e50f
    • M
      ARM: dts: socfpga: Add missing UART resets · f5775e69
      Marek Vasut 提交于
      The UART0 and UART1 resets are missing from DT, so the reset manager
      cannot control them. Add the missing DT reset entries.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <chin.liang.see@intel.com>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Ley Foon Tan <ley.foon.tan@intel.com>
      f5775e69
    • M
      ARM: dts: socfpga: Flag reset manager on A10 as pre-reloc · 6f96ed7e
      Marek Vasut 提交于
      The Altera reset manager block must be available very early on, since
      it controls ie. UART resets. Flag it as pre-reloc.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <chin.liang.see@intel.com>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Ley Foon Tan <ley.foon.tan@intel.com>
      6f96ed7e
    • M
      ARM: socfpga: Register the FPGA on A10 in SPL again · af74658e
      Marek Vasut 提交于
      The restructuring of the SPL dropped registration of the FPGA in SPL,
      readd it.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <chin.liang.see@intel.com>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Ley Foon Tan <ley.foon.tan@intel.com>
      Fixes: c859f2a7 ("arm: socfpga: Restructure the SPL file")
      af74658e
    • S
      arm: socfpga: gen5: combine some init code for SPL and U-Boot · e4ff8420
      Simon Goldschmidt 提交于
      Some of the code for low level system initialization in SPL's
      board_init_f() and U-Boot's arch_early_init_r() is the same,
      so let's combine it into a single function called from both.
      Signed-off-by: NSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
      e4ff8420
    • S
      arm: socfpga: fix device trees to work with DM serial · 79a436d5
      Simon Goldschmidt 提交于
      Device trees need to have the serial console device available
      before relocation and require a stdout-path in chosen at least
      for SPL to have a console.
      Signed-off-by: NSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
      79a436d5
  3. 13 8月, 2018 3 次提交
  4. 11 8月, 2018 14 次提交