1. 31 7月, 2014 1 次提交
    • M
      tools: add genboardscfg.py · 3c08e8b8
      Masahiro Yamada 提交于
      Now the primary data for each board is in Kconfig, defconfig and
      MAINTAINERS.
      
      It is true boards.cfg is needed for MAKEALL and buildman and might be
      useful to brouse all the supported boards in a single database.
      But it would be painful to maintain the boards.cfg in sync.
      
      So, this is the solution.
      Add a tool to generate the equivalent boards.cfg file based on
      the latest Kconfig, defconfig and MAINTAINERS.
      
      We can keep all the functions of MAKEALL and buildman with it.
      
      The best thing would be to change MAKEALL and buildman for not
      depending on boards.cfg in the future, but it would take some time.
      Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
      Acked-by: NSimon Glass <sjg@chromium.org>
      3c08e8b8
  2. 30 7月, 2014 7 次提交
    • M
      Add board MAINTAINERS files · 93d4334f
      Masahiro Yamada 提交于
      We have switched to Kconfig and the boards.cfg file is going to
      be removed. We have to retrieve the board status and maintainers
      information from it.
      
      The MAINTAINERS format as in Linux Kernel would be nice
      because we can crib the scripts/get_maintainer.pl script.
      
      After some discussion, we chose to put a MAINTAINERS file under each
      board directory, not the top-level one because we want to collect
      relevant information for a board into a single place.
      
      TODO:
      Modify get_maintainer.pl to scan multiple MAINTAINERS files.
      Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
      Suggested-by: NTom Rini <trini@ti.com>
      Acked-by: NSimon Glass <sjg@chromium.org>
      93d4334f
    • M
      kconfig: switch to Kconfig · 51148790
      Masahiro Yamada 提交于
      This commit enables Kconfig.
      Going forward, we use Kconfig for the board configuration.
      mkconfig will never be used. Nor will include/config.mk be generated.
      
      Kconfig must be adjusted for U-Boot because our situation is
      a little more complicated than Linux Kernel.
      We have to generate multiple boot images (Normal, SPL, TPL)
      from one source tree.
      Each image needs its own configuration input.
      
      Usage:
      
      Run "make <board>_defconfig" to do the board configuration.
      
      It will create the .config file and additionally spl/.config, tpl/.config
      if SPL, TPL is enabled, respectively.
      
      You can use "make config", "make menuconfig" etc. to create
      a new .config or modify the existing one.
      
      Use "make spl/config", "make spl/menuconfig" etc. for spl/.config
      and do likewise for tpl/.config file.
      
      The generic syntax of configuration targets for SPL, TPL is:
      
        <target_image>/<config_command>
      
      Here, <target_image> is either 'spl' or 'tpl'
            <config_command> is 'config', 'menuconfig', 'xconfig', etc.
      
      When the configuration is done, run "make".
      (Or "make <board>_defconfig all" will do the configuration and build
      in one time.)
      
      For futher information of how Kconfig works in U-Boot,
      please read the comment block of scripts/multiconfig.py.
      
      By the way, there is another item worth remarking here:
      coexistence of Kconfig and board herder files.
      
      Prior to Kconfig, we used C headers to define a set of configs.
      
      We expect a very long term to migrate from C headers to Kconfig.
      Two different infractructure must coexist in the interim.
      
      In our former configuration scheme, include/autoconf.mk was generated
      for use in makefiles.
      It is still generated under include/, spl/include/, tpl/include/ directory
      for the Normal, SPL, TPL image, respectively.
      Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
      Acked-by: NSimon Glass <sjg@chromium.org>
      51148790
    • M
      include: define CONFIG_SPL and CONFIG_TPL as 1 · 4ce99570
      Masahiro Yamada 提交于
      We are about to switch to Kconfig in the next commit.
      But there are something to get done beforehand.
      
      In Kconfig, include/generated/autoconf.h defines boolean
      CONFIG macros as 1.
      
      CONFIG_SPL and CONFIG_TPL, if defined, must be set to 1.
      Otherwise, when switching to Kconfig, the build log
      would be sprinkled with warning messages like this:
        warning: "CONFIG_SPL" redefined [enabled by default]
      Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      4ce99570
    • M
      kconfig: add basic Kconfig files · 51631259
      Masahiro Yamada 提交于
      This commit adds more Kconfig files, which were written by hand.
      Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
      Acked-by: NSimon Glass <sjg@chromium.org>
      51631259
    • M
      kconfig: add board Kconfig and defconfig files · dd84058d
      Masahiro Yamada 提交于
      This commit adds:
       - arch/${ARCH}/Kconfig
          provide a menu to select target boards
       - board/${VENDOR}/${BOARD}/Kconfig or board/${BOARD}/Kconfig
          set CONFIG macros to the appropriate values for each board
       - configs/${TARGET_BOARD}_defconfig
          default setting of each board
      
      (This commit was automatically generated by a conversion script
      based on boards.cfg)
      
      In Linux Kernel, defconfig files are located under
      arch/${ARCH}/configs/ directory.
      It works in Linux Kernel since ARCH is always given from the
      command line for cross compile.
      
      But in U-Boot, ARCH is not given from the command line.
      Which means we cannot know ARCH until the board configuration is done.
      That is why all the "*_defconfig" files should be gathered into a
      single directory ./configs/.
      Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
      Acked-by: NSimon Glass <sjg@chromium.org>
      dd84058d
    • M
      kconfig: import Kconfig files from Linux 3.16-rc7 · 0a9064fb
      Masahiro Yamada 提交于
      Import
        - scripts/kconfig/*
        - include/linux/kconfig.h
      from Linux 3.16-rc7.
      Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      0a9064fb
    • Ł
      boards:trats2: New Trats2 board maintainer · a98b2378
      Łukasz Majewski 提交于
      Change-Id: I8e72b942b8816726773d5407ce405d68a1594389
      Signed-off-by: NLukasz Majewski <l.majewski@samsung.com>
      a98b2378
  3. 29 7月, 2014 8 次提交
  4. 28 7月, 2014 17 次提交
  5. 26 7月, 2014 7 次提交
    • A
      f2c8d7f5
    • P
      ARM: omap: move board specific NAND configs out from ti_armv7_common.h · 434f2cfc
      pekon gupta 提交于
      This patch moves some board specific NAND configs:
      - FROM: generic config file 'ti_armv7_common.h'
      - TO:   individual board config files using these configs.
      So that each board can independently set the value as per its design.
      
      Following configs are affected in this patch:
        CONFIG_SYS_NAND_U_BOOT_OFFS: <refer doc/README.nand>
        CONFIG_CMD_SPL_NAND_OFS: <refer doc/README.falcon>
        CONFIG_SYS_NAND_SPL_KERNEL_OFFS: <refer doc/README.falcon>
        CONFIG_CMD_SPL_WRITE_SIZE: <refer doc/README.falcon>
      
      This patch also updates documentation for few of above NAND configs.
      Signed-off-by: NPekon Gupta <pekon@ti.com>
      434f2cfc
    • P
      ARM: omap: clean redundant PISMO_xx macros used in OMAP3 · 222a3113
      pekon gupta 提交于
      PISMO_xx macros were used to define 'Platform Independent Storage MOdule'
      related GPMC configurations. This patch
      - Replaces these OMAP3 specific macros with generic CONFIG_xx macros as provided
        by current u-boot infrastructure.
      - Removes unused redundant macros, which are no longer required after
        merging of common platform code in following commit
            commit a0a37183
            ARM: omap: merge GPMC initialization code for all platform
      
      +-----------------+-----------------------------------------------------------+
      | Macro           | Reason for removal                                        |
      +-----------------+-----------------------------------------------------------+
      | PISMO1_NOR_BASE | duplicate of CONFIG_SYS_FLASH_BASE                        |
      +-----------------+-----------------------------------------------------------+
      | PISMO1_NAND_BASE| duplicate of CONFIG_SYS_NAND_BASE                         |
      +-----------------+-----------------------------------------------------------+
      | PISMO1_ONEN_BASE| duplicate of CONFIG_SYS_ONENAND_BASE                      |
      +-----------------+-----------------------------------------------------------+
      | PISMO1_NAND_SIZE| GPMC accesses NAND device via I/O mapped registers so     |
      |                 | configuring GPMC chip-select for smallest allowable       |
      |                 | segment (GPMC_SIZE_16M) is enough.                        |
      +-----------------+-----------------------------------------------------------+
      | PISMO1_ONEN_SIZE| OneNAND uses a fixed GPMC chip-select address-space of    |
      |                 | 128MB (GPMC_SIZE_128M)                                    |
      +-----------------+-----------------------------------------------------------+
      +-----------------+-----------------------------------------------------------+
      | PISMO1_NOR      |  Unused Macros                                            |
      | PISMO1_NAND     |                                                           |
      | PISMO2_CS0      |                                                           |
      | PISMO2_CS1      |                                                           |
      | PISMO1_ONENAND  |                                                           |
      | PISMO2_NAND_CS0 |                                                           |
      | PISMO2_NAND_CS1 |                                                           |
      | PISMO1_NOR_BASE |                                                           |
      | PISMO1_NAND_BASE|                                                           |
      | PISMO2_CS0_BASE |                                                           |
      +-----------------+-----------------------------------------------------------+
      Signed-off-by: NPekon Gupta <pekon@ti.com>
      222a3113
    • P
      ARM: omap: fix GPMC address-map size for NAND and NOR devices · 77cd89e7
      pekon gupta 提交于
      Fixes commit a0a37183
          ARM: omap: merge GPMC initialization code for all platform
      
      1) NAND device are not directly memory-mapped to CPU address-space, they are
       indirectly accessed via following GPMC registers:
       - GPMC_NAND_COMMAND_x
       - GPMC_NAND_ADDRESS_x
       - GPMC_NAND_DATA_x
       Therefore from CPU's point of view, NAND address-map can be limited to just
       above register addresses. But GPMC chip-select address-map can be configured
       in granularity of 16MB only.
       So this patch uses GPMC_SIZE_16M for all NAND devices.
      
      2) NOR device are directly memory-mapped to CPU address-space, so its
       address-map size depends on actual addressable region in NOR FLASH device.
       So this patch uses CONFIG_SYS_FLASH_SIZE to derive GPMC chip-select address-map
       size configuration.
      Signed-off-by: NPekon Gupta <pekon@ti.com>
      77cd89e7
    • R
      ARM: OMAP: Fix handling of errata i727 · 8c16dd6f
      Rajendra Nayak 提交于
      The errata is applicable on all OMAP4 (4430 and 4460/4470) and OMAP5
      ES 1.0 devices. The current revision check erroneously implements this
      on all DRA7 varients and with DRA722 device (which has only 1 EMIF instance)
      infact causes an asynchronous abort and ends up masking it in CPSR,
      only to be uncovered once the kernel switches to userspace.
      Signed-off-by: NRajendra Nayak <rnayak@ti.com>
      Signed-off-by: NSricharan R <r.sricharan@ti.com>
      Signed-off-by: NLokesh Vutla <lokeshvutla@ti.com>
      8c16dd6f
    • H
      board: k2e-evm: add board support · a9068479
      Hao Zhang 提交于
      This patch adds Keystone2 k2e_evm evaluation board support.
      Signed-off-by: NHao Zhang <hzhang@ti.com>
      Signed-off-by: NIvan Khoronzhuk <ivan.khoronzhuk@ti.com>
      a9068479
    • K
      ARM: keystone2: spl: add K2E SoC support · 1284246e
      Khoronzhuk, Ivan 提交于
      Keystone2 K2E SoC has slightly different spl pll settings then
      K2HK, so correct this.
      Acked-by: NMurali Karicheri <m-karicheri2@ti.com>
      Signed-off-by: NIvan Khoronzhuk <ivan.khoronzhuk@ti.com>
      1284246e