Skip to content
Snippets Groups Projects
  1. May 23, 2017
    • rick's avatar
      nds32: eth: Support ftmac100 DM. · be71a179
      rick authored
      
      Support Andestech eth ftmac100 device tree flow on AG101P/AE3XX platform.
      Verification:
       Boot linux kernel via dhcp and bootm ok.
      
       NDS32 # setenv bootm_size 0x2000000;setenv fdt_high 0x1f00000;
       NDS32 # dhcp 0x600000 10.0.4.97:boomimage-310y-ae300-spi.bin
       BOOTP broadcast 1
       BOOTP broadcast 2
       BOOTP broadcast 3
       BOOTP broadcast 4
       DHCP client bound to address 10.0.4.178 (4899 ms)
      	Using mac@e0100000 device
      	TFTP from server 10.0.4.97; our IP address is 10.0.4.178
      	Filename 'boomimage-310y-ae300-spi.bin'.
      	Load address: 0x600000
      	Loading: #################################################################
      	         #################################################################
      	         #################################################################
      ...
      ...
      	         ###################################
      	         233.4 KiB/s
      					 done
      					 Bytes transferred = 13872076 (d3abcc hex)
      	NDS32 # dhcp 0x2000000 10.0.4.97:ae300.dtb
      	BOOTP broadcast 1
      	BOOTP broadcast 2
      	BOOTP broadcast 3
      	BOOTP broadcast 4
      	DHCP client bound to address 10.0.4.178 (4592 ms)
      	Using mac@e0100000 device
      	TFTP from server 10.0.4.97; our IP address is 10.0.4.178
      	Filename 'ae300.dtb'.
      	Load address: 0x2000000
      	Loading: #
      	         82 KiB/s
      					 done
      					 Bytes transferred = 2378 (94a hex)
      	NDS32 # bootm 0x600000 - 0x2000000
      	 Image Name:
      	 Created:      2017-03-22   6:52:03 UTC
      	 Image Type:   NDS32 Linux Kernel Image (uncompressed)
      	 Data Size:    13872012 Bytes = 13.2 MiB
      	 Load Address: 0000c000
      	 Entry Point:  0000c000
      	 Verifying Checksum ... OK
      	 Booting using the fdt blob at 0x2000000
      	 Loading Kernel Image ... OK
      	 Loading Device Tree to 01efc000, end 01eff949 ... OK
      	 Linux version 3.10.102-20375-gb0034c1-dirty (rick@app09)
      	(gcc version 4.9.3 (2016-07-06_nds32le-linux-glibc-v3_experimental) )
        #293 PREEMPT Wed Mar 22 14:49:28 CST 2017
      	CPU: NDS32 N13, AndesCore ID(wb), CPU_VER 0x0d11103f(id 13, rev 17, cfg 4159)
      ...
      ...
      Signed-off-by: default avatarrick <rick@andestech.com>
      be71a179
  2. May 22, 2017
  3. Apr 07, 2017
  4. Sep 29, 2016
  5. Sep 23, 2016
  6. Jul 14, 2016
  7. Feb 06, 2016
  8. Jan 21, 2016
  9. Nov 05, 2015
  10. Aug 28, 2015
  11. May 12, 2015
  12. Apr 18, 2015
  13. Mar 24, 2015
    • Rob Herring's avatar
      remove unnecessary version.h includes · 7682a998
      Rob Herring authored
      
      Various files are needlessly rebuilt every time due to the version and
      build time changing. As version.h is not actually needed, remove the
      include.
      
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Minkyu Kang <mk7.kang@samsung.com>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Tom Warren <twarren@nvidia.com>
      Cc: Michal Simek <monstr@monstr.eu>
      Cc: Macpaul Lin <macpaul@andestech.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: York Sun <yorksun@freescale.com>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Philippe Reynes <tremyfr@yahoo.fr>
      Cc: Eric Jarrige <eric.jarrige@armadeus.org>
      Cc: "David Müller" <d.mueller@elsoft.ch>
      Cc: Phil Edworthy <phil.edworthy@renesas.com>
      Cc: Robert Baldyga <r.baldyga@samsung.com>
      Cc: Torsten Koschorrek <koschorrek@synertronixx.de>
      Cc: Anatolij Gustschin <agust@denx.de>
      Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Reviewed-by: default avatarŁukasz Majewski <l.majewski@samsung.com>
      7682a998
  14. Feb 09, 2015
  15. Dec 08, 2014
  16. Nov 23, 2014
  17. Sep 13, 2014
  18. Jul 30, 2014
  19. May 12, 2014
    • Masahiro Yamada's avatar
      bd_info: remove bi_barudrate member from struct bd_info · 8e261575
      Masahiro Yamada authored
      
      gd->bd->bi_baudrate is a copy of gd->baudrate.
      
      Since baudrate is a common feature for all architectures,
      keep gd->baudrate only.
      
      It is true that bi_baudrate was passed to the kernel in that structure
      but it was a long time ago.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Heiko Schocher <hs@denx.de>
      Acked-by: Michal Simek <monstr@monstr.eu> (For microblaze)
      8e261575
  20. Mar 28, 2014
    • Masahiro Yamada's avatar
      kbuild: move asm-offsets.c from SoC directory to arch/$(ARCH)/lib · 254d68b6
      Masahiro Yamada authored
      
      U-Boot has supported two kinds of asm-offsets.h.
      
      One is generic for all architectures and its source is located at
      ./lib/asm-offsets.c.
      
      The other is SoC specific and its source is under SoC directory.
      The problem here is that only boards with SoC directory can use
      the asm-offsets infrastructure.
      Putting asm-offsets.c right under CPU directory does not work.
      
      Now a new demand is coming. PowerPC folks want to use asm-offsets.
      But no PowerPC boards have SoC directory.
      
      It seems inconsistent that some boards add asm-offsets.c to SoC
      directoreis and some to CPU directories.
      It looks more reasonable to put asm-offsets.c under arch/$(ARCH)/lib.
      
      This commit merges asm-offsets.c under SoC directories into
      arch/$(ARCH)/lib/asm-offsets.c.
      
      By the way, I doubt the necessity of some entries in asm-offsets.c.
      I am leaving refactoring to the board maintainers.
      Please check "TODO" in the comment blocks in
      arch/{arm,nds32}/lib/asm-offsets.c.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Cc: Yuantian Tang <Yuantian.Tang@freescale.com>
      254d68b6
  21. Mar 07, 2014
  22. Mar 04, 2014
  23. Feb 19, 2014
    • Masahiro Yamada's avatar
      kbuild: add dummy obj-y to create built-in.o · 7c8278a8
      Masahiro Yamada authored
      
      We are going to switch over to Kbuild in upcoming commits.
      
      Each makefile must have non-empty obj- or obj-y
      to generate built-in.o on Kbuild.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      7c8278a8
    • Masahiro Yamada's avatar
      kbuild: change out-of-tree build · 9e414032
      Masahiro Yamada authored
      
      This commit changes the working directory
      where the build process occurs.
      
      Before this commit, build process occurred under the source
      tree for both in-tree and out-of-tree build.
      
      That's why we needed to add $(obj) prefix to all generated
      files in makefiles like follows:
        $(obj)u-boot.bin:  $(obj)u-boot
      
      Here, $(obj) is empty for in-tree build, whereas it points
      to the output directory for out-of-tree build.
      
      And our old build system changes the current working directory
      with "make -C <sub-dir>" syntax when descending into the
      sub-directories.
      
      On the other hand, Kbuild uses a different idea
      to handle out-of-tree build and directory descending.
      
      The build process of Kbuild always occurs under the output tree.
      When "O=dir/to/store/output/files" is given, the build system
      changes the current working directory to that directory and
      restarts the make.
      
      Kbuild uses "make -f $(srctree)/scripts/Makefile.build obj=<sub-dir>"
      syntax for descending into sub-directories.
      (We can write it like "make $(obj)=<sub-dir>" with a shorthand.)
      This means the current working directory is always the top
      of the output directory.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Tested-by: default avatarGerhard Sittig <gsi@denx.de>
      9e414032
  24. Jan 28, 2014
  25. Nov 01, 2013
  26. Aug 08, 2013
    • ken kuo's avatar
      nds32: introduce DMA allocation API · 9f128bcc
      ken kuo authored
      
      U-Boot does not compile for the adp-ag101 boards since
      commit a8f9cd18
      (net: update FTGMAC100 for MMU/D-cache support)
      
      The driver assumes that the DMA allocation API are provided by all
      architectures. This is not the case for nds32 and it causes a
      build error. This patch adds DMA allocation API to avoid the errors.
      
      Signed-off-by: default avatarKuan-Yu Kuo <ken.kuoky@gmail.com>
      Cc: Macpaul Lin <macpaul@gmail.com>
      Cc: Andes <uboot@andestech.com>
      Signed-off-by: default avatarAndes <uboot@andestech.com>
      9f128bcc
  27. Jul 25, 2013
  28. Jul 24, 2013
    • Wolfgang Denk's avatar
      Add GPL-2.0+ SPDX-License-Identifier to source files · 1a459660
      Wolfgang Denk authored
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      [trini: Fixup common/cmd_io.c]
      Signed-off-by: default avatarTom Rini <trini@ti.com>
      1a459660
    • Axel Lin's avatar
      nds32: ag101/ag102: Fix setting lastdec and now values · 4fc96705
      Axel Lin authored
      
      The timer3 counter unit for lastdesc and now values are inconsistent in current
      code. The unit of "readl(&tmr->timer3_counter) / (CONFIG_SYS_CLK_FREQ / 2)" is
      second. However, CONFIG_SYS_HZ is defined as 1000 in board config file.
      This means the accuracy of "lastdec" and "now" should be in millisecond,
      thus fix the equation to set lastdec and now variables accordingly.
      
      Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
      4fc96705
    • ken kuo's avatar
      nds32: Enable the function of passing parameters to Linux · e3c58b02
      ken kuo authored
      
      Add a header file, setup.h, which copy from Linux source code,
      this file contain structures are used to pass initialisation parameters
      to Linux. Enable this function on adp-ag101/adp-ag101p target
      
      Signed-off-by: default avatarKuan-Yu Kuo <ken.kuoky@gmail.com>
      Cc: Macpaul Lin <macpaul@gmail.com>
      e3c58b02
    • ken kuo's avatar
      nds32: Enable two banks of SDRAM on Andes board · 3c016704
      ken kuo authored
      
      The original adp-ag101/adp-ag101p initialize only one bank(64MB)
      by default at boot time, but it is not enough for some application,
      so increasing to two banks(128M).
      
      Signed-off-by: default avatarKuan-Yu Kuo <ken.kuoky@gmail.com>
      Cc: Macpaul Lin <macpaul@gmail.com>
      3c016704
    • Gabor Juhos's avatar
      nds32: introduce macros for bit manipulation · bea2868f
      Gabor Juhos authored
      
      U-Boot does not compile for the adp-ag101 boards since
      commit f6c3b346 (mmc:
      update Faraday FTSDC010 for rw performance)
      
      The driver assumes that the bit manipulation macros
      are provided by all architectures. This is not the
      case for nds32 and it causes a build error like this:
      
        ftsdc010_mci.c: In function 'ftsdc010_clkset':
        ftsdc010_mci.c:118: warning: implicit declaration of function 'setbits_le32'
        ftsdc010_mci.c:123: warning: implicit declaration of function 'clrbits_le32'
        drivers/mmc/libmmc.o: In function `ftsdc010_request':
        /devel/u-boot.git/drivers/mmc/ftsdc010_mci.c:234: undefined reference to `setbits_le32'
        /devel/u-boot.git/drivers/mmc/ftsdc010_mci.c:243: undefined reference to `clrbits_le32'
        /devel/u-boot.git/drivers/mmc/ftsdc010_mci.c:234: undefined reference to `clrbits_le32'
        drivers/mmc/libmmc.o: In function `ftsdc010_clkset':
        /devel/u-boot.git/drivers/mmc/ftsdc010_mci.c:118: undefined reference to `clrbits_le32'
        /devel/u-boot.git/drivers/mmc/ftsdc010_mci.c:118: undefined reference to `clrbits_le32'
        /devel/u-boot.git/drivers/mmc/ftsdc010_mci.c:121: undefined reference to `setbits_le32'
        /devel/u-boot.git/drivers/mmc/ftsdc010_mci.c:123: undefined reference to `setbits_le32'
        /devel/u-boot.git/drivers/mmc/ftsdc010_mci.c:123: undefined reference to `setbits_le32'
      
      The patch adds bit manipulation macros for the
      nds32 architecture to avoid the errors. The macros
      are copied from the ARM implementation.
      
      Compile tested only.
      
      Cc: Kuo-Jung Su <dantesu@faraday-tech.com>
      Cc: Macpaul Lin <macpaul@andestech.com>
      Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>
      bea2868f
Loading