06 Oct, 2014

12 commits

  • The timer reload value is a property of the timer hardware and there
    is no reason for this to be configurable. Place this into the timer
    driver just like on the other hardware.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Dinh Nguyen
    Acked-by: Pavel Machek

    Marek Vasut
     
  • Add the missing pieces from the reference clock code from Altera. This
    puts the code on par with the Altera U-Boot fork for all but the SDRAM
    self-refresh bits, which are not part of this patch.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Pavel Machek

    Marek Vasut
     
  • Clean up the clock code definitions so they are aligned with mainline
    standards. There are no functional changes in this patch.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Pavel Machek

    Marek Vasut
     
  • Pull out functions to read frequency of Main clock VCO and
    PLL clock VCO as the code is duplicated multiple times.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Dinh Nguyen
    Acked-by: Pavel Machek

    Marek Vasut
     
  • Add the entire bulk of code to read out clock configuration from the SoCFPGA
    CPU registers. This is important for MMC, QSPI and UART drivers as otherwise
    they cannot determine the frequency of their upstream clock.

    Signed-off-by: Pavel Machek
    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek

    V2: Fixed the L4 MP clock divider and synced the clock code with latest
    rocketboards codebase (thanks Dinh for pointing this out)

    Pavel Machek
     
  • The inlining is done by GCC when needed, there is no need to do it
    explicitly. Furthermore, the inline keyword does not force-inline
    the code, but is only a hint for the compiler. Scrub this hint.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Dinh Nguyen
    Acked-by: Pavel Machek

    Marek Vasut
     
  • The bit definitions for clock manager are complete chaos. Implement
    some basic logical order into them.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Pavel Machek

    Marek Vasut
     
  • Clean up the system manager register definition and add the missing
    register definitions in place.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Pavel Machek

    Marek Vasut
     
  • This adds watchdog disable. It is neccessary for running Linux kernel.

    Signed-off-by: Pavel Machek
    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek

    V2: Move RSTMGR_PERMODRST_L4WD0_LSB to reset_manager.h
    Reset watchdog only if CONFIG_HW_WATCHDOG is undefined (the default)

    Pavel Machek
     
  • Sort the list of functional block addresses and fix indentation.
    No functional change.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Pavel Machek
    Acked-by: Chin Liang See

    Marek Vasut
     
  • Add base addresses for all subsystems as documented in the
    Cyclone V HPS documentation.

    Signed-off-by: Pavel Machek
    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Chin Liang See

    Pavel Machek
     
  • Add configuration for the write-allocate mode of L1 D-Cache on ARM.
    This is needed for D-Cache operation on Cortex-A9 on the SoCFPGA .

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Pavel Machek

    Marek Vasut
     

26 Sep, 2014

4 commits


25 Sep, 2014

8 commits

  • Secondary cores need to be released from holdoff by boot release
    registers. With GPP bootrom, they can boot from main memory
    directly. Individual spin table is used for each core. Spin table
    and the boot page is reserved in device tree so OS won't overwrite.

    Signed-off-by: York Sun
    Signed-off-by: Arnab Basu

    York Sun
     
  • DP-DDR is used for DPAA, separated from main memory pool for general
    use. It has 32-bit bus width and use a standard DDR4 DIMM (64-bit).

    Signed-off-by: York Sun

    York Sun
     
  • U-boot has been initializing DDR for the main memory. The presumption
    is the memory stays as a big continuous block, either linear or
    interleaved. This change is to support putting some DDR controllers
    to separated space without counting into main memory. The standalone
    memory controller could use different number of DIMM slots.

    Signed-off-by: York Sun

    York Sun
     
  • This commit moves:
    CONFIG_OF_CONTROL
    CONFIG_OF_SEPARATE
    CONFIG_OF_EMBED
    CONFIG_OF_HOSTFILE

    Because these options are currently not supported for SPL,
    the "Device Tree Control" menu does not appear in the SPL
    configuration.

    Note:
    zynq-common.h should be adjusted so as not to change the
    default value of CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME.

    Signed-off-by: Masahiro Yamada
    Acked-by: Simon Glass
    Cc: Stephen Warren
    Cc: Minkyu Kang
    Acked-by: Michal Simek

    Masahiro Yamada
     
  • The macro MIN, MAX is defined as the aliase of min, max,
    respectively.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • Each CPU of PowerPC has its default linker script under the CPU
    directory, except mpc8xx.

    Every mpc8xx board has its own linker script under the board
    directory, resulting in lots of duplication of linker scripts.

    I notice eight mpc8xx boards have the same linker script.
    We can decrease the number of linker scripts by putting a single
    default linker script, arch/powerpc/cpu/mpc8xx/u-boot.lds.

    Signed-off-by: Masahiro Yamada
    Cc: Wolfgang Denk
    Acked-by: Stefan Roese

    Masahiro Yamada
     
  • "0x00" is a valid serdes protocol for QorIQ parts, and can not be
    used to test whether the serdes is enabled or disabled.

    Signed-off-by: Ebony Zhu
    Reviewed-by: York Sun

    Ebony Zhu
     
  • Fix following issues in USB device-tree fixup:
    - returns when either dr_mode or phy_type not defined.
    This was terminating fix-up when only either property
    was defined in hwconfig string
    - updates dr_mode_type or dr_phy_type with junk value when
    their index is -1. Now these are updated only when their
    respective index is pointing to relevant types
    in modes[] and phys[] array
    - dr_mode_type and dr_phy_type were not NULL for
    each controller

    Signed-off-by: Ramneek Mehresh
    Reviewed-by: York Sun

    ramneek mehresh
     

24 Sep, 2014

1 commit


21 Sep, 2014

1 commit


19 Sep, 2014

3 commits


18 Sep, 2014

3 commits


17 Sep, 2014

3 commits


14 Sep, 2014

3 commits


12 Sep, 2014

2 commits

  • Tom Rini
     
  • The boards using CONFIG_SYS_DV_NOR_BOOT_CFG (i.e. calimain,
    da850evm_direct_nor and enbw_cmc) had the _start symbol defined after
    the CONFIG_SYS_DV_NOR_BOOT_CFG word rather than before it in
    arch/arm/lib/vectors.S. Because of that, if by lack of luck
    'gd->mon_len = (ulong)&__bss_end - (ulong)_start' (see setup_mon_len())
    was a multiple of 4 kiB (see reserve_uboot()), then the last BSS word
    overlapped the first word of the following reserved RAM area (or went
    beyond the top of RAM without such an area) after relocation because
    __image_copy_start did not match _start (see relocate_code()).

    This was broken by commit 41623c9 'arm: move exception handling out of
    start.S files', which defined _start twice (before and after the
    CONFIG_SYS_DV_NOR_BOOT_CFG word), then by commit 0a26e1d 'arm: fix a
    double-definition error of _start symbol', which kept the definition of
    the _start symbol after the CONFIG_SYS_DV_NOR_BOOT_CFG word. This new
    commit fixes this issue by restoring the original behavior, i.e. by
    defining the _start symbol before the CONFIG_SYS_DV_NOR_BOOT_CFG word.

    Signed-off-by: Benoît Thébaudeau
    Cc: Albert Aribaud
    Cc: Manfred Rudigier
    Cc: Christian Riesch
    Cc: Sudhakar Rajashekhara
    Cc: Heiko Schocher

    Benoît Thébaudeau