05 Aug, 2015

13 commits


04 Aug, 2015

3 commits

  • Kernel stores information to the RTC_SCRATCH0 and RTC_SCRATCH1 registers
    for wakeup from RTC-only mode. Parse these registers during SPL boot and
    jump to the kernel resume vector if the device is waking up from RTC-only
    mode.

    The RTC scratch register layout used is:

    SCRATCH0 : bits00-31 : kernel resume address
    SCRATCH1 : bits00-15 : RTC magic value used to detect valid config
    SCRATCH1 : bits16-31 : board type information populated by bootloader

    During the normal boot patch the SCRATCH1 : bits16-31 are updated with
    the eeprom read board type data. In the rtc_only boot path the rtc
    scratchpad register is read and the board type is determined and
    correspondingly ddr dpll parameters are set. This is done so as to avoid
    costly i2c read to eeprom.

    RTC-only mode support is currently only enabled for
    am43xx_evm_rtconly_config.
    This is not to be used with epos evm builds.

    Signed-off-by: Tero Kristo
    [j-keerthy@ti.com] Ported to latest branch with minor fixes
    Signed-off-by: Keerthy
    Signed-off-by: Lokesh Vutla

    From: Tero Kristo
     
  • KS2_RSTCTRL_RSTYPE is defined as KS2_PLL_CNTRL_BASE + offset.
    But ddr driver reads KS2_PLL_CNTRL_BASE + KS2_RSTCTRL_RSTYPE
    for detecting reset type, which gives a wrong reset type.
    Fixing it by just reading KS2_RSTCTRL_RSTYPE.

    Reviewed-by: Vitaly Andrianov
    Signed-off-by: Lokesh Vutla

    Lokesh Vutla
     
  • This patch replaces not existing addr_uboot environment variable by
    loadaddr at get_uboot_net and burn_uboot_xxx commands. Otherwise these
    commands are broken.

    Fixes: 3e97f0b63c8e ("configs: ti_armv7_keystone2: switch addresses to generic addresses")
    Acked-by: Nishanth Menon
    Signed-off-by: Vitaly Andrianov

    Vitaly Andrianov
     

30 Jul, 2015

11 commits

  • Because KS2 u-boot works in 32 bit address space the existing ram_size
    global data field cannot be used. The maximum, which the get_ram_size()
    can detect is 2GB only. The ft_board_setup() needs the actual ddr3 size
    to fix up dtb.

    This commit introduces the ddr3_get_size() which uses SPD data to
    calculate the ddr3 size. This function replaces the "ddr3_size"
    environment variable, which was used to get the SODIMM size.

    For platforms, which don't have SODIMM with SPD and ddr3 is populated to
    a board a simple ddr3_get_size function that returns ddr3 size has to be
    implemented. See hardware-k2l.h

    Signed-off-by: Vitaly Andrianov

    Vitaly Andrianov
     
  • This commit replaces hard-coded EMIF and PHY DDR3 configurations for
    predefined SODIMMs to a calculated configuration. The SODIMM parameters
    are read from SODIMM's SPD and used to calculated the configuration.

    The current commit supports calculation for DDR3 with 1600MHz and 1333MHz
    only.

    Signed-off-by: Vitaly Andrianov
    Signed-off-by: Lokesh Vutla

    Vitaly Andrianov
     
  • [https://patchwork.ozlabs.org/patch/492997/]

    K2L and L2E have different from K2HK EthSS version, which uses tag_info
    field for destination slave port.
    This commit configures appropriate BD filed tag_info or pkt_info depending
    on navigator HW version.

    Before that commit the swinfo[2] was used for that purpose. Even if that
    worked on K2HK devices, the correct field for K2HK is the pkt_info.

    Signed-off-by: Vitaly Andrianov
    Acked-by: Murali Karicheri

    Vitaly Andrianov
     
  • using http://git.ti.com/keystone-linux/boot-monitor/trees/master as
    reference (tag K2_BM_15.07) the generated files do not have evm
    extensions by default. So dont use -evm extension.

    Reviewed-by: Murali Karicheri
    Reviewed-by: Tom Rini
    Signed-off-by: Nishanth Menon

    Nishanth Menon
     
  • Switch to using zImage instead of uImage. and while at it, start using
    bootz as default. While at it, get rid of BOOTIMAGE define and start
    using Linux upstream dtb file names.

    Reviewed-by: Murali Karicheri
    Reviewed-by: Tom Rini
    Signed-off-by: Nishanth Menon

    Nishanth Menon
     
  • Use the defaults defined in DEFAULT_LINUX_BOOT_ENV

    Reviewed-by: Murali Karicheri
    Reviewed-by: Tom Rini
    Signed-off-by: Nishanth Menon

    Nishanth Menon
     
  • Try to maintain as much commonality by conditionally including stuff
    in armv7_common as necessary and removing the common defines from
    keystone2 header.

    Note: as part of this change, all keystone2 platforms will now start
    using the generic u-boot prompt instead of the custom prompt.

    Signed-off-by: Nishanth Menon
    Reviewed-by: Tom Rini

    Nishanth Menon
     
  • rename the keystone2 common header into an keystone2 architecture
    specific header which can then reuse the common ti_armv7 config headers.

    Acked-by: Vitaly Andrianov
    Acked-By: Murali Karicheri
    Reviewed-by: Tom Rini
    Signed-off-by: Nishanth Menon

    Nishanth Menon
     
  • CONFIG_LINUX_BOOT_PARAM_ADDR is not a valid configuration option. Do
    just like what the rest of the world does.

    Acked-by: Vitaly Andrianov
    Acked-By: Murali Karicheri
    Reviewed-by: Tom Rini
    Signed-off-by: Nishanth Menon

    Nishanth Menon
     
  • Commit bd2c4522c26d5 ("ti: armv7: enable EXT support in SPL (using
    ti_armv7_common.h)") enabled thumb mode only for SPL builds, however,
    All TI armv7 platforms do support thumb, and there is no reason why the
    space savings cannot be exploited for u-boot as well.

    Reported-by: Murali Karicheri
    Suggested-by: Tom Rini
    Signed-off-by: Nishanth Menon
    Reviewed-by: Tom Rini

    Nishanth Menon
     
  • TI armv7 based SoCs are based on two architectures - one based on OMAP
    generation architecture and others based on Keystone architecture.

    Many of the options are architecture specific, however a lot are common
    with v7 architecture. So, step 1 will be to move out OMAP specific stuff
    from ti_armv7_common into a ti_armv7_omap.h header which is then used
    by all the relevant architecture headers.

    Reviewed-by: Tom Rini
    Signed-off-by: Nishanth Menon

    Nishanth Menon
     

23 Jul, 2015

11 commits


17 Jul, 2015

2 commits