05 Mar, 2018

1 commit

  • Thomas reported U-Boot failed to build host tools if libfdt-devel
    package is installed because tools include libfdt headers from
    /usr/include/ instead of using internal ones.

    This commit moves the header code:
    include/libfdt.h -> include/linux/libfdt.h
    include/libfdt_env.h -> include/linux/libfdt_env.h

    and replaces include directives:
    #include -> #include
    #include -> #include

    Reported-by: Thomas Petazzoni
    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

07 Dec, 2017

1 commit

  • Most predefined TLB tables don't have memory coherence bit set for
    SDRAM. This wasn't an issue before invalidate_dcache_range() function
    was enabled. Without the coherence bit, dcache invalidation doesn't
    automatically flush the cache. The coherence bit is already set when
    dynamic TLB table is used. For some boards with different SPL boot
    method, or with legacy fixed setting, this bit needs to be set in
    TLB files.

    Signed-off-by: York Sun

    York Sun
     

16 Aug, 2017

1 commit


15 Aug, 2017

1 commit


13 Apr, 2017

1 commit


06 Apr, 2017

2 commits


26 Jan, 2017

1 commit


07 Oct, 2016

1 commit

  • At present there are two SPI functions only used by freescale which are
    defined in the spi_flash.h header. One function name matches an existing
    generic SPL function.

    Move these into a private header to avoid confusion.

    Arcturus looks like it does not actually support SPI, so drop the SPI code
    from that board.

    Signed-off-by: Simon Glass
    Reviewed-by: Tom Rini

    Simon Glass
     

28 Sep, 2016

1 commit


04 Jun, 2016

2 commits


20 Nov, 2015

1 commit


21 Nov, 2014

1 commit

  • This function can fail if the device tree runs out of space. Rather than
    silently booting with an incomplete device tree, allow the failure to be
    detected.

    Unfortunately this involves changing a lot of places in the code. I have
    not changed behvaiour to return an error where one is not currently
    returned, to avoid unexpected breakage.

    Eventually it would be nice to allow boards to register functions to be
    called to update the device tree. This would avoid all the many functions
    to do this. However it's not clear yet if this should be done using driver
    model or with a linker list. This work is left for later.

    Signed-off-by: Simon Glass
    Acked-by: Anatolij Gustschin

    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
     

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
     

23 Jul, 2014

1 commit

  • find_tlb_idx() is called in board_early_init_r() on multiple boards.
    The return value is not checked before being used to disable a TLB.
    In normal case the return value wouldn't be -1. In case of a mis-
    configuration during porting to a new board, checking the return value
    may be helpful to reveal some user errors.

    Signed-off-by: York Sun

    York Sun
     

22 Feb, 2014

1 commit

  • This function has been around for powerpc. It is used for systems with
    memory more than CONFIG_MAX_MEM_MAPPED. In case of non-contiguous memory,
    this feature can limit U-boot to one block without going over the limit.

    Signed-off-by: York Sun
    Acked-by: Albert ARIBAUD

    York Sun
     

26 Nov, 2013

1 commit


01 Nov, 2013

1 commit


17 Oct, 2013

1 commit

  • Some DDR related structures present in fsl_ddr_dimm_params.h, fsl_ddr_sdram.h, ddr_spd.h
    has various parameters with embedded acronyms capitalized that trigger the CamelCase
    warning in checkpatch.pl

    Convert those variable names to smallcase naming convention and modify all files
    which are using these structures with modified structures.

    Signed-off-by: Priyanka Jain

    Priyanka Jain
     

09 Sep, 2013

1 commit


21 Aug, 2013

4 commits


24 Jul, 2013

1 commit


03 May, 2013

1 commit


09 Aug, 2012

2 commits

  • In order for indirect mode on the PIXIS to work properly, both chip selects
    need to be set to GPCM mode, otherwise writes to the chip select base
    addresses will not actually post to the local bus -- they'll go to the
    NAND controller instead. Therefore, we need to set BR0 and BR1 to GPCM
    mode before switching to indirect mode.

    Signed-off-by: Timur Tabi
    Signed-off-by: Andy Fleming

    Timur Tabi
     
  • Add TLB mappings, board target options, and configuration items
    need for SPI/SD boot.

    Since P1022DS RevB board, the NOR flash have been changed to 16 bit/28bit
    address flash, therefore, when SDHC/ESPI booting and access to eLBC,
    the PMUXCR[0~1] must be set to 10b, and PMUXCR[9~10] must be set to
    00b for them.

    Configure the PX_BRDCFG0[0~1] to 10b which is connected to
    SPI devices as SPI_CS(0:3)_B.

    Signed-off-by: Matthew McClintock
    Signed-off-by: Jerry Huang
    Signed-off-by: Jiang Yutang
    Signed-off-by: Andy Fleming

    Matthew McClintock
     

29 Jul, 2012

1 commit


07 Jul, 2012

1 commit


25 Apr, 2012

1 commit

  • Most 85xx boards can be built as a 32-bit or a 36-bit. Current code sometimes
    displays which of these is actually built, but it's inconsistent. This is
    especially problematic since the "default" build for a given 85xx board can
    be either one, so if you don't see a message, you can't always know which
    size is being used. Not only that, but each board includes code that displays
    the message, so there is duplication.

    The 'bdinfo' command has been updated to display this information, so
    we don't need to display it at boot time. The board-specific code is
    deleted.

    Signed-off-by: Timur Tabi
    Signed-off-by: Andy Fleming

    Timur Tabi
     

28 Oct, 2011

1 commit

  • diu.c: In function 'diu_set_pixel_clock':
    diu.c:77: warning: format '%lu' expects type 'long unsigned int', but argument 2
    has type 'u32'

    Signed-off-by: Marek Vasut
    Cc: Wolfgang Denk
    Cc: Simon Glass
    Cc: Mike Frysinger

    Marek Vasut
     

16 Oct, 2011

1 commit

  • The top level Makefile does not do any recursion into subdirs when
    cleaning, so these clean/distclean targets in random arch/board dirs
    never get used. Punt them all.

    MAKEALL didn't report any errors related to this that I could see.

    Signed-off-by: Mike Frysinger

    Mike Frysinger
     

10 Oct, 2011

1 commit

  • It is not necessary to keep multiple entries for the same setting in DDR
    speed tables. Merge them for smaller tables. Also restructure the tables
    for smaller size. Cleanup some typedefs.

    Enforce strict checking for speed table. If DIMM is running at higher than
    known speed, try to use the highest speed setting. If rank is unknown, it
    has to panic.

    Removed ODT overriding for P2020DS as it is not necessary.

    Signed-off-by: York Sun
    Signed-off-by: Kumar Gala

    York Sun
     

05 Aug, 2011

1 commit

  • The SHARP LQ084S3LG01 is a TFT LCD used on the P1022DS (revision "C") board.
    This device only supports 800x600 resolution, so if that resolution is selected,
    assume that this is the device. The device is attached to the LVDS port
    on the P1022DS board.

    The existing 800x600 entry (for the PDM360NG board) is actually 800x480,
    so we fix that. To support two different 800x resolutions, the Y-resolution
    is now passed to fsl_diu_init() and both values are used to pick the proper
    fb_videomode structure.

    The data for the 800x600 video mode is originally from Jiang Yutang.

    Signed-off-by: Timur Tabi
    Signed-off-by: Jiang Yutang

    Timur Tabi
     

10 Jun, 2011

1 commit


01 May, 2011

1 commit