Skip to content
Snippets Groups Projects
  1. 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
  2. Jul 25, 2013
  3. 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
  4. Jul 23, 2013
  5. Jul 16, 2013
  6. Jul 02, 2013
  7. May 08, 2013
  8. May 01, 2013
  9. Apr 01, 2013
    • York Sun's avatar
      Consolidate bool type · 472d5460
      York Sun authored
      
      'bool' is defined in random places. This patch consolidates them into a
      single header file include/linux/types.h, using stdbool.h introduced in C99.
      
      All other #define, typedef and enum are removed. They are all consistent with
      true = 1, false = 0.
      
      Replace FALSE, False with false. Replace TRUE, True with true.
      Skip *.py, *.php, lib/* files.
      
      Signed-off-by: default avatarYork Sun <yorksun@freescale.com>
      472d5460
  10. Mar 15, 2013
    • Simon Glass's avatar
      Change stub example to use asm-generic/sections.h · 716cc8cc
      Simon Glass authored
      
      We can use the declarations of __bss_start and _end from this header
      instead of declaring them locally.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      716cc8cc
    • Simon Glass's avatar
      Introduce generic link section.h symbol files · 18652864
      Simon Glass authored
      
      We create a separate header file for link symbols defined by the link
      scripts. It is helpful to have these all in one place and try to
      make them common across architectures. Since Linux already has a similar
      file, we bring this in even though many of the symbols there are not
      relevant to us.
      
      Each architecture has its own asm/sections.h where symbols specifc to
      that architecture can be added. For now everything except AVR32 just
      includes the generic header.
      
      One change is needed in arch/avr32/lib/board.c to make this conversion
      work.
      
      Reviewed-by: Tom Rini <trini@ti.com> (version 5)
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      18652864
    • Simon Glass's avatar
      Replace __bss_end__ with __bss_end · 3929fb0a
      Simon Glass authored
      
      Note this is a tree-wide change affecting multiple architectures.
      
      At present we use __bss_start, but mostly __bss_end__. This seems
      inconsistent and in a number of places __bss_end is used instead.
      
      Change to use __bss_end for the BSS end symbol throughout U-Boot. This
      makes it possible to use the asm-generic/sections.h file on all
      archs.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      3929fb0a
  11. Mar 12, 2013
    • Albert ARIBAUD's avatar
      Refactor linker-generated arrays · ef123c52
      Albert ARIBAUD authored
      
      Refactor linker-generated array code so that symbols
      which were previously linker-generated are now compiler-
      generated. This causes relocation records of type
      R_ARM_ABS32 to become R_ARM_RELATIVE, which makes
      code which uses LGA able to run before relocation as
      well as after.
      
      Note: this affects more than ARM targets, as linker-
      lists span possibly all target architectures, notably
      PowerPC.
      
      Conflicts:
      	arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds
      	arch/arm/cpu/arm926ejs/spear/u-boot-spl.lds
      	arch/arm/cpu/armv7/omap-common/u-boot-spl.lds
      	board/ait/cam_enc_4xx/u-boot-spl.lds
      	board/davinci/da8xxevm/u-boot-spl-da850evm.lds
      	board/davinci/da8xxevm/u-boot-spl-hawk.lds
      	board/vpac270/u-boot-spl.lds
      
      Signed-off-by: default avatarAlbert ARIBAUD <albert.u.boot@aribaud.net>
      ef123c52
  12. Feb 19, 2013
    • Gabor Juhos's avatar
      malloc: make malloc_bin_reloc static · 7b395232
      Gabor Juhos authored
      
      On architectures where manual relocation
      is needed, the 'malloc_bin_reloc' function
      must be called after 'mem_malloc_init'.
      
      Make the 'malloc_bin_reloc' function static
      and call it directly from 'mem_malloc_init'
      instead of calling that from board_init_{r,f}
      functions of the affected architectures.
      
      Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Andreas Bießmann <andreas.devel@gmail.com>
      Cc: Jason Jin <Jason.jin@freescale.com>
      Cc: Macpaul Lin <macpaul@andestech.com>
      Cc: Daniel Hellstrom <daniel@gaisler.com>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
      7b395232
  13. Feb 18, 2013
  14. Feb 04, 2013
  15. Feb 01, 2013
  16. Oct 22, 2012
    • Marek Vasut's avatar
      common: Discard the __u_boot_cmd section · 8b493a52
      Marek Vasut authored
      
      The command declaration now uses the new LG-array method to generate
      list of commands. Thus the __u_boot_cmd section is now superseded and
      redundant and therefore can be removed. Also, remove externed symbols
      associated with this section from include/command.h .
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Joe Hershberger <joe.hershberger@gmail.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      8b493a52
    • Marek Vasut's avatar
      common: Convert the U-Boot commands to LG-arrays · 6c7c946c
      Marek Vasut authored
      
      This patch converts the old method of creating a list of command
      onto the new LG-arrays code. The old u_boot_cmd section is converted
      to new u_boot_list_cmd subsection and LG-array macros used as needed.
      
      Minor adjustments had to be made to the common code to work with the
      LG-array macros, mostly the fixup_cmdtable() calls are now passed the
      ll_entry_start and ll_entry_count instead of linker-generated symbols.
      
      The command.c had to be adjusted as well so it would use the newly
      introduced LG-array API instead of directly using linker-generated
      symbols.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Joe Hershberger <joe.hershberger@gmail.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      6c7c946c
    • Marek Vasut's avatar
      common: Add .u_boot_list into all linker files · 55675142
      Marek Vasut authored
      
      Add section for the linker-generated lists into all possible linker
      files, so that everyone can easily use these lists. This is mostly
      a mechanical adjustment.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Joe Hershberger <joe.hershberger@gmail.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      55675142
  17. Oct 19, 2012
  18. Oct 17, 2012
  19. Oct 15, 2012
  20. Sep 26, 2012
  21. Aug 10, 2012
  22. Aug 09, 2012
  23. Jul 20, 2012
  24. May 15, 2012
  25. Apr 22, 2012
Loading