21 May, 2015

9 commits


20 May, 2015

16 commits

  • We really don't want boards defining fixed MAC addresses in their config
    so we just remove the option to set it in a fixed way. If you must have
    a MAC address that was not provisioned, then use the random MAC address
    functionality.

    Signed-off-by: Joe Hershberger
    Reviewed-by: Simon Glass

    Joe Hershberger
     
  • Implement the random ethaddr fallback in eth.c so it is in a common
    place and not reimplemented in each board or driver that wants this
    behavior.

    Signed-off-by: Joe Hershberger
    Reviewed-by: Simon Glass

    Joe Hershberger
     
  • Targets with CONFIG_NEEDS_MANUAL_RELOC do not use REL/RELA
    relocation (mostly only GOT) where functions aray are not
    updated. This patch is fixing function pointers passed to phy_register
    function.
    This patch was tested on Microblaze architecture.

    Signed-off-by: Michal Simek
    Acked-by: Joe Hershberger

    Michal Simek
     
  • RTL8211F needs to enalbe TXDLY for RGMII during
    phy initialization, so move it to rtl8211f_config
    for early initialization.

    Signed-off-by: Shengzhou Liu
    cc: Joe Hershberger
    Acked-by: Joe Hershberger

    Shengzhou Liu
     
  • When the ethaddr changes in the env, the hardware should also be updated
    so that MAC filtering will work properly without resetting U-Boot.

    Also remove the manual calls to set the hwaddr that was included in a
    few drivers as a result of the framework not doing it.

    Reported-by: Michal Simek
    Signed-off-by: Joe Hershberger
    Tested-by: Michal Simek

    Joe Hershberger
     
  • RTL8211F has different registers from RTL8211E.
    This patch adds support for RTL8211F PHY which
    can be found on Freescale's T1023 RDB board.

    Signed-off-by: Shengzhou Liu
    Acked-by: Joe Hershberger

    Shengzhou Liu
     
  • Sunxi platforms use ARM Cortex A8, A7 and A15 (unsupported yet) CPU cores,
    which all have 64 bytes cache line size.

    This is required to e.g. enable USB gadget.

    Signed-off-by: Paul Kocialkowski
    Reviewed-by: Hans de Goede
    Signed-off-by: Hans de Goede

    Paul Kocialkowski
     
  • sunxi_usbc_vbus_detect was renamed to sunxi_usb_phy_vbus_detect but
    g_dnl_board_usb_cable_connected was still using the old name, breaking the build
    when USB gadget is enabled.

    Signed-off-by: Paul Kocialkowski
    Reviewed-by: Hans de Goede
    Signed-off-by: Hans de Goede

    Paul Kocialkowski
     
  • The ga10h is an 10" tablet with an A33 or A23 soc, 1G RAM, 8G or 16G nand,
    sdio wifi, 2 micro usb ports, 1 otg and 1 host and 1 micro sd slot.

    This commit adds a defconfig for the v1.1 pcb with an a33 soc.

    Signed-off-by: Hans de Goede
    Acked-by: Ian Campbell

    Hans de Goede
     
  • We've never tested the lvds panel support on sun6i+ SoCs until now, and
    unsurprisingly the lvds code needed some fixes to work on my ga10h A33
    tablet with lvds panel. This makes the panel on that tablet actually work.

    Signed-off-by: Hans de Goede
    Acked-by: Ian Campbell

    Hans de Goede
     
  • Make DRAM_ODT_EN Kconfig setting a bool, add a separate DRAM_ODT_CORRECTION
    setting for A23 SoCs and use DRAM_ODT_EN Kconfig everywhere instead of
    only in dram_sun4i.c and hardcoding odt_en elsewhere.

    Note this commit makes no functional changes for existing boards,
    its purpose is to allow changing the odt_en value on future A33 boards.

    For sun4i/sun5i/sun7i boards which set DRAM_ODT_EN=y (which no defconfigs
    currently do) this patch turns on odt for both the DQ and the DQS lines,
    whereas previously it was possibly (but not desirable) to turn odt on only
    for one of them by setting the in DRAM_ODT_EN option to 1 or 2 instead of 3.

    Signed-off-by: Hans de Goede
    Acked-by: Siarhei Siamashka

    Hans de Goede
     
  • When porting the allwinner dram init code to u-boot we missed some code
    setting an extra bit when doing auto dram config.

    This commits add this bit, fixing dram init not working on the ga10h
    10" a33 tablet which I'm bringing up atm.

    Signed-off-by: Hans de Goede
    Acked-by: Ian Campbell

    Hans de Goede
     
  • Add support for UART2 (2-pin version but note that RTS/CTS pins are available
    pn that port for possible future use), can be selected in config
    by using CONFIG_CONS_INDEX=3

    Signed-off-by: Laurent Itti
    Reviewed-by: Hans de Goede
    Signed-off-by: Hans de Goede

    Laurent Itti
     
  • On my A10 OlinuxIno Lime I noticed a huge (5+ seconds) delay coming from
    console_init_r. This turns out to be caused by the preconsole buffer flushing
    to the cfb_console. The Lime only has a 16 bit memory bus and that is already
    heavy used to scan out the 1920x1080 framebuffer.

    The problem is that print_pre_console_buffer() was printing the buffer once
    character at a time and the cfb_console code then ends up doing a cache-flush
    for touched display lines for each character.

    This commit fixes this by first building a 0 terminated buffer and then
    printing it in one puts() call, avoiding unnecessary cache flushes.

    This changes the time for the flush from 5+ seconds to not noticable.

    The downside of this approach is that the pre-console buffer needs to fit
    on the stack, this is not that much to ask since we are talking about plain
    text here. This commit also adjusts the sunxi CONFIG_PRE_CON_BUF_SZ to
    actually fit on the stack. Sunxi currently is the only user of the pre-console
    code so no other boards need to be adjusted.

    Signed-off-by: Hans de Goede
    Reviewed-by: Tom Rini

    Hans de Goede
     
  • We don't need this on sunxi, as we always use calloc or memset when
    initialised memory is required. Clearing this shaves some time of our
    boot time.

    Signed-off-by: Hans de Goede
    Acked-by: Ian Campbell

    Hans de Goede
     
  • Signed-off-by: Paul Kocialkowski
    Acked-by: Hans de Goede
    Signed-off-by: Hans de Goede

    Paul Kocialkowski
     

18 May, 2015

3 commits


16 May, 2015

12 commits