25 Feb, 2015

1 commit


13 Feb, 2015

1 commit


10 Feb, 2015

1 commit


30 Jan, 2015

10 commits

  • Move board/compulab/common/splash.c code to
    common/splash_source.c to make it available for everybody. This move
    renames cl_splash_screen_prepare() to splash_source_load(), and
    the compilation of this code is conditional on CONFIG_SPLASH_SOURCE.

    splash_source features:
    * Provide a standardized way for declaring board specific splash screen
    locations
    * Provide existing routines for auto loading the splash image from the
    locations as declared by the board
    * Introduce the "splashsource" environment variable, which makes it
    possible to select the splash image source.

    cm-t35 and cm-fx6 are updated to use the modified version.

    Signed-off-by: Nikita Kiryanov
    Cc: Stefano Babic
    Cc: Tom Rini
    Cc: Igor Grinberg
    Cc: Anatolij Gustschin
    Reviewed-by: Tom Rini
    Acked-by: Igor Grinberg

    Nikita Kiryanov
     
  • Add support for splash screen.
    The splash screen is loaded from the SPI flash and is displayed on the
    HDMI display.

    Signed-off-by: Nikita Kiryanov
    [grinberg@compulab.co.il: minor code and commit message updates]
    Signed-off-by: Igor Grinberg
    Cc: Stefano Babic
    Cc: Igor Grinberg

    Nikita Kiryanov
     
  • Add support for loading splash from sf.

    Signed-off-by: Nikita Kiryanov
    [grinberg@compulab.co.il: staticize the sf global variable]
    Signed-off-by: Igor Grinberg
    Cc: Stefano Babic
    Cc: Igor Grinberg

    Nikita Kiryanov
     
  • Define a generic way for boards to define splash image locations:
    - introduce struct splash_location
    - introduce enum splash_storage
    - update cl_splash_screen_prepare() to take an array of above struct
    and select the appropriate one based on the splashsource environment
    variable (if it is not defined- use the first splash location as default).

    cm-t35 is updated to work with the new interface.

    Signed-off-by: Nikita Kiryanov
    Cc: Stefano Babic
    Cc: Igor Grinberg
    Acked-by: Igor Grinberg

    Nikita Kiryanov
     
  • Move storage device specific code into its own function instead of
    calling it directly from an otherwise storage device independent
    function (cl_splash_screen_prepare).

    This is a preparation for supporting multiple splash locations.

    Signed-off-by: Nikita Kiryanov
    Cc: Stefano Babic
    Cc: Igor Grinberg
    Acked-by: Igor Grinberg

    Nikita Kiryanov
     
  • Use errno values to improve return reporting.

    Signed-off-by: Nikita Kiryanov
    Cc: Stefano Babic
    Cc: Igor Grinberg
    Acked-by: Igor Grinberg

    Nikita Kiryanov
     
  • Add support for hdmi console.

    Signed-off-by: Nikita Kiryanov
    Cc: Stefano Babic
    Cc: Igor Grinberg
    Acked-by: Igor Grinberg

    Nikita Kiryanov
     
  • Obtain 2nd NIC MAC address from baseboard EEPROM and pass it to Linux.

    Signed-off-by: Nikita Kiryanov
    Cc: Stefano Babic
    Cc: Igor Grinberg
    Acked-by: Igor Grinberg

    Nikita Kiryanov
     
  • Implement the option to select the eeprom i2c bus when reading mac
    address.

    Signed-off-by: Nikita Kiryanov
    Cc: Stefano Babic
    Cc: Igor Grinberg
    Cc: Ilya Ledvich
    Cc: Dmitry Lifshitz
    Acked-by: Igor Grinberg

    Nikita Kiryanov
     
  • When passing eth address to Linux via dtb, the "local-mac-address"
    property should be set for "/soc/aips-bus@02100000/ethernet@02188000",
    not "/fec".

    Signed-off-by: Nikita Kiryanov
    Cc: Stefano Babic
    Cc: Igor Grinberg
    Acked-by: Igor Grinberg

    Nikita Kiryanov
     

20 Jan, 2015

1 commit

  • The global_data pointer (gd) has already been set before board_init_f()
    is called. We should not assign it again. We should also not use gdata since
    it is going away.

    Signed-off-by: Simon Glass
    Acked-by: Igor Grinberg
    Tested-by: Nikita Kiryanov
    Acked-by: Nikita Kiryanov

    Simon Glass
     

19 Dec, 2014

1 commit

  • The TrimSlice has an ethernet NIC connected to the PCIe bus. Enable the
    PCIe controller and the network driver so that the device can boot over
    the network.

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

    Thierry Reding
     

05 Dec, 2014

1 commit

  • Boards using the TWL4030 regulator may not all use the LDOs the same way
    (e.g. MMC2 power can be controlled by another LDO than VMMC2).
    This delegates TWL4030 MMC power initializations to board-specific functions,
    that may still call twl4030_power_mmc_init for the default behavior.

    Signed-off-by: Paul Kocialkowski
    Reviewed-by: Tom Rini
    [trini: Fix omap3_evm warning, add twl4030.h]
    Signed-off-by: Tom Rini

    Paul Kocialkowski
     

27 Nov, 2014

1 commit


24 Nov, 2014

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
     

20 Nov, 2014

1 commit


08 Nov, 2014

1 commit


07 Nov, 2014

10 commits

  • Add support for splash screen on both DVI and SCF0403 LCD.

    Signed-off-by: Igor Grinberg
    Reviewed-by: Tom Rini

    Igor Grinberg
     
  • Add both EMAC and SMC911x support.

    Signed-off-by: Igor Grinberg
    Reviewed-by: Tom Rini

    Igor Grinberg
     
  • Add both host and mUSB support.
    Currently, the selection between host USB and mUSB is done through the
    config file.

    Signed-off-by: Igor Grinberg
    Reviewed-by: Tom Rini

    Igor Grinberg
     
  • CompuLab cm-t3517 is Computer on Module (CoM) based on AM3517 SoC.
    Features: up to 256MB DDR2, up to 512MB NAND, USB hub, mUSB, WiFi, BT,
    Analog audio codec, touch screen controller, LED.

    Add basic support including:
    LED, Serial console, NAND, MMC, GPIO, I2C, 256MB DRAM.

    Signed-off-by: Igor Grinberg

    Igor Grinberg
     
  • Switch the default CD GPIO polarity to active low.

    The current hsmmc driver assumption that the CD GPIO is active high, but
    in the real hardware, usually the opposite holds.
    The usual SD card socket has a mechanical switch which is grounded as
    soon as a card is inserted.
    Of course there might be some board logic which inverts the signal, but
    as far as current users are concerned, there is no such logic.

    Current U-Boot users either not using the CD functionality, or have a
    different way (e.g. external to SoC GPIO controller) for checking the
    card presence.

    This patch also brings the polarity assumption in line with the Linux
    kernel and adds appropriate comments.

    This patch also might spare issues once the TWL GPIO driver will be
    converted to the DM.

    Signed-off-by: Igor Grinberg
    Cc: Pantelis Antoniou
    Cc: Dmitry Lifshitz
    Reviewed-by: Tom Rini

    Igor Grinberg
     
  • The fallback is used for cases when CONFIG_SERIAL_TAG defined, but the
    eeprom is not used.
    The fallback is useful for more than one CompuLab board, so move it to a
    common location.

    Signed-off-by: Igor Grinberg
    Reviewed-by: Tom Rini

    Igor Grinberg
     
  • Extract the SMC911x initialization code to a common location where it
    can be reused by other compulab omap3 based boards.

    Signed-off-by: Igor Grinberg
    Reviewed-by: Tom Rini

    Igor Grinberg
     
  • The splash screen loading code can be reused by other compulab boards.
    For now extract it to a common location for further reuse.

    This also switches the splash code dependency from CONFIG_LCD to
    CONFIG_SPLASH_SCREEN as it should normally be.

    In addition this patch fixes the accidental dependency of the
    get_board_mem_timings() function on CONFIG_LCD, by just moving the
    splash code and leaving the above function intact.

    Signed-off-by: Igor Grinberg
    Reviewed-by: Tom Rini

    Igor Grinberg
     
  • Extract the USB hub reset code to a common location where it can be
    reused by other compulab boards.

    Signed-off-by: Igor Grinberg
    Reviewed-by: Tom Rini

    Igor Grinberg
     
  • Move board revision handling code to a common location
    for further reuse.

    Signed-off-by: Igor Grinberg
    Reviewed-by: Tom Rini

    Igor Grinberg
     

06 Nov, 2014

3 commits


29 Oct, 2014

1 commit

  • This commit introduces a Kconfig symbol for each ARM CPU:
    CPU_ARM720T, CPU_ARM920T, CPU_ARM926EJS, CPU_ARM946ES, CPU_ARM1136,
    CPU_ARM1176, CPU_V7, CPU_PXA, CPU_SA1100.
    Also, it adds the CPU feature Kconfig symbol HAS_VBAR which is selected
    for CPU_ARM1176 and CPU_V7.

    For each target, the corresponding CPU is selected and the definition of
    SYS_CPU in the corresponding Kconfig file is removed.

    Also, it removes redundant "string" type in some Kconfig files.

    Signed-off-by: Georges Savoundararadj
    Acked-by: Albert ARIBAUD
    Cc: Masahiro Yamada

    Georges Savoundararadj
     

27 Oct, 2014

2 commits


24 Oct, 2014

1 commit

  • The platform_data definitions are generally referenced from both
    drivers and board files. That is why header files defining
    platform_data sturectures are placed in "include" directory,
    but our top level "include" directory is already too cluttered.

    Let's collect platform_data definitions under the directory
    "include/dm/platform_data" like Linux gathers ones around under
    "include/linux/platform_data".

    This commit moves two header files:

    include/serial_mxc.h -> include/dm/platform_data/serial_mxc.h
    include/serial_pl01x.h -> include/dm/platform_data/serial_pl01x.h

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

23 Oct, 2014

2 commits

  • Fix the following checkpatch issues:

    CHECK: No space is necessary after a cast
    \#39: FILE: arch/arm/include/asm/arch-am33xx/mux.h:39:
    +#define PAD_CTRL_BASE 0x800
    +#define OFFSET(x) (unsigned int) (&((struct pad_signals *) \

    CHECK: Avoid CamelCase:
    \#284: FILE: arch/arm/include/asm/arch-omap3/mux.h:284:
    +#define CONTROL_PADCONF_JTAG_nTRST 0x0A1C

    ERROR: space required after that ',' (ctx:VxV)
    \#446: FILE: arch/arm/include/asm/arch-omap3/mux.h:446:
    +#define MUX_VAL(OFFSET,VALUE)\
    ^
    Cc: Raphael Assenat
    Cc: Ilya Yanok
    Cc: Vaibhav Hiremath
    Cc: Peter Barada
    Cc: Grazvydas Ignotas
    Cc: Stefan Roese
    Cc: Stefano Babic
    Cc: Nagendra T S
    Cc: Nishanth Menon
    Cc: Tom Rini
    Signed-off-by: Igor Grinberg
    Acked-by: Stefan Roese

    Igor Grinberg
     
  • The gpmc_init() function already calls enable_gpmc_cs_config() for chip
    select 0. Although the bus width is configured for 16 bit, it gets
    reconfigured correctly in the omap_gpmc driver later.

    Remove the enable_gpmc_cs_config() function call and the associated
    gpmc_nand_config[] array.

    Signed-off-by: Igor Grinberg

    Igor Grinberg