11 Jan, 2017

1 commit

  • Move (and rename) the following CONFIG options to Kconfig:

    CONFIG_DAVINCI_MMC (renamed to CONFIG_MMC_DAVINCI)
    CONFIG_OMAP_HSMMC (renamed to CONFIG_MMC_OMAP_HS)
    CONFIG_MXC_MMC (renamed to CONFIG_MMC_MXC)
    CONFIG_MXS_MMC (renamed to CONFIG_MMC_MXS)
    CONFIG_TEGRA_MMC (renamed to CONFIG_MMC_SDHCI_TEGRA)
    CONFIG_SUNXI_MMC (renamed to CONFIG_MMC_SUNXI)

    They are the same option names as used in Linux.

    This commit was created as follows:

    [1] Rename the options with the following command:

    find . -name .git -prune -o ! -path ./scripts/config_whitelist.txt \
    -type f -print | xargs sed -i -e '
    s/CONFIG_DAVINCI_MMC/CONFIG_MMC_DAVINCI/g
    s/CONFIG_OMAP_HSMMC/CONFIG_MMC_OMAP_HS/g
    s/CONFIG_MXC_MMC/CONFIG_MMC_MXC/g
    s/CONFIG_MXS_MMC/CONFIG_MMC_MXS/g
    s/CONFIG_TEGRA_MMC/CONFIG_MMC_SDHCI_TEGRA/g
    s/CONFIG_SUNXI_MMC/CONFIG_MMC_SUNXI/g
    '

    [2] Commit the changes

    [3] Create entries in driver/mmc/Kconfig.
    (copied from Linux)

    [4] Move the options with the following command
    tools/moveconfig.py -y -r HEAD \
    MMC_DAVINCI MMC_OMAP_HS MMC_MXC MMC_MXS MMC_SDHCI_TEGRA MMC_SUNXI

    [5] Sort and align drivers/mmc/Makefile for readability

    Signed-off-by: Masahiro Yamada
    Reviewed-by: Marek Vasut

    Masahiro Yamada
     

01 Jun, 2016

1 commit

  • There are currently many places that define the list of all Tegra GPIOs;
    the DT binding header and custom Tegra-specific header file gpio.h. Fix
    the redundancy by replacing everything with the DT binding header file.

    Signed-off-by: Stephen Warren
    Reviewed-by: Simon Glass
    Signed-off-by: Tom Warren

    Stephen Warren
     

14 May, 2015

1 commit

  • All the Tegra boards borrow the files from board/nvidia/common/
    directory, i.e., board/nvidia/common/* are not vendor-common files,
    but SoC-common files.

    Move NVIDIA common files to arch/arm/mach-tegra/ to clean up
    Makefiles.

    As arch/arm/mach-tegra/board.c already exists, this commit renames
    board/nvidia/common/board.c to arch/arm/mach-tegra/board2.c,
    expecting they will be consolidated as a second step.

    Signed-off-by: Masahiro Yamada
    Acked-by: Marcel Ziswiler
    Cc: Stephen Warren
    Cc: Tom Warren
    Cc: Simon Glass
    Acked-by: Simon Glass
    Signed-off-by: Tom Warren

    Masahiro Yamada
     

30 Jan, 2015

2 commits


12 Dec, 2014

1 commit

  • This converts all Tegra boards over to use driver model for I2C. The driver
    is adjusted to use driver model and the following obsolete CONFIGs are
    removed:

    - CONFIG_SYS_I2C_INIT_BOARD
    - CONFIG_I2C_MULTI_BUS
    - CONFIG_SYS_MAX_I2C_BUS
    - CONFIG_SYS_I2C_SPEED
    - CONFIG_SYS_I2C

    This has been tested on:
    - trimslice (no I2C)
    - beaver
    - Jetson-TK1

    It has not been tested on Tegra 114 as I don't have that board.

    Acked-by: Heiko Schocher
    Signed-off-by: Simon Glass

    Simon Glass
     

14 Sep, 2014

1 commit

  • Now the types of CONFIG_SYS_{ARCH, CPU, SOC, VENDOR, BOARD, CONFIG_NAME}
    are specified in arch/Kconfig.

    We can delete the ones in arch and board Kconfig files.

    This commit can be easily reproduced by the following command:

    find . -name Kconfig -a ! -path ./arch/Kconfig | xargs sed -i -e '
    /config[[:space:]]SYS_\(ARCH\|CPU\|SOC\|\VENDOR\|BOARD\|CONFIG_NAME\)/ {
    N
    s/\n[[:space:]]*string//
    }
    '

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

31 Aug, 2014

1 commit

  • Becuase the board select menu in arch/arm/Kconfig is too big,
    move the Tegra board select menu to tegra/Kconfig.

    Insert the Tegra SoC select menu between the arch select and the
    board select.

    Architecture select
    |-- Tegra Platform (Tegra)
    |- Tegra SoC select (Tegra20 / 30 / 114 / 124)
    |- Board select

    Consolidate also common settings (CONFIG_SYS_CPU="armv7" and
    CONFIG_SYS_SOC="tegra*") and always "select" CONFIG_SPL as follows:

    config TEGRA
    bool
    select SPL

    Signed-off-by: Masahiro Yamada
    Acked-by: Stephen Warren
    Cc: Tom Warren

    Masahiro Yamada
     

30 Jul, 2014

2 commits

  • 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: Masahiro Yamada
    Suggested-by: Tom Rini
    Acked-by: Simon Glass

    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: Masahiro Yamada
    Acked-by: Simon Glass

    Masahiro Yamada
     

17 Apr, 2014

3 commits

  • This renames all the pinmux pins, drive groups, and functions so they
    have a prefix which matches the type name. These lists are also auto-
    generated using scripts that were also used to generate the kernel
    pinctrl drivers. This ensures that the lists are consistent between the
    two.

    The entries in tegra30_pingroups[] are all updated to remove the columns
    which are no longer used.

    All affected code is updated to match.

    This introduces a few changes to pin/group/function naming and the set of
    available functions for each pin. The new values now exactly match the
    TRM; the chip documentation. I adjusted one entry in
    pinmux-config-cardhu.h due to this.

    Signed-off-by: Stephen Warren
    Acked-by: Simon Glass
    Signed-off-by: Tom Warren

    Stephen Warren
     
  • This renames all the Tegra20 pinmux pins and functions so they have a
    prefix which matches the type name.

    The entries in tegra20_pingroups[] are all updated to remove the columns
    which are no longer used.

    All affected code is updated to match.

    Signed-off-by: Stephen Warren
    Acked-by: Simon Glass
    Signed-off-by: Tom Warren

    Stephen Warren
     
  • Clean up the naming of pinmux-related objects:
    * Refer to drive groups rather than pad groups to match the Linux kernel.
    * Ensure all pinmux API types are prefixed with pmux_, values (defines)
    are prefixed with PMUX_, and functions prefixed with pinmux_.
    * Modify a few type names to make their content clearer.
    * Minimal changes to SoC-specific .h/.c files are made so the code still
    compiles. A separate per-SoC change will be made immediately following,
    in order to keep individual patch size down.

    Signed-off-by: Stephen Warren
    Acked-by: Simon Glass
    Signed-off-by: Tom Warren

    Stephen Warren
     

20 Feb, 2014

2 commits

  • Unlike Linux Kernel, U-Boot historically had *.dts files under
    board/$(VENDOR)/dts/ and *.dtsi files under arch/$(ARCH)/dts/.

    I think arch/$(ARCH)/dts dicretory is a better location
    to store both *.dts and *.dtsi files.

    For example, before this commit, board/xilinx/dts directory
    had both Microblaze dts (microblaze-generic.dts) and
    ARM dts (zynq-*.dts), which are totally unrelated.

    This commit moves *.dts to arch/$(ARCH)/dts/ directories,
    allowing us to describe nicely mutiple DTBs generation in the next commit.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • 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 " 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="
    syntax for descending into sub-directories.
    (We can write it like "make $(obj)=" with a shorthand.)
    This means the current working directory is always the top
    of the output directory.

    Signed-off-by: Masahiro Yamada
    Tested-by: Gerhard Sittig

    Masahiro Yamada
     

25 Jan, 2014

1 commit


19 Dec, 2013

1 commit


18 Nov, 2013

1 commit


01 Nov, 2013

1 commit


24 Jul, 2013

1 commit


16 Apr, 2013

1 commit


15 Mar, 2013

4 commits


18 Jan, 2013

2 commits

  • Sort nodes in dts files according the the following rules:

    1) Any nodes that already exist in any /include/d file, in the order
    they appear in the /include/d file.

    2) Any nodes with a reg property, in order of their address.

    3) Any nodes without a reg property, alphabetically by node name.

    Signed-off-by: Allen Martin
    Signed-off-by: Tom Warren

    Allen Martin
     
  • These nodes are unused.

    Signed-off-by: Allen Martin
    Signed-off-by: Tom Warren

    Allen Martin
     

17 Jan, 2013

2 commits

  • The TEC ships with a 7" LCD panel that provides a resolution of 800x480
    pixels. Add a corresponding panel description to the device tree and
    enable LCD support in the configuration.

    Signed-off-by: Thierry Reding
    Signed-off-by: Tom Warren

    Thierry Reding
     
  • The Medcom-Wide has a 15" LCD panel with a resolution of 1366x768
    pixels. Add a corresponding panel description to the device tree and
    enable LCD support in the configuration.

    Signed-off-by: Thierry Reding
    Signed-off-by: Tom Warren

    Thierry Reding
     

30 Oct, 2012

1 commit

  • For Non-Nvidia boards to include newly added features (like emc clock
    scaling) it would be necessary to add each feature to their own board
    Makefile. This is because currently the top Makefile automaticly includes
    these features only for Nvidia boards.

    This patch adds a simple Makefile include so all new features become
    available for non-Nvidia board vendors.

    Cc: Stephen Warren
    Cc: Tom Warren
    Cc: Thierry Reding
    Cc: Lucas Stach
    Signed-off-by: Marc Dietrich
    Acked-by: Stephen Warren
    Acked-by: Thierry Reding
    Signed-off-by: Tom Warren

    Marc Dietrich
     

16 Oct, 2012

4 commits

  • Rename board provided gpio_config_uart() to
    gpio_early_init_uart() as it does the same thing as the equally
    called function provided by the uart-switch code. This allows
    to simply call this function in early board init whether or not
    we are building with CONFIG_UART_SWITCH defined.

    Also provide a weak symbol for this function, to avoid the
    need to provide this function for boards that don't need any
    fixup.

    This patch supersedes the earlier posted
    "tegra: convert gpio_config_uart to weak symbol".
    Build tested with MAKEALL -s tegra20

    Signed-off-by: Lucas Stach
    Acked-by: Simon Glass
    Signed-off-by: Tom Warren

    Lucas Stach
     
  • The move is pretty straight-forward. ap20.h and tegra20.h were renamed to ap.h and tegra.h.
    Some files remain in arch-tegra20 but 'include' a file in 'arch-tegra' with #defines & structs
    that will be common between T20 and T30 HW. HW-specific #defines, etc. stay in the 'arch-tegra20'
    'root' file.

    All boards build OK w/MAKEALL -s tegra20. Checkpatch.pl runs clean. Seaboard works OK.

    Signed-off-by: Tom Warren

    Tom Warren
     
  • Medcom is the marketing name for an older, PXA-based version of the same
    device. In order to avoid confusion, rename the Tegra-based version to
    the new marketing name.

    Signed-off-by: Thierry Reding
    Acked-by: Stephen Warren
    Signed-off-by: Tom Warren

    Thierry Reding
     
  • The official vendor prefix for Avionic Design is now "ad". Update the
    board DTS files accordingly.

    Signed-off-by: Thierry Reding
    Acked-by: Stephen Warren
    Signed-off-by: Tom Warren

    Thierry Reding
     

11 Sep, 2012

1 commit


08 Sep, 2012

1 commit

  • This commit enables NAND support on the Tamonten Evaluation Carrier and
    adds the corresponding device tree nodes. Furthermore, the U-Boot
    environment can now be stored in NAND.

    Signed-off-by: Thierry Reding
    Signed-off-by: Tom Warren

    Thierry Reding
     

01 Sep, 2012

2 commits

  • Change the mkdir commands for the object directories to be
    unconditional. This fixes an issue when building for SPL where
    SRCTREE and OBJTREE are the same, but $(obj) is under SPLTREE.

    Signed-off-by: Allen Martin
    Acked-by: Stephen Warren
    Tested-by: Thierry Reding
    Signed-off-by: Tom Warren

    Allen Martin
     
  • This is make naming consistent with the kernel and devicetree and in
    preparation of pulling out the common tegra20 code.

    Signed-off-by: Allen Martin
    Acked-by: Stephen Warren
    Tested-by: Thierry Reding
    Signed-off-by: Tom Warren

    Allen Martin
     

10 Jul, 2012

2 commits