Skip to content
Snippets Groups Projects
  1. Apr 14, 2017
  2. Feb 12, 2017
    • Masahiro Yamada's avatar
      flash: complete CONFIG_SYS_NO_FLASH move with renaming · e856bdcf
      Masahiro Yamada authored
      
      We repeated partial moves for CONFIG_SYS_NO_FLASH, but this is
      not completed. Finish this work by the tool.
      
      During this move, let's rename it to CONFIG_MTD_NOR_FLASH.
      Actually, we have more instances of "#ifndef CONFIG_SYS_NO_FLASH"
      than those of "#ifdef CONFIG_SYS_NO_FLASH".  Flipping the logic will
      make the code more readable.  Besides, negative meaning symbols do
      not fit in obj-$(CONFIG_...) style Makefiles.
      
      This commit was created as follows:
      
      [1] Edit "default n" to "default y" in the config entry in
          common/Kconfig.
      
      [2] Run "tools/moveconfig.py -y -r HEAD SYS_NO_FLASH"
      
      [3] Rename the instances in defconfigs by the following:
        find . -path './configs/*_defconfig' | xargs sed -i \
        -e '/CONFIG_SYS_NO_FLASH=y/d' \
        -e 's/# CONFIG_SYS_NO_FLASH is not set/CONFIG_MTD_NOR_FLASH=y/'
      
      [4] Change the conditionals by the following:
        find . -name '*.[ch]' | xargs sed -i \
        -e 's/ifndef CONFIG_SYS_NO_FLASH/ifdef CONFIG_MTD_NOR_FLASH/' \
        -e 's/ifdef CONFIG_SYS_NO_FLASH/ifndef CONFIG_MTD_NOR_FLASH/' \
        -e 's/!defined(CONFIG_SYS_NO_FLASH)/defined(CONFIG_MTD_NOR_FLASH)/' \
        -e 's/defined(CONFIG_SYS_NO_FLASH)/!defined(CONFIG_MTD_NOR_FLASH)/'
      
      [5] Modify the following manually
        - Rename the rest of instances
        - Remove the description from README
        - Create the new Kconfig entry in drivers/mtd/Kconfig
        - Remove the old Kconfig entry from common/Kconfig
        - Remove the garbage comments from include/configs/*.h
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      e856bdcf
  3. Jan 28, 2017
  4. Jun 09, 2016
  5. Apr 25, 2016
  6. Apr 10, 2016
  7. Dec 22, 2015
  8. Dec 20, 2015
  9. Nov 30, 2015
  10. Nov 18, 2015
  11. Sep 24, 2015
  12. Sep 23, 2015
  13. Aug 23, 2015
  14. Aug 08, 2015
    • Marek Vasut's avatar
      arm: socfpga: config: Fix LOADADDR · 4c6d8b91
      Marek Vasut authored
      
      Setting LOADADDR to 0x8000 is a bad idea, it is very likely that
      some kind of overlap will happen. Move the LOADADDR 0x01000000
      (16MiB from start of RAM) to make sure no overlap happens when
      loading kernel for example.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      4c6d8b91
    • Marek Vasut's avatar
      arm: socfpga: misc: Reset ethernet from OF · 6ab00db2
      Marek Vasut authored
      
      Reset the GMAC ethernets based on the "resets" OF node instead of ad-hoc
      hardcoded values in the U-Boot code. Since we don't have a proper reset
      framework in place yet, we have to do this slightly ad-hoc parsing of the
      OF tree instead.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      6ab00db2
    • Marek Vasut's avatar
      arm: socfpga: misc: Probe ethernet GMAC from OF · e14d3f79
      Marek Vasut authored
      
      The GMAC can now be probed from OF, so enable DM ethernet and remove the
      old ad-hoc designware_initialize() invocation.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      e14d3f79
    • Marek Vasut's avatar
      arm: socfpga: system: Clean up pinmux_config.c · 2d779b39
      Marek Vasut authored
      
      Implement new accessor, sysmgr_get_pinmux_table(), used to obtain pinmux
      table and it's size from the QTS-generated pinmux_config.c. The target
      here is again to get rid of poluting global namespace by including the
      pinmux_config.h into it.
      
      Furthermore, the pinmux_config.h declares some CONFIG_HPS_* macros,
      which are explicitly useless to us in U-Boot. Instead, U-Boot does
      use DT to detect exactly these configuration options. This patch
      makes sure that while this QTS-generated file can stay in the tree,
      these obscure macros do not ooze into the namespace anymore.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      2d779b39
    • Marek Vasut's avatar
      arm: socfpga: scan: Zap iocsr_scan_chain*_table() · 575d7415
      Marek Vasut authored
      
      Introduce accessor iocsr_get_config_table() for retrieving IOCSR config
      tables. This patch is again trimming down the namespace polution.
      
      The IOCSR config tables are used only by scan manager, they are generated
      by qts and are board specific. Before this patch, the approach to use
      these tables in scan manager was to define an extern variable to silence
      the compiler and compile board-specific iocsr_config.c into U-Boot which
      defined those extern variables. Furthermore, since these are tables and
      the scan manager needs to know the size of those tables, iocsr_config.h
      is included build-wide.
      
      This patch wraps all this into a single accessor which takes the scan
      chain ID and returns pointer to the table and it's size. All this is
      wrapped in wrap_iocsr_config.c board-specific file. The file includes
      the iocsr_config.c (!) to access the original tables and transitively
      iocsr_config.h . It is thus no longer necessary to include iocsr_config.h
      build-wide and the namespace polution is trimmed some more.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      575d7415
    • Marek Vasut's avatar
      arm: socfpga: clock: Clean up pll_config.h · 93b4abd3
      Marek Vasut authored
      
      Extract the clock configuration horribleness caused by pll_config.h in
      the following manner.
      
      First of all, introduce a few new accessors which return values of
      various clocks used in clock_manager.c and use them in clock_manager.c .
      These accessors replace those few macros which came from pll_config.h
      originally. Also introduce an accessor which returns the struct cm_config
      default configuration for the clock manager used in SPL.
      
      The accessors are implemented in a board-specific wrap_pll_config.c
      file, whose sole purpose is to include the qts-generated pll_config.h
      and provide only the necessary values to the clock manager.
      
      The purpose of this design is to limit the scope of inclusion for the
      pll_config.h , which thus far was included build-wide and poluted the
      namespace. With this change, the inclusion is limited to just the new
      wrap_pll_config.c file, which in turn provides three simple functions
      for the clock_manager.c to use.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      93b4abd3
    • Marek Vasut's avatar
      arm: socfpga: Move generated files into qts subdir · 9617ceb9
      Marek Vasut authored
      
      Move all the files generated by Quartus into the qts/ subdir of the
      board/altera/socfpga dir to make them explicitly separate from the
      generic U-Boot code.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
      9617ceb9
  15. Jun 26, 2015
  16. Jun 01, 2015
  17. May 10, 2015
  18. Mar 04, 2015
  19. Nov 07, 2014
  20. Oct 27, 2014
  21. Oct 10, 2014
    • Marek Vasut's avatar
      arm: socfpga: Use EMAC1 on SoCDK · 5a1d0ad3
      Marek Vasut authored
      
      The SoCDK uses EMAC1, not EMAC0. This patch fixes the issue.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      5a1d0ad3
  22. Oct 06, 2014
    • Marek Vasut's avatar
      arm: socfpga: Use CMD_FS_GENERIC · 2f210639
      Marek Vasut authored
      
      Enable and use the CONFIG_CMD_FS_GENERIC to avoid hard-coding the
      filesystem type into the environment.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      Acked-by: default avatarPavel Machek <pavel@denx.de>
      2f210639
    • Pavel Machek's avatar
      arm: socfpga: Split SoCFPGA configuration · 5095ee08
      Pavel Machek authored
      
      Split the SoCFPGA configuration into SoC-specific part which is
      common for all boards (socfpga_cyclone5_common.h) and a board
      specific part. There is currently only one board, which is the
      generic SoCFPGA board (socfpga_cyclone5.h), but there are more
      to come.
      
      This is necessary due to various features of the boards, which
      unfortunatelly cannot be autodetected.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      Acked-by: default avatarPavel Machek <pavel@denx.de>
      5095ee08
    • Marek Vasut's avatar
      arm: socfpga: Clean up SoCFPGA configuration · 47f9b4e1
      Marek Vasut authored
      
      Reorganize and cleanup the configuration file for SoCFPGA. There
      is no functional change after this cleanup. This was necessary,
      since the file was a wild mess and it was impossible to make sense
      of it's content, let alone change something without breaking some
      other thing. This patch puts the contents on par with regular U-Boot
      standards.
      
      Also remove unused preprocessor symbols CONFIG_SINGLE_BOOTOADER
      and CONFIG_USE_IRQ, which is undefined by default. Finally, do
      logical reordering of the defines in the file so it's much more
      readable. The reordering was also necessary for the splitting
      as the initial one was messy.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      47f9b4e1
Loading