18 Dec, 2014

2 commits


17 Dec, 2014

1 commit


16 Dec, 2014

8 commits


15 Dec, 2014

2 commits

  • Use asmlinkage defined in include/linux/linkage.h if necessary.
    Actually no ARM board uses asmlinkage, so this commit has no impact.

    Signed-off-by: Masahiro Yamada
    Cc: Albert ARIBAUD

    Masahiro Yamada
     
  • Commit 65dd74a674d6 (x86: ivybridge: Implement SDRAM init) introduced
    x86-specific asmlinkage into arch/x86/include/asm/config.h.

    Commit ed0a2fbf14f7 (x86: Add a definition of asmlinkage) added the
    same macro define again, this time, into include/common.h.
    (Please do not add arch-specific stuff to include/common.h any more;
    it is already too cluttered.)

    The generic asmlinkage is defined in . If you want
    to override it with an arch-specific one, the best way is to add it
    to like Linux Kernel.

    Signed-off-by: Masahiro Yamada
    Cc: Simon Glass
    Tested-by: Simon Glass

    Masahiro Yamada
     

14 Dec, 2014

3 commits


13 Dec, 2014

4 commits

  • Tom Rini
     
  • If the MMC_MODE_DDR_52MHz flag is set in card capabilities bitmask,
    it is never cleared, even if switching to DDR mode fails, and if
    the controller driver uses this flag to check the DDR mode, it can
    take incorrect actions.

    Also, DDR related checks in mmc_startup() incorrectly handle the case
    when the host controller does not support some bus widths (e.g. can't
    support 8 bits), since the host_caps is checked for DDR bit, but not
    bus width bits.

    This fix clearly separates using of card_caps bitmask, having there
    the flags for the capabilities, that the card can support, and actual
    operation mode, described outside of card_caps (i.e. bus_width and
    ddr_mode fields in mmc structure). Separate host controller drivers
    may need to be updated to use the actual flags. Respectively,
    the capabilities checks in mmc_startup are made more correct and clear.

    Also, some clean up is made with errors handling and code syntax layout.

    Signed-off-by: Andrew Gabbasov

    Andrew Gabbasov
     
  • Signed-off-by: Markus Niebel
    Acked-by: Jaehoon Chung

    Markus Niebel
     
  • if the card claims to be high capacity and the card
    is partitioned the capacity shall still be read from
    ext_csd SEC_COUNT even if the resulting capacity is
    smaller than 2 GiB

    Signed-off-by: Markus Niebel
    Acked-by: Jaehoon Chung

    Markus Niebel
     

12 Dec, 2014

20 commits

  • Tom Rini
     
  • Conflicts:
    board/freescale/mx6sxsabresd/mx6sxsabresd.c

    Signed-off-by: Tom Rini

    Tom Rini
     
  • Tom Rini
     
  • Earlier commit 73a1cb27 mistakenly used CONFIG_SYS_TIMER_CLK_FREQ.
    It should be CONFIG_TIMER_CLK_FREQ.

    Signed-off-by: Xiubo Li
    [York Sun: This is the difference between two patch versions]
    Reviewed-by: York Sun

    Xiubo Li
     
  • 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
     
  • Nyan-big is a Tegra124 clamshell board that is very similar to venice2, but
    it has a different panel, the sdcard cd and wp sense are flipped, and it has
    a different revision of the AS3722 PMIC.

    This is the Acer Chromebook 13 CB5-311-T7NN (13.3-inch HD, NVIDIA
    Tegra K1, 2GB). The display is not currently supported, so it should
    boot on other nyan-based Chromebooks also, but only the device tree for
    nyan-big is provided here.

    The device tree file is from Linux but with features removed which are
    unlikely to be supported in U-Boot soon (regulators, pinmux). Also the
    addresses are updated to 32-bit.

    Signed-off-by: Allen Martin
    Signed-off-by: Simon Glass
    (rebase, change to 'nyan-big', fix pinmux that resets nyan-big)

    Allen Martin
     
  • Sync this up with Linux v3.18-rc5. Exclude features that are unlikely to
    supported in U-Boot soon (regulators, pinmux). Also the addresses are
    updated to 32-bit. Otherwise it is the same. Also bring in the dt-bindings
    for pinctrl.

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

    Simon Glass
     
  • Add some basic tests to check that the system works as expected.

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

    Simon Glass
     
  • There seem to be a few EEPROM drivers around - perhaps we should have a
    single standard one? This simple driver is used for sandbox testing, but
    could be pressed into more active service.

    Signed-off-by: Simon Glass
    Acked-by: Heiko Schocher
    Reviewed-by: Masahiro Yamada

    Simon Glass
     
  • Enable the options to bring up I2C on sandbox. Also enable all the available
    I2C commands for testing purposes.

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

    Simon Glass
     
  • In order to test I2C we need some sort of emulation interface. Add hooks
    to allow a driver to emulate an I2C device for sandbox.

    Signed-off-by: Simon Glass
    Acked-by: Heiko Schocher
    Reviewed-by: Masahiro Yamada

    Simon Glass
     
  • The uclass implements the same operations as the current I2C framework but
    makes some changes to make it fit driver model better:

    - Remove the chip address from API calls
    - Remove the address length from API calls
    - Remove concept of 'current' I2C bus
    - Drop all existing init functions

    Acked-by: Heiko Schocher
    Reviewed-by: Masahiro Yamada
    Signed-off-by: Simon Glass

    Simon Glass
     
  • The functions error's numbers are standarized - but the error
    messages are not.

    The errors are often handled with unclear error messages,
    so why not use an errno standarized messages.

    Advantages:
    - This could decrease the binary size.
    - Appended with a detailed information,
    the error message will be clear.

    This commit introduces new function:
    - const char *errno_to_str(int errno)

    The functions returns a pointer to the errno corresponding text message:
    - if errno is null or positive number - a pointer to "Success" message
    - if errno is negative - a pointer to errno related message

    Signed-off-by: Przemyslaw Marczak
    Reviewed-by: Tom Rini

    Przemyslaw Marczak
     
  • Adjust the configuration to use the driver model version of the pl01x
    serial driver. Add the required platform data.

    Signed-off-by: Simon Glass
    Tested-by: Stephen Warren

    Simon Glass
     
  • Move strlcpy() definition from drivers/usb/gadget/ether.c to
    lib/string.c because it is a very useful function.
    Let's add the prototype to include/linux/string.h too.

    Signed-off-by: Masahiro Yamada
    Acked-by: Simon Glass

    Masahiro Yamada
     
  • LS1 has 4 SMMUs for address translation of the masters. All the
    SMMUs' stream IDs are 8-bit. The address translation depends on the
    stream ID of the incoming transaction.
    Each master has unique stream ID assigned to it and is configurable
    through SCFG registers. The stream ID for the masters is identical
    and share the same register field of STREAM ID registers.

    Signed-off-by: Xiubo Li
    Reviewed-by: York Sun

    Xiubo Li
     
  • The Central Security Unit (CSU) allows secure world software to
    change the default access control policies of peripherals/bus
    slaves, determining which bus masters may access them. This
    allows peripherals to be separated into distinct security domains.
    Combined with SMMU configuration of the system masters privileges,
    these features provide protection against indirect unauthorized
    access to data.

    For now we configure all the peripheral access permissions as R/W.

    Signed-off-by: Xiubo Li
    Reviewed-by: York Sun

    Xiubo Li
     
  • Enable hypervisors utilizing the ARMv7 virtualization extension
    on the LS1021A-QDS/TWR boards with the A7 core tile, we add the
    required configuration variable.

    Signed-off-by: Xiubo Li
    Reviewed-by: York Sun

    Xiubo Li
     
  • For some SoCs, the system clock frequency may not equal to the
    ARCH Timer's frequency.

    This patch uses the CONFIG_TIMER_CLK_FREQ instead of
    CONFIG_SYS_CLK_FREQ, then the system clock macro and arch timer
    macor could be set separately and without interfering each other.

    Signed-off-by: Xiubo Li
    Reviewed-by: York Sun

    Xiubo Li
     
  • With the introducing of generic board and ARM-based cores, current
    deep sleep framework doesn't work anymore.
    This patch will convert the current framework to adapt this change.
    Basically it does:
    1. Converts all the Freescale's DDR driver to support deep sleep.
    2. Added basic framework support for ARM-based and PPC-based
    cores separately.

    Signed-off-by: Tang Yuantian
    Reviewed-by: York Sun

    Tang Yuantian