Skip to content

Commits

Commits on Dec 9, 2022

  1. Nokia RX-51: Use ENTRY/ENDPROC for save_boot_params

    ENTRY/ENDPROC macros from linux/linkage.h will make code more readable and
    also will properly mark assembly symbol in ELF binary as function symbol.
    
    Signed-off-by: Pali Rohár <pali@kernel.org>
    pali authored and trini committed Dec 9, 2022
    Copy the full SHA
    544071a View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Dec 5, 2022

  1. Nokia RX-51: Migrate legacy USB device options to Kconfig

    Move a number of legacy USB UDC options to Kconfig, over from the config
    header.
    
    Cc: Pali Rohár <pali@kernel.org>
    Signed-off-by: Tom Rini <trini@konsulko.com>
    trini committed Dec 5, 2022
    Copy the full SHA
    08d01cd View commit details
    View at this point in the history
    Browse the repository at this point in the history
  2. global: Move remaining CONFIG_SYS_* to CFG_SYS_*

    The rest of the unmigrated CONFIG symbols in the CONFIG_SYS namespace do
    not easily transition to Kconfig. In many cases they likely should come
    from the device tree instead. Move these out of CONFIG namespace and in
    to CFG namespace.
    
    Signed-off-by: Tom Rini <trini@konsulko.com>
    Reviewed-by: Simon Glass <sjg@chromium.org>
    trini committed Dec 5, 2022
    Copy the full SHA
    65cc0e2 View commit details
    View at this point in the history
    Browse the repository at this point in the history
  3. global: Move remaining CONFIG_SYS_NS16550_* to CFG_SYS_NS16550_*

    The rest of the unmigrated CONFIG symbols in the CONFIG_SYS_NS16550
    namespace do not easily transition to Kconfig. In many cases they likely
    should come from the device tree instead. Move these out of CONFIG
    namespace and in to CFG namespace.
    
    Signed-off-by: Tom Rini <trini@konsulko.com>
    Reviewed-by: Simon Glass <sjg@chromium.org>
    trini committed Dec 5, 2022
    Copy the full SHA
    9109213 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Oct 31, 2022

  1. Rename CONFIG_SYS_TEXT_BASE to CONFIG_TEXT_BASE

    The current name is inconsistent with SPL which uses CONFIG_SPL_TEXT_BASE
    and this makes it imposible to use CONFIG_VAL().
    
    Rename it to resolve this problem.
    
    Signed-off-by: Simon Glass <sjg@chromium.org>
    sjg20 authored and trini committed Oct 31, 2022
    Copy the full SHA
    9846390 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Oct 18, 2022

  1. Nokia RX-51: Fix compilation with non-zero CONFIG_SYS_TEXT_BASE

    For some unknown reason GNU assembler version 2.31.1 (arm-linux-gnueabi-as
    from Debian Buster) cannot compile following code from located in file
    board/nokia/rx51/lowlevel_init.S:
    
      kernoffs:
        .word  KERNEL_OFFSET - (. - CONFIG_SYS_TEXT_BASE)
    
    when CONFIG_SYS_TEXT_BASE is set to 0x80008000. It throws strange compile
    error which is even without line number:
    
        AS      board/nokia/rx51/lowlevel_init.o
      {standard input}: Assembler messages:
      {standard input}: Error: attempt to get value of unresolved symbol `L0'
      make[2]: *** [scripts/Makefile.build:293: board/nokia/rx51/lowlevel_init.o] Error 1
    
    I have no idea about this error and my experiments showed that ARM GNU
    assembler is happy with negation of that number. So changing code to:
    
      kernoffs:
        .word  . - CONFIG_SYS_TEXT_BASE - KERNEL_OFFSET
    
    and then replacing mathematical addition by substraction of "kernoffs"
    value (so calculation of address does not change) compiles assembler file
    without any error now.
    
    There should be not any functional change.
    
    Signed-off-by: Pali Rohár <pali@kernel.org>
    Reviewed-by: Tom Rini <trini@konsulko.com>
    pali authored and trini committed Oct 18, 2022
    Copy the full SHA
    892759f View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Oct 12, 2022

  1. Nokia RX-51: Fix double space key press

    Space key is indicated by two different bits. Some HW models indicate press
    of space key only by the first bit. Qemu indicates it by both bits at the
    same time, which is currently interpreted by u-boot as double key press.
    
    Fix this issue by setting first bit when only second is set (to support HW
    models which indicate press only by second bit) and always clearing second
    bit before processing to not report double space key press.
    
    Signed-off-by: Pali Rohár <pali@kernel.org>
    pali authored and trini committed Oct 12, 2022
    Copy the full SHA
    edb47d6 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Sep 18, 2022

  1. cyclic: Use schedule() instead of WATCHDOG_RESET()

    Globally replace all occurances of WATCHDOG_RESET() with schedule(),
    which handles the HW_WATCHDOG functionality and the cyclic
    infrastructure.
    
    Signed-off-by: Stefan Roese <sr@denx.de>
    Reviewed-by: Simon Glass <sjg@chromium.org>
    Tested-by: Tom Rini <trini@konsulko.com> [am335x_evm, mx6cuboxi, rpi_3,dra7xx_evm, pine64_plus, am65x_evm, j721e_evm]
    stroese committed Sep 18, 2022
    Copy the full SHA
    29caf93 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Sep 15, 2022

  1. Nokia RX-51: Do not clear unknown memory in lowlevel_init.S

    If kernel image in uImage or zImage format is not detected by
    lowlevel_init.S code then do not clear memory location where image was
    expected. If image is not detected then this memory region is unknown.
    So do not unconditionally clear it.
    
    Signed-off-by: Pali Rohár <pali@kernel.org>
    pali authored and trini committed Sep 15, 2022
    Copy the full SHA
    5c9bf1d View commit details
    View at this point in the history
    Browse the repository at this point in the history
  2. Nokia RX-51: Remove label copy_kernel_start from lowlevel_init.S

    Label copy_kernel_start is now unused. Remove it.
    
    Signed-off-by: Pali Rohár <pali@kernel.org>
    pali authored and trini committed Sep 15, 2022
    Copy the full SHA
    0b6924c View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Aug 20, 2022

  1. Nokia RX-51: Move board required options from defconfig to Kconfig

    Some of config options are board specific and should be set in into their
    default values automatically. So move them from defconfig file to Kconfig
    definitions to ensure that possible user custom defconfig files would have
    these required options also enabled.
    
    Signed-off-by: Pali Rohár <pali@kernel.org>
    pali authored and trini committed Aug 20, 2022
    Copy the full SHA
    9ca6c91 View commit details
    View at this point in the history
    Browse the repository at this point in the history
  2. Nokia RX-51: Simplify calculation of attached kernel image address

    Now when board starup code does not copy image to CONFIG_SYS_TEXT_BASE
    address there is no need to calculate all addresses from base address at
    runtime. The only address which needs to be calculated is attached kernel
    image address which can be simplified at compile time without need to know
    CONFIG_SYS_TEXT_BASE address or relocation address at the runtime.
    
    Signed-off-by: Pali Rohár <pali@kernel.org>
    pali authored and trini committed Aug 20, 2022
    Copy the full SHA
    0ba6ce4 View commit details
    View at this point in the history
    Browse the repository at this point in the history
  3. Nokia RX-51: Simplify copy kernel code

    Expression (r + (r0 - r1)) produce same result as (r - (r1 - r0)). So it
    does not matter which one is called. Always call the first option and
    remove second one.
    
    Signed-off-by: Pali Rohár <pali@kernel.org>
    pali authored and trini committed Aug 20, 2022
    Copy the full SHA
    04bd87c View commit details
    View at this point in the history
    Browse the repository at this point in the history
  4. Nokia RX-51: Use U-Boot generic position independent code

    Switch from custom board specific fixup/copy code to U-Boot generic
    position independent code provided by config option POSITION_INDEPENDENT.
    
    This also slightly decrease size of u-boot.bin binary (by 52 bytes). Note
    that option POSITION_INDEPENDENT increase size but not more than custom
    board fixup/copy code which is being deleted (as it is not needed anymore).
    
    Signed-off-by: Pali Rohár <pali@kernel.org>
    pali authored and trini committed Aug 20, 2022
    Copy the full SHA
    c5be5f6 View commit details
    View at this point in the history
    Browse the repository at this point in the history
  5. Nokia RX-51: Fix invalidating zImage kernel format

    Prior starting copy of kernel image to target location, invalidate also
    zImage magic header. This ensures that on target location would be image
    with valid header only in the case valid header was also in the source
    location and copy from source to target finished successfully. Copy is
    always skipped when kernel image in source location is invalid.
    
    Add also comment to the code which explain what is the code doing.
    
    Fixes: cc434fc ("Nokia RX-51: Add support for booting kernel in zImage format")
    Signed-off-by: Pali Rohár <pali@kernel.org>
    pali authored and trini committed Aug 20, 2022
    Copy the full SHA
    7c4ad98 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on May 9, 2022

  1. Nokia RX-51: Convert to CONFIG_DM_SERIAL

    For CONFIG_DM_SERIAL it is required to increase CONFIG_SYS_MALLOC_F_LEN as
    default value is not enough for memory hungry CONFIG_DM_SERIAL code.
    
    Signed-off-by: Pali Rohár <pali@kernel.org>
    Tested-by: Merlijn Wajer <merlijn@wizzup.org>
    pali authored and trini committed May 9, 2022
    Copy the full SHA
    c7484ce View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Mar 9, 2022

  1. Nokia RX-51: Convert to CONFIG_DM_VIDEO

    Mechanically convert video_hw_init() function to UCLASS_VIDEO probe
    callback and replace CONFIG_CFB_CONSOLE by CONFIG_DM_VIDEO.
    
    As framebuffer base address is setup by the bootloader which loads U-Boot,
    set plat->base to that fixed framebuffer address.
    
    This change was tested in qemu n900 machine and is working fine.
    
    What does not work is CONFIG_VIDEO_LOGO, seems to be buggy.
    
    Signed-off-by: Pali Rohár <pali@kernel.org>
    pali authored and vdsao committed Mar 9, 2022
    Copy the full SHA
    d6213e2 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Feb 8, 2022

  1. Nokia RX-51: Convert to CONFIG_DM_KEYBOARD

    Signed-off-by: Pali Rohár <pali@kernel.org>
    pali authored and trini committed Feb 8, 2022
    Copy the full SHA
    f55d497 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Jan 29, 2022

  1. Nokia RX-51: Convert documentation to rst format

    Convert documentation to rst format
    
    Signed-off-by: Pali Rohár <pali@kernel.org>
    Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
    pali authored and xypron committed Jan 29, 2022
    Copy the full SHA
    92a0940 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Sep 7, 2021

  1. arm: Disable ATAGs support

    With the exceptions of ds109, ds414, icnova-a20-swac, nokia_rx51 and
    stemmy, disable ATAG support.  A large number of platforms had enabled
    support but never supported a kernel so old as to require it.  Further,
    some platforms are old enough to support both, but are well supported by
    devicetree booting, and have been for a number of years.  This is
    because some of the ATAGs related functions have been re-used to provide
    the same kind of information, but for devicetree or just generally to
    inform the user.  When needed still, rename these functions to
    get_board_revision() instead, to avoid conflicts.  In other cases, these
    functions were simply unused, so drop them.
    
    Cc: Andre Przywara <andre.przywara@arm.com>
    Cc: Jagan Teki <jagan@amarulasolutions.com>
    Cc: Phil Sutter <phil@nwl.cc>
    Cc: Stefan Bosch <stefan_b@posteo.net>
    Signed-off-by: Tom Rini <trini@konsulko.com>
    trini committed Sep 7, 2021
    Copy the full SHA
    9774462 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Jul 15, 2021

  1. Nokia RX-51: Add support for booting kernel in zImage format

    Enable U-Boot bootz command and update env scripts to try loading also
    zImage file and to try booting via bootz command.
    
    Update also lowlevel_init.S code for checking validity of zImage magic to
    correctly relocate kernel in zImage format.
    
    This change allows U-Boot to directly boot Linux kernel without need for
    converting kernel image into U-Boot uImage format.
    
    Signed-off-by: Pali Rohár <pali@kernel.org>
    Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
    Link: https://lore.kernel.org/r/20210618132704.32066-1-pali@kernel.org
    pali authored and lokeshvutla committed Jul 15, 2021
    Copy the full SHA
    cc434fc View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Jun 9, 2021

  1. Nokia RX-51: Enable CONFIG_WDT to remove deprecation warning

    Also convert CONFIG_HW_WATCHDOG to CONFIG_WATCHDOG.
    
    Signed-off-by: Pali Roh?r <pali@kernel.org>
    Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
    Link: https://lore.kernel.org/r/20210309201915.16586-1-pali@kernel.org
    pali authored and lokeshvutla committed Jun 9, 2021
    Copy the full SHA
    e61a4ff View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Mar 3, 2021

  1. Nokia RX-51: Move content of rx51.h to rx51.c

    After removal of MUX configuration there is no need to have extra rx51.h.
    
    Signed-off-by: Pali Rohár <pali@kernel.org>
    Reviewed-by: Lukasz Majewski <lukma@denx.de>
    Acked-by: Pavel Machek <pavel@ucw.cz>
    pali authored and Marek Vasut committed Mar 3, 2021
    Copy the full SHA
    69b78cb View commit details
    View at this point in the history
    Browse the repository at this point in the history
  2. Nokia RX-51: Remove function set_muxconf_regs()

    This function is not used and was never called.
    
    This board contains '#define CONFIG_SKIP_LOWLEVEL_INIT' because X-Loader
    set everything up, including MUX configuration.
    
    Also this MUX configuration is incorrect and does not match hardware.
    
    So remove this dead, unused and broken code.
    
    This change will decrease size of U-Boot binary.
    
    Signed-off-by: Pali Rohár <pali@kernel.org>
    Reviewed-by: Lukasz Majewski <lukma@denx.de>
    Acked-by: Pavel Machek <pavel@ucw.cz>
    pali authored and Marek Vasut committed Mar 3, 2021
    Copy the full SHA
    b99e03d View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Feb 15, 2021

  1. Merge branch '2021-02-02-drop-asm_global_data-when-unused'

    - Merge the patch to take <asm/global_data.h> out of <common.h>
    trini committed Feb 15, 2021
    Copy the full SHA
    2ae8043 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Feb 4, 2021

  1. Nokia RX-51: Convert to CONFIG_DM_MMC

    Move twl4030_power_mmc_init() from board_mmc_power_init() to misc_init_r()
    and disable CONFIG_SYS_MALLOC_F. Otherwise U-Boot cannot initialize MMC.
    Also disable CONFIG_CMD_SLEEP CONFIG_DM_DEVICE_REMOVE CONFIG_MMC_VERBOSE to
    free some space.
    
    Signed-off-by: Pali Rohár <pali@kernel.org>
    Reviewed-by: Tom Rini <trini@konsulko.com>
    pali authored and lokeshvutla committed Feb 4, 2021
    Copy the full SHA
    64fd2d2 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Feb 2, 2021

  1. common: Drop asm/global_data.h from common header

    Move this out of the common header and include it only where needed.  In
    a number of cases this requires adding "struct udevice;" to avoid adding
    another large header or in other cases replacing / adding missing header
    files that had been pulled in, very indirectly.   Finally, we have a few
    cases where we did not need to include <asm/global_data.h> at all, so
    remove that include.
    
    Signed-off-by: Simon Glass <sjg@chromium.org>
    Signed-off-by: Tom Rini <trini@konsulko.com>
    sjg20 authored and trini committed Feb 2, 2021
    Copy the full SHA
    401d1c4 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Jan 11, 2021

  1. Merge branch 'next'

    Signed-off-by: Tom Rini <trini@konsulko.com>
    trini committed Jan 11, 2021
    Copy the full SHA
    d71be19 View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Jan 5, 2021

  1. dm: Rename U_BOOT_DEVICE() to U_BOOT_DRVINFO()

    The current macro is a misnomer since it does not declare a device
    directly. Instead, it declares driver_info record which U-Boot uses at
    runtime to create a device.
    
    The distinction seems somewhat minor most of the time, but is becomes
    quite confusing when we actually want to declare a device, with
    of-platdata. We are left trying to distinguish between a device which
    isn't actually device, and a device that is (perhaps an 'instance'?)
    
    It seems better to rename this macro to describe what it actually is. The
    macros is not widely used, since boards should use devicetree to declare
    devices.
    
    Rename it to U_BOOT_DRVINFO(), which indicates clearly that this is
    declaring a new driver_info record, not a device.
    
    Signed-off-by: Simon Glass <sjg@chromium.org>
    sjg20 committed Jan 5, 2021
    Copy the full SHA
    20e442a View commit details
    View at this point in the history
    Browse the repository at this point in the history
  2. Nokia RX-51: Decrease i2c speed to 100000

    It looks like that i2c bus lot of times timeout on some units. Prior
    migration to CONFIG_DM_I2C i2c speed was set to CONFIG_SYS_OMAP24_I2C_SPEED
    value which was 100000. Lower speed fixes timeout problems, so change speed
    back to its previous value.
    
    Signed-off-by: Pali Rohár <pali@kernel.org>
    Fixes: 8d8c181 ("Nokia RX-51: Convert to CONFIG_DM_I2C")
    Reviewed-by: Pavel Machek <pavel@ucw.cz>
    Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
    pali authored and lokeshvutla committed Jan 5, 2021
    Copy the full SHA
    a8ef64e View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Dec 13, 2020

  1. dm: treewide: Rename ..._platdata variables to just ..._plat

    Try to maintain some consistency between these variables by using _plat as
    a suffix for them.
    
    Signed-off-by: Simon Glass <sjg@chromium.org>
    sjg20 committed Dec 13, 2020
    Copy the full SHA
    8a8d24b View commit details
    View at this point in the history
    Browse the repository at this point in the history

Commits on Nov 15, 2020

  1. Nokia RX-51: Make onenand working

    set_gpmc_cs0() sets wrong timings and size for Nokia N900 onenand flash.
    Fix that by setting the correct timings and size from the board code
    
    Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
    Tested-by: Pali Rohár <pali@kernel.org>
    freemangordon authored and lokeshvutla committed Nov 15, 2020
    Copy the full SHA
    71c27db View commit details
    View at this point in the history
    Browse the repository at this point in the history
  2. Nokia RX-51: During init disable lp5523 led instead of resetting it

    After commit d524335 ("OMAP24xx I2C: Add support for set-speed")
    U-Boot is unstable to reset lp5523 led. That commit added pooling for i2c
    poll ARDY bit which apparently is never set. It is not known what is
    happening here.
    
    Purpose of resetting lp5523 led in Nokia RX-51 code is just to turn off
    very bright led which is powered on by NOLO and expects next boot image
    (kernel or U-Boot) to turn it off.
    
    After testing we observed that just disabling lp5523 led is working fine.
    
    So as a workaround to this ARDY bit i2c issue we disable lp5523 led instead
    of resetting it.
    
    Signed-off-by: Pali Rohár <pali@kernel.org>
    Cc: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
    pali authored and lokeshvutla committed Nov 15, 2020
    Copy the full SHA
    b95ffd3 View commit details
    View at this point in the history
    Browse the repository at this point in the history
  3. Nokia RX-51: Fix crashing in U-Boot mmc function omap_hsmmc_stop_clock()

    After commit 04a2ea2 ("mmc: disable UHS modes if Vcc cannot be
    switched on and off") U-Boot started crashing on Nokia RX-51 while
    initializing mmc and caused reboot loop.
    
    It looks like that some clocks were not enabled and this patch fixes U-Boot
    mmc crash.
    
    Signed-off-by: Pali Rohár <pali@kernel.org>
    Cc: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
    pali authored and lokeshvutla committed Nov 15, 2020
    Copy the full SHA
    94f69f4 View commit details
    View at this point in the history
    Browse the repository at this point in the history
  4. Nokia RX-51: Convert to CONFIG_DM_I2C

    Use twl4030_i2c_read(), i2c_get_chip_for_busnum() and remove
    CONFIG_SYS_I2C.
    
    Signed-off-by: Pali Rohár <pali@kernel.org>
    pali authored and lokeshvutla committed Nov 15, 2020
    Copy the full SHA
    8d8c181 View commit details
    View at this point in the history
    Browse the repository at this point in the history
Older