Skip to content
Snippets Groups Projects
  1. Aug 20, 2018
    • Bin Meng's avatar
      x86: dts: Remove coreboot_fb.dtsi · 1cf6825a
      Bin Meng authored
      
      There is no need to keep a separate coreboot_fb.dtsi since now we
      have a generic coreboot payload dts.
      
      While we are here, this also remove the out-of-date description in
      the documentation regarding to coreboot framebuffer driver with
      U-Boot loaded as a payload from coreboot. As the testing result with
      QEMU 2.5.0 shows, the driver just works like a charm.
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      1cf6825a
    • Bin Meng's avatar
      x86: Remove support for Advantech SOM-6896 · 6e71a6ab
      Bin Meng authored
      
      Now that we have generic coreboot payload support, remove the
      dedicated support for Advantech SOM-6896.
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      6e71a6ab
    • Bin Meng's avatar
      x86: coreboot: Add generic coreboot payload support · ceeee8f7
      Bin Meng authored
      
      Currently building U-Boot as the coreboot payload requires user
      to change the build configuration for a specific board during
      menuconfig process. This uses the board's native device tree
      to configure the hardware. For example, the device tree provides
      PCI address range for the PCI host controller and U-Boot will
      re-program all PCI devices' BAR to be within this range. In order
      to make sure we don't mess up the hardware, we should guarantee
      the range matches what coreboot programs the chipset.
      
      But we really should make the coreboot payload support easier.
      Just like EFI payload, we can create a generic coreboot payload
      for all x86 boards as well. The payload is configured to include
      as many generic drivers as possible. All stuff that touches low
      level initialization are not allowed as such is the coreboot's
      responsibility. Platform specific drivers (like gpio, spi, etc)
      are not included.
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      Reviewed-by: default avatarChristian Gmeiner <christian.gmeiner@gmail.com>
      ceeee8f7
    • Andy Shevchenko's avatar
      Makefile: Don't generate position independent code · 6ace36e1
      Andy Shevchenko authored
      
      Since gcc-8 the --enable-default-pie starts producing code which assembler
      can't translate in case of U-Boot. The build fails with
      
        {standard input}: Assembler messages:
        {standard input}:21100: Error: junk at end of line, first unrecognized character is `@'
        {standard input}:21120: Error: junk at end of line, first unrecognized character is `@'
      
      and so on.
      
      This is usually the case for x86 platform because in many cases it uses host
      compiler from the Linux distributions, where PIE is enabled by default.
      Previously (gcc-7 and earlier) that was a potential issue due to absence of
      constructions like
      
        .long   end.5561@gotoff-start.5558@gotoff
      
      which are a cause of above error messages in gcc-8.
      
      Fix all these by disabling PIE on Makefile level.
      
      Reported-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      Suggested-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Tested-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      Tested-by: default avatarBin Meng <bmeng.cn@gmail.com>
      6ace36e1
  2. Aug 17, 2018
  3. Aug 16, 2018
  4. Aug 15, 2018
  5. Aug 14, 2018
  6. Aug 13, 2018
    • Marek Vasut's avatar
      ARM: socfpga: clk: Convert to clock framework · d81b5da3
      Marek Vasut authored
      
      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: default avatarMarek 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
    • Marek Vasut's avatar
      mmc: socfpga: Add clock framework support · 12ea13ad
      Marek Vasut authored
      
      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: default avatarMarek 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
    • Marek Vasut's avatar
      clk: socfpga: Add initial Arria10 clock driver · f9f016ad
      Marek Vasut authored
      
      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: default avatarMarek 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
    • Marek Vasut's avatar
      ARM: dts: socfpga: Add u-boot,dm-pre-reloc to necessary clock nodes · ccc97432
      Marek Vasut authored
      
      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: default avatarMarek 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
    • Marek Vasut's avatar
      ARM: socfpga: clk: Drop unused variables on Arria10 · f4c3e0dc
      Marek Vasut authored
      
      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: default avatarMarek 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
    • Marek Vasut's avatar
      ARM: socfpga: clk: Make L4SP and MMC clock calculation Gen5 only · 49e508e9
      Marek Vasut authored
      
      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: default avatarMarek 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
    • Marek Vasut's avatar
      ARM: socfpga: clk: Obtain handoff base clock via DM · 934aec71
      Marek Vasut authored
      
      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: default avatarMarek 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
    • Marek Vasut's avatar
      ARM: socfpga: Enable DM ethernet on A10 · 2af5d51c
      Marek Vasut authored
      
      Enable DM ethernet framework on Arria10, so that the designware GMAC
      can be probed from DT as it should be.
      
      Signed-off-by: default avatarMarek 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
    • Marek Vasut's avatar
      ARM: socfpga: Remove adhoc ethernet reset and configuration · d6a61da4
      Marek Vasut authored
      
      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: default avatarMarek 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
    • Marek Vasut's avatar
      ARM: socfpga: Zap unused reset code · 6385a8a9
      Marek Vasut authored
      
      Remove code from the reset manager that is never called.
      
      Signed-off-by: default avatarMarek 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
    • Marek Vasut's avatar
      net: designware: socfpga: Add Arria10 extras · 215a0656
      Marek Vasut authored
      
      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: default avatarMarek 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
    • Marek Vasut's avatar
      ARM: socfpga: Zap all the UART handling complexity · f9edeb32
      Marek Vasut authored
      
      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: default avatarMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <chin.liang.see@intel.com>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      f9edeb32
    • Marek Vasut's avatar
      ARM: socfpga: Enable DM I2C framework on A10 · fe88c2fe
      Marek Vasut authored
      
      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: default avatarMarek 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
    • Marek Vasut's avatar
      ARM: socfpga: Enable DM reset framework on A10 · 8145c1c2
      Marek Vasut authored
      
      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: default avatarMarek 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
Loading