Skip to content
Snippets Groups Projects
  1. Dec 10, 2019
    • Rick Chen's avatar
      riscv: ax25-ae350: Use generic memory size setup · 7e24518c
      Rick Chen authored
      
      To get memory size from device tree instead of
      get_ram_size(). This can avoid memory access fault
      in U-Boot proper after PMP configurations in OpenSBI.
      
      Signed-off-by: default avatarRick Chen <rick@andestech.com>
      Cc: KC Lin <kclin@andestech.com>
      Cc: Alan Kao <alankao@andestech.com>
      7e24518c
    • Rick Chen's avatar
      riscv: ax25-ae350: add SPL configuration · cd61e86e
      Rick Chen authored
      
      This patch provides four configurations which can support U-Boot SPL
      to boot from RAM or FLASH and then boot FIT image including OpenSBI
      FW_DYNAMIC firmware and U-Boot proper images from RAM or MMC boot devices.
      
      With ae350_rv[32|64]_spl_defconfigs:
      
      U-Boot SPL will be loaded by gdb or FSBL and runs in RAM in machine mode
      and then load FIT image from RAM device on AE350.
      
      With ae350_rv[32|64]_spl_xip_defconfigs:
      
      U-Boot SPL can be burned into SPI flash and run in flash in machine mode
      and then load FIT image from SPI flash or MMC device on AE350.
      
      Signed-off-by: default avatarRick Chen <rick@andestech.com>
      Cc: KC Lin <kclin@andestech.com>
      Cc: Alan Kao <alankao@andestech.com>
      cd61e86e
  2. Sep 03, 2019
  3. May 09, 2019
  4. Dec 05, 2018
    • Rick Chen's avatar
      riscv: ax25-ae350: Pass dtb address to u-boot with a1 register · 48cbf624
      Rick Chen authored
      
      ax25-ae350 use CONFIG_OF_BOARD via a2 and CONFIG_SYS_SDRAM_BASE
      to boot from ram which allow the board to override the fdt
      address originally.
      
      But after this patch
      riscv: save hart ID and device tree passed by prior boot stage
      It provide prior_stage_fdt_address which offer a temporary
      memory address to keep the dtb address passing from loader(gdb)
      to u-boot with a1.
      
      So passing via a2 and CONFIG_SYS_SDRAM_BASE is redundant and
      can be removed. And it also somehow may corrupted BBL if it
      was be arranged in CONFIG_SYS_SDRAM_BASE.
      
      In board_fdt_blob_setup()
      When boting from ram:
      prior_stage_fdt_address will be use to reserved dtb temporarily.
      
      When booting from ROM:
      dtb will be pre-burned in CONFIG_SYS_FDT_BASE, if it is flash base.
      Or CONFIG_SYS_FDT_BASE maybe a memory map space (NOT RAM or ROM)
      which is provided by HW.
      
      Signed-off-by: default avatarRick Chen <rick@andestech.com>
      Cc: Greentime Hu <greentime@andestech.com>
      48cbf624
  5. Oct 03, 2018
  6. May 29, 2018
    • Rick Chen's avatar
      board: ax25-ae350: Support cfi flash · 44199ebc
      Rick Chen authored
      
      Add smc_init() to get register base from dts and
      deal with atfsmc020 controler initialzation job.
      
      Write protect is enabled by default. So WP shall
      be disabled when startup, then cfi flash can be
      detected and erasing and writing can be executed.
      
      Adp-ae3xx and adp-ag101p both do smc initilize job
      in lowlevel_init.S and get register base fron
      CONFIG_FTSMC020_BASE. They also can be moved those
      codes to board stage. Remind them as todo jobs.
      After that CONFIG_FTSMC020_BASE can be removed.
      
      Signed-off-by: default avatarRick Chen <rick@andestech.com>
      Signed-off-by: default avatarRick Chen <rickchen36@gmail.com>
      Cc: Greentime Hu <green.hu@gmail.com>
      44199ebc
    • Rick Chen's avatar
      board: nx25-ae250: Rename as ax25-ae350 · 28c6cf26
      Rick Chen authored
      
      Rename
       nx25 as ax25
       ae250 as ae350
       nx25-ae250 as ax25-ae350
       including filename, variable, string and definition.
      
      Signed-off-by: default avatarRick Chen <rick@andestech.com>
      Signed-off-by: default avatarRick Chen <rickchen36@gmail.com>
      Cc: Greentime Hu <green.hu@gmail.com>
      28c6cf26
  7. May 07, 2018
    • Tom Rini's avatar
      SPDX: Convert all of our single license tags to Linux Kernel style · 83d290c5
      Tom Rini authored
      
      When U-Boot started using SPDX tags we were among the early adopters and
      there weren't a lot of other examples to borrow from.  So we picked the
      area of the file that usually had a full license text and replaced it
      with an appropriate SPDX-License-Identifier: entry.  Since then, the
      Linux Kernel has adopted SPDX tags and they place it as the very first
      line in a file (except where shebangs are used, then it's second line)
      and with slightly different comment styles than us.
      
      In part due to community overlap, in part due to better tag visibility
      and in part for other minor reasons, switch over to that style.
      
      This commit changes all instances where we have a single declared
      license in the tag as both the before and after are identical in tag
      contents.  There's also a few places where I found we did not have a tag
      and have introduced one.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      83d290c5
  8. Mar 30, 2018
    • Rick Chen's avatar
      riscv: ae250: Support DT provided by the board at runtime · d58717e4
      Rick Chen authored
      
      Enable CONFIG_OF_BOAD to support delivery dtb to u-boot
      at run time instead of embedded.
      
      There are two methods to delivery dtb.
       1 Pass from loader:
         When u-boot boot from RAM, gdb or loader can pass dtb
         via a2 to u-boot dynamically. Of course gdb or loader
         shall be in charge of dtb delivery.
      
       2 Configure CONFIG_SYS_FDT_BASE:
         It can be configured as RAM or ROM base statically,
         no mater u-boot boot from RAM or ROM.
         If it was configured as ROM base, dtb can be burned
         into ROM(spi flash) by spi driver.
      
      Meanwhile remove CONFIG_SKIP_LOWLEVEL_INIT which is
      useless in nx25-ae250 configuration.
      
      Signed-off-by: default avatarRick Chen <rick@andestech.com>
      Signed-off-by: default avatarRick Chen <rickchen36@gmail.com>
      Cc: Greentime Hu <green.hu@gmail.com>
      d58717e4
    • Rick Chen's avatar
      board: Drop ftsdc010 non-dm code · 5ff6b3de
      Rick Chen authored
      
      Remove board_mmc_init() in adp-ag101p, adp-ae3xx
      and nx25-ae250 boards.
      
      Signed-off-by: default avatarRick Chen <rick@andestech.com>
      Signed-off-by: default avatarRick Chen <rickchen36@gmail.com>
      Cc: Greentime Hu <green.hu@gmail.com>
      5ff6b3de
  9. Jan 12, 2018
  10. Sep 21, 2017
  11. 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
  12. May 22, 2017
  13. Apr 05, 2017
  14. Aug 28, 2015
  15. Jul 24, 2013
  16. Nov 10, 2011
  17. Oct 21, 2011
  18. Apr 27, 2011
  19. Feb 01, 2011
  20. Nov 27, 2009
Loading