1. 09 4月, 2019 9 次提交
    • S
      arm: at91: Add gardena-gateway-at91sam support · a71e2f93
      Stefan Roese 提交于
      The GARDENA smart Gateway boards are equipped with an Atmel / Microchip
      AT91SAM9G25 SoC and with 128 MiB of RAM and 256 MiB of NAND storage.
      This patch adds support for this board including SPL support. Therefore
      the AT91Boostrap is not needed on this platform any more.
      Signed-off-by: NStefan Roese <sr@denx.de>
      Cc: Heiko Schocher <hs@denx.de>
      Cc: Andreas Bießmann <andreas@biessmann.org>
      Cc: Eugen Hristev <eugen.hristev@microchip.com>
      Reviewed-by: NHeiko Schocher <hs@denx.de>
      a71e2f93
    • S
      arm: at91: at91sam9x5.dtsi: Add watchdog handle · d4c8873f
      Stefan Roese 提交于
      This makes it possible to reference the watchdog DT node via "&watchdog"
      from board dts files.
      Signed-off-by: NStefan Roese <sr@denx.de>
      Cc: Heiko Schocher <hs@denx.de>
      Cc: Andreas Bießmann <andreas@biessmann.org>
      Cc: Eugen Hristev <eugen.hristev@microchip.com>
      Reviewed-by: NHeiko Schocher <hs@denx.de>
      d4c8873f
    • S
      arm: at91: arm926ejs/u-boot-spl.lds: Add _image_binary_end to SPL lds · da8a7712
      Stefan Roese 提交于
      This patch adds _image_binary_end to the SPL linker script. This will be
      used be the upcoming GARDENA AT91SAM based platform, which uses DT in
      SPL and configures CONFIGURE_SPL_SEPARATE_BSS.
      Signed-off-by: NStefan Roese <sr@denx.de>
      Cc: Heiko Schocher <hs@denx.de>
      Cc: Andreas Bießmann <andreas@biessmann.org>
      Cc: Eugen Hristev <eugen.hristev@microchip.com>
      Reviewed-by: NHeiko Schocher <hs@denx.de>
      da8a7712
    • S
      arm: at91: Enable watchdog support · 256c2ff0
      Stefan Roese 提交于
      This patch enables and starts the watchdog on the AT91 platform if
      configured. The WD timeout value is read in the AT91 WD device driver
      from the DT, using the "timeout-sec" DT property. If not provided in
      the DT, the default value of 2 seconds is used.
      Signed-off-by: NStefan Roese <sr@denx.de>
      Cc: Heiko Schocher <hs@denx.de>
      Cc: Andreas Bießmann <andreas@biessmann.org>
      Cc: Eugen Hristev <eugen.hristev@microchip.com>
      256c2ff0
    • S
      arm: at91: spl_at91.c: Call spl_early_init() if OF_CONTROL is enabled · ce4d04af
      Stefan Roese 提交于
      This patch adds a call to spl_early_init() to board_init_f() which is
      needed when CONFIG_SPL_OF_CONTROL is configured. This is necessary for
      the early SPL setup including the DTB setup for later usage.
      
      Please note that this call might also be needed for non SPL_OF_CONTROL
      board, like the smartweb target. But smartweb fails to build with this
      call because its binary grows too big. So I disabled it for these kind
      of targets for now.
      Signed-off-by: NStefan Roese <sr@denx.de>
      Cc: Heiko Schocher <hs@denx.de>
      Cc: Andreas Bießmann <andreas@biessmann.org>
      Cc: Eugen Hristev <eugen.hristev@microchip.com>
      Reviewed-by: NHeiko Schocher <hs@denx.de>
      Tested on the taurus board:
      Tested-by: NHeiko Schocher <hs@denx.de>
      ce4d04af
    • S
      arm: at91: Makefile: Compile lowlevel_init only when really necessary · e6a27693
      Stefan Roese 提交于
      Make sure that lowlevel_init is not compiled when
      CONFIG_SKIP_LOWLEVEL_INIT_ONLY is configured.
      Signed-off-by: NStefan Roese <sr@denx.de>
      Cc: Heiko Schocher <hs@denx.de>
      Cc: Andreas Bießmann <andreas@biessmann.org>
      Cc: Eugen Hristev <eugen.hristev@microchip.com>
      Reviewed-by: NHeiko Schocher <hs@denx.de>
      Tested on the taurus board:
      Tested-by: NHeiko Schocher <hs@denx.de>
      e6a27693
    • I
      board: pm9g45: Migrate to CONFIG_DM · d9bd4290
      Ilko Iliev 提交于
      Migrate the following options to CONFIG_DM:
        CONFIG_DM_GPIO
        CONFIG_DM_MMC
        CONFIG_DM_ETH
        CONFIG_DM_SERIAL
        CONFIG_DM_USB
      Signed-off-by: NIlko Iliev <iliev@ronetix.at>
      d9bd4290
    • A
      ARM: at91: sama5d2: Wrap cpu detection to fix macb driver · 7dee1848
      Alexander Dahl 提交于
      When introducing the SAMA5D27 SoCs, the SAMA5D2 series got an additional
      chip id. The check if the cpu is sama5d2 was changed from a preprocessor
      definition (inlining a call to 'get_chip_id()') to a C function,
      probably to not call get_chip_id twice?
      
      That however broke a check in the macb ethernet driver. That driver is
      more generic and also used for other platforms. I suppose this solution
      was implemented to use it in 'gem_is_gigabit_capable()', without having
      to stricly depend on the at91 platform:
      
      	#ifndef cpu_is_sama5d2
      	#define cpu_is_sama5d2() 0
      	#endif
      
      That only works as long as cpu_is_sama5d2 is a preprocessor definition.
      (The same is still true for sama5d4 by the way.) So this is a straight
      forward fix for the workaround.
      
      The not working check on the SAMA5D2 CPU lead to an issue on a custom
      board with a LAN8720A ethernet phy connected to the SoC:
      
      	=> dhcp
      	ethernet@f8008000: PHY present at 1
      	ethernet@f8008000: Starting autonegotiation...
      	ethernet@f8008000: Autonegotiation complete
      	ethernet@f8008000: link up, 1000Mbps full-duplex (lpa: 0xffff)
      	BOOTP broadcast 1
      	BOOTP broadcast 2
      	BOOTP broadcast 3
      	BOOTP broadcast 4
      	BOOTP broadcast 5
      	BOOTP broadcast 6
      	BOOTP broadcast 7
      	BOOTP broadcast 8
      	BOOTP broadcast 9
      	BOOTP broadcast 10
      	BOOTP broadcast 11
      	BOOTP broadcast 12
      	BOOTP broadcast 13
      	BOOTP broadcast 14
      	BOOTP broadcast 15
      	BOOTP broadcast 16
      	BOOTP broadcast 17
      
      	Retry time exceeded; starting again
      
      Notice the wrong reported link speed, although both SoC and phy only
      support 100 MBit/s!
      
      The real issue on reliably detecting the features of that cadence
      ethernet mac IP block, is probably more complicated, though.
      
      Fixes: 245cbc58 ("ARM: at91: Get the Chip ID of SAMA5D2 SiP")
      Signed-off-by: NAlexander Dahl <ada@thorsis.com>
      7dee1848
    • J
      arm: sunxi: Enable DM_MMC on required SoCs · 85c3d463
      Jagan Teki 提交于
      Enabling DM_MMC is forcing CONFIG_BLK=y so if any board which uses
      SCSI must need to enable DM_SCSI otherwise SCSI reads on that particular
      target making invalid reading to the disk drive.
      
      Allwinner platform do support SCSI on A10, A20 and R40 SoC's out of
      these only A10 have DM_SCSI enabled. So enabling DM_MMC on A20, R40
      would eventually end-up with scsi disk read failures like [1]
      
      So, enable DM_MMC in all places of respective SoC's instead of enabling
      them globally to Allwinner platform.
      
      Now, DM_MMC is enabled in Allwinner SoC's except A20 and R40.
      
      [1] https://lists.denx.de/pipermail/u-boot/2019-April/364057.htmlReported-by: NPablo Sebastián Greco <pgreco@centosproject.org>
      Signed-off-by: NJagan Teki <jagan@amarulasolutions.com>
      85c3d463
  2. 08 4月, 2019 1 次提交
  3. 02 4月, 2019 1 次提交
  4. 30 3月, 2019 1 次提交
  5. 29 3月, 2019 1 次提交
  6. 26 3月, 2019 3 次提交
  7. 23 3月, 2019 2 次提交
    • M
      ARM: fix arch/arm/dts/Makefile · 89c2b5c0
      Masahiro Yamada 提交于
      Since commit 27cb7300 ("Ensure device tree DTS is compiled"),
      build succeeds irrespective of the correctness of Makefile.
      
      In fact, you can compile any defconfig without adding any entry in
      arch/*/dts/Makefile.
      
      As a result, a lot of wrong code have been merged unnoticed.
      
      I am going to revert that commit, and lots of hidden issues have
      come to light:
      
      [1] Typos
      
        armada-3720-uDPU.dts, sun8i-a83t-tbs-a711.dts
      
        use the extension ".dts" instead of ".dtb"
      
      [2] DTB is associated to undefined CONFIG option
      
        For example, mx6sllevk_defconfig defines CONFIG_MX6SLL, but
        associates its device tree to CONFIG_MX6SL, which is undefined.
      
      [3] Lots of entries are missing
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      Reviewed-by: NChris Packham <judge.packham@gmail.com>
      [trini: add imx6ul pico dtbs]
      Signed-off-by: NTom Rini <trini@konsulko.com>
      89c2b5c0
    • A
      armv8: Disable exception vectors in SPL by default · ef331e36
      Alexander Graf 提交于
      Commit 1416e2d2 ("armv8: make SPL exception vectors optional") had a
      typo in it which effectively disabled exception handling in SPL code always.
      
      Since nobody complained, I guess we may as well disable exception handling
      in SPL always by default.
      
      So fix the bug to make the config option effective, but disable exception
      handling in SPL by default. This gets us to the same functionality as before
      by default, but with much less code included in the binary.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      Reviewed-by: NMatthias Brugger <mbrugger@suse.com>
      Reviewed-by: NAndre Przywara <andre.przywara@arm.com>
      ef331e36
  8. 22 3月, 2019 1 次提交
  9. 19 3月, 2019 3 次提交
  10. 16 3月, 2019 1 次提交
  11. 15 3月, 2019 1 次提交
  12. 13 3月, 2019 4 次提交
  13. 11 3月, 2019 3 次提交
  14. 10 3月, 2019 4 次提交
    • M
      ARM: socfpga: Disable D cache in SPL · 7544ad03
      Marek Vasut 提交于
      The bootrom seems to leave the D-cache in messed up state, make sure
      the SPL disables it so it can not interfere with operation.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <chin.liang.see@intel.com>
      Cc: Dinh Nguyen <dinguyen@kernel.org>
      Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
      Cc: Tien Fong Chee <tien.fong.chee@intel.com>
      7544ad03
    • D
      ARM: socfpga: fix data and tag latency values for pl310 cache controller · 532a54e6
      Dinh Nguyen 提交于
      The values for the data and tag latency settings on the PL310 caches
      controller is an (n-1). For example, the "arm,tag-latency" is specified
      as <1 1 1>, so the values that should be written to register should be
      0x000. And for the "arm,data-latency" specified as <2 1 1>, the register
      value should be 0x010.
      Signed-off-by: NDinh Nguyen <dinguyen@kernel.org>
      532a54e6
    • E
      ARM: dts: rmobile: Zap redundant USB/SDHI nodes on M3N · 3a4511ce
      Eugeniu Rosca 提交于
      v2019.01 commit cbff9f80 ("ARM: dts: rmobile: Sync Gen3 DTs with
      Linux 4.19.6") made the sdhi/usb nodes available in r8a77965.dtsi.
      
      Hence, remove the SDHI/USB nodes from r8a77965-u-boot.dtsi. This is
      equivalent to partially reverting below v2019.01 commits:
       - f529bc55 ("ARM: dts: rmobile: Extract USB nodes on M3N")
       - 830b94f7 ("ARM: dts: rmobile: Extract SDHI nodes on M3N")
      
      Duplicating the nodes from <soc>.dtsi to <soc>-u-boot.dtsi is obviously:
       - not needed if no U-boot-specific changes are needed in those nodes.
       - potentially dangerous/error-prone, since the duplicated properties
         override the properties originally defined in <soc>.dtsi. One
         possible consequence is that <soc>.dtsi is getting an update from
         Linux, while <soc>-u-boot.dtsi stays unchanged. In this situation,
         the obsolete property values from <soc>-u-boot.dtsi will take
         precedence masking some of the <soc>.dtsi updates, potentially
         leading to all kind of obscure issues.
      
      Below is the dtdiff of r8a77965-salvator-x-u-boot.dtb (the only "user"
      of r8a77965-u-boot.dtsi) before and after the patch (slightly
      reformatted to avoid 'git am/apply' issues and to reduce the width).
      
      What below output means is there is already a mismatch in some of
      SDHI/USB nodes between r8a77965.dtsi and r8a77965-u-boot.dtsi. Since no
      U-Boot customization is needed in SDHI/USB DT nodes, get rid of them in
      r8a77965-u-boot.dtsi.
      
      $> dtdiff before-r8a77965-salvator-x-u-boot.dtb \
                 after-r8a77965-salvator-x-u-boot.dtb
       --- /dev/fd/63  2019-03-09 12:57:40.877963983 +0100
       +++ /dev/fd/62  2019-03-09 12:57:40.877963983 +0100
       @@ -1471,7 +1471,7 @@
              bus-width = <0x4>;
              cd-gpios = <0x51 0xc 0x1>;
              clocks = <0x6 0x1 0x13a>;
       -      compatible = "renesas,sdhi-r8a77965";
       +      compatible = "renesas,sdhi-r8a77965", "renesas,rcar-gen3-sdhi";
              interrupts = <0x0 0xa5 0x4>;
              max-frequency = <0xc65d400>;
              pinctrl-0 = <0x4d>;
       @@ -1492,7 +1492,7 @@
      
            sd@ee120000 {
              clocks = <0x6 0x1 0x139>;
       -      compatible = "renesas,sdhi-r8a77965";
       +      compatible = "renesas,sdhi-r8a77965", "renesas,rcar-gen3-sdhi";
              interrupts = <0x0 0xa6 0x4>;
              max-frequency = <0xbebc200>;
              power-domains = <0x1 0x20>;
       @@ -1504,7 +1504,7 @@
            sd@ee140000 {
              bus-width = <0x8>;
              clocks = <0x6 0x1 0x138>;
       -      compatible = "renesas,sdhi-r8a77965";
       +      compatible = "renesas,sdhi-r8a77965", "renesas,rcar-gen3-sdhi";
              fixed-emmc-driver-type = <0x1>;
              interrupts = <0x0 0xa7 0x4>;
              max-frequency = <0xbebc200>;
       @@ -1526,7 +1526,7 @@
              bus-width = <0x4>;
              cd-gpios = <0x5a 0xf 0x1>;
              clocks = <0x6 0x1 0x137>;
       -      compatible = "renesas,sdhi-r8a77965";
       +      compatible = "renesas,sdhi-r8a77965", "renesas,rcar-gen3-sdhi";
              interrupts = <0x0 0xa8 0x4>;
              max-frequency = <0xc65d400>;
              pinctrl-0 = <0x56>;
       @@ -1868,14 +1868,14 @@
      
            usb-phy@ee0a0200 {
              #phy-cells = <0x0>;
       -      clocks = <0x6 0x1 0x2be>;
       +      clocks = <0x6 0x1 0x2bf>;
              compatible = "renesas,usb2-phy-r8a77965", "renesas,rcar-gen3-usb2-phy";
              phandle = <0x47>;
              pinctrl-0 = <0x4c>;
              pinctrl-names = "default";
              power-domains = <0x1 0x20>;
              reg = <0x0 0xee0a0200 0x0 0x700>;
       -      resets = <0x6 0x2be>;
       +      resets = <0x6 0x2bf>;
              status = "okay";
            };
      Signed-off-by: NEugeniu Rosca <erosca@de.adit-jv.com>
      3a4511ce
    • M
      ARM: dts: rmobile: Force 1-bit bus width on Gen2 QSPI · fc3ed156
      Marek Vasut 提交于
      U-Boot currently uses Gen2 QSPI in 1-bit mode, enforce it until
      we can do better using the new SPI NOR framework.
      Signed-off-by: NMarek Vasut <marek.vasut+renesas@gmail.com>
      Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
      fc3ed156
  15. 04 3月, 2019 2 次提交
  16. 03 3月, 2019 1 次提交
  17. 01 3月, 2019 1 次提交
  18. 25 2月, 2019 1 次提交