03 Dec, 2018

4 commits


02 Dec, 2018

2 commits


01 Dec, 2018

2 commits

  • The "Flamingo" carrier-board for the RK3399-Q7 has a RV3029 populated
    and the application will use the off-module RV3029 RTC including the
    battery backed SRAM.

    To support this use case, this commit includes the following changes:
    * updates the rv3029 driver to use DM
    * implements the read8/write8 operations

    This syncs the implementation with the Linux code (based on 4.17),
    porting the trickle-charger support from there (with improvements to
    avoid unnecessary EEPROM updates) and adheres to the Linux DTS
    binding.

    Signed-off-by: Philipp Tomsich
    Tested-by: Klaus Goger

    Philipp Tomsich
     
  • The MicroCrystal RV3029 driver didn't have a Kconfig entry and was not used
    anywhere. Add it to Kconfig to make it selectable.

    Signed-off-by: Philipp Tomsich
    Tested-by: Klaus Goger

    Philipp Tomsich
     

30 Nov, 2018

1 commit


11 Oct, 2018

1 commit


09 Oct, 2018

3 commits


24 Sep, 2018

1 commit


31 Jul, 2018

1 commit


28 Jul, 2018

1 commit


25 Jul, 2018

1 commit


24 Jul, 2018

1 commit

  • rtc_to_tm() and rtc_mktime() are required for some RTC drivers, at least
    PL031. Without this patch, we also need to enable CONFIG_CMD_DATE even if
    we don't want or need this command.

    Signed-off-by: AKASHI Takahiro
    Reviewed-by: Heinrich Schuchardt

    AKASHI Takahiro
     

21 Jul, 2018

1 commit

  • For qemu-x86 the date command produces wrong days of the week:
    Date: 2018-07-06 (Saturday) Time: 18:02:03
    Date: 2018-07-07 (unknown day) Time: 21:02:06

    According to a comment in the Linux driver the mc146818 only updates the
    day of the week if the register value is non-zero.

    Sunday is 1, saturday is 7 unlike in U-Boot (see data sheet
    https://www.nxp.com/docs/en/data-sheet/MC146818.pdf).

    So let's use our library function to determine the day of the week.

    Signed-off-by: Heinrich Schuchardt

    Heinrich Schuchardt
     

20 Jul, 2018

2 commits

  • Our implementation of rtc_to_tm() cannot handle dates of more than
    0x7fffffff seconds after 1970-01-01.

    Adopt the Linux kernel implementation.

    Signed-off-by: Heinrich Schuchardt

    Heinrich Schuchardt
     
  • QEMU provides an emulated ARM AMBA PrimeCell PL031 RTC.

    The patch sets the base address in the board include file according to the
    definition in hw/arm/virt.c of the QEMU source. It defines the Kconfig
    option for the existing driver, and enables the RTC driver in
    qemu_arm64_defconfig and qemu_arm_defconfig as well as the date command.

    We need an RTC to provide the GetTime() runtime service in the UEFI
    subsystem.

    Signed-off-by: Heinrich Schuchardt
    Reviewed-by: Tuomas Tynkkynen
    Tested-by: Tuomas Tynkkynen
    Signed-off-by: AKASHI Takahiro

    Heinrich Schuchardt
     

06 Jun, 2018

2 commits


07 May, 2018

1 commit

  • When U-Boot started using SPDX tags we were among the early adopters and
    there weren't a lot of other examples to borrow from. So we picked the
    area of the file that usually had a full license text and replaced it
    with an appropriate SPDX-License-Identifier: entry. Since then, the
    Linux Kernel has adopted SPDX tags and they place it as the very first
    line in a file (except where shebangs are used, then it's second line)
    and with slightly different comment styles than us.

    In part due to community overlap, in part due to better tag visibility
    and in part for other minor reasons, switch over to that style.

    This commit changes all instances where we have a single declared
    license in the tag as both the before and after are identical in tag
    contents. There's also a few places where I found we did not have a tag
    and have introduced one.

    Signed-off-by: Tom Rini

    Tom Rini
     

28 Apr, 2018

1 commit


07 Apr, 2018

6 commits

  • As of commit 1a1fa2406689 ("rtc: Set valid date after reset") the
    command "date reset" will set the date/time to 2000-01-01 0:00:00 after
    calling rtc_reset(). This means that the rx8025 implementation of
    rtc_reset() does not need to call rtc_set().

    Signed-off-by: Chris Packham

    Chris Packham
     
  • As of commit 1a1fa2406689 ("rtc: Set valid date after reset") the
    command "date reset" will set the date/time to 2000-01-01 0:00:00 after
    calling rtc_reset(). This means that the rs5c372 implementation of
    rtc_reset() does not need to call rtc_set().

    Signed-off-by: Chris Packham

    Chris Packham
     
  • As of commit 1a1fa2406689 ("rtc: Set valid date after reset") the
    command "date reset" will set the date/time to 2000-01-01 0:00:00 after
    calling rtc_reset(). This means that the mx27rtc implementation of
    rtc_reset() can be an empty stub function.

    Signed-off-by: Chris Packham

    Chris Packham
     
  • As of commit 1a1fa2406689 ("rtc: Set valid date after reset") the
    command "date reset" will set the date/time to 2000-01-01 0:00:00 after
    calling rtc_reset(). This means that the ds1374 implementation of
    rtc_reset() doesn't need to call rtc_set().

    Signed-off-by: Chris Packham

    Chris Packham
     
  • As of commit 1a1fa2406689 ("rtc: Set valid date after reset") the
    command "date reset" will set the date/time to 2000-01-01 0:00:00 after
    calling rtc_reset(). This means that the ds1307 implementation of
    rtc_reset() doesn't need to call rtc_set().

    Signed-off-by: Chris Packham
    Reviewed-by: Simon Glass

    Chris Packham
     
  • Adds devicemodel support to the ISL1208 driver.
    This patch drops the non-dm API as no board was using it anyway.
    Also add it to Kconfig.

    Signed-off-by: Klaus Goger
    Reviewed-by: Philipp Tomsich
    Reviewed-by: Simon Glass

    Klaus Goger
     

04 Feb, 2018

1 commit


20 Nov, 2017

1 commit


24 Oct, 2017

1 commit


16 Aug, 2017

1 commit

  • We are now using an env_ prefix for environment functions. Rename these
    two functions for consistency. Also add function comments in common.h.

    Quite a few places use getenv() in a condition context, provoking a
    warning from checkpatch. These are fixed up in this patch also.

    Suggested-by: Wolfgang Denk
    Signed-off-by: Simon Glass

    Simon Glass
     

16 Jun, 2017

1 commit


12 Jun, 2017

1 commit

  • There was for long time no activity in the 8xx area.
    We need to go further and convert to Kconfig, but it
    turned out, nobody is interested anymore in 8xx,
    so remove it (with a heavy heart, knowing that I remove
    here the root of U-Boot).

    Signed-off-by: Heiko Schocher

    Heiko Schocher
     

09 Jun, 2017

1 commit


01 Jun, 2017

1 commit


22 May, 2017

1 commit

  • This subsystem has not been converted to driver model, there is only one
    driver and only one board that uses it. Drop it and its CONFIG option.

    Also drop the rtc4543 RTC driver since it uses TWS.

    Signed-off-by: Simon Glass
    Reviewed-by: Tom Rini

    Simon Glass