03 Dec, 2018
4 commits
-
After this change the m41t62.c can be used with RTC subsystem (i.e. date
command) which uses device model (DM).Signed-off-by: Lukasz Majewski
Reviewed-by: Stefan Roese -
This change facilitates the conversion of m41t62 RTC driver to device
model (DM).Signed-off-by: Lukasz Majewski
Reviewed-by: Stefan Roese -
No functional change for this commit.
Signed-off-by: Lukasz Majewski
Reviewed-by: Stefan Roese -
This patch moves the RTC M41T62 config define to Kconfig.
Signed-off-by: Lukasz Majewski
Reviewed-by: Stefan Roese
Reviewed-by: Simon Glass
02 Dec, 2018
2 commits
-
Variable 'days' must be defined as signed int. Otherwise the conversion
fails for some dates, e.g. 2004-08-25. Cf function rtc_time64_to_tm() in
the Linux kernel source.Fixes: 992c1db45591 "drivers: rtc: resolve year 2038 problem in rtc_to_tm"
Signed-off-by: Heinrich Schuchardt -
Improvements:
- RK3188 USB-UART functionality
- errors triggering a hard-stop in SPL on the RK3399 are reported
- Rockchip RV1108 (SoC) support
- MicroCrystal RV3029 (RTC) DM driverFixes:
- RK3188 early UART setup
- limit SD-card frequency to 40MHz on the RK3399-Q7
- MIPI fixes
- RK3399 CPUB clock initialisation
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 operationsThis 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 -
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
30 Nov, 2018
1 commit
-
Some RTC chips have child drivers, e.g. to provide access to their
non-volatile RAM. Scan for these when binding.Signed-off-by: Simon Glass
11 Oct, 2018
1 commit
-
Test improvements to tidy up output and drop duplicate tests
Sandbox SPL/TPL support
Various dm-related improvements
09 Oct, 2018
3 commits
-
Add Kconfig options so that the RTC can be used in SPL and TPL. This is
helpful for accessing the contents of CMOS RAM, for example.Signed-off-by: Simon Glass
-
Move this option to Kconfig and tidy up the two boards which use it.
Signed-off-by: Simon Glass
-
This can be used for device register access from board code.
This allows access to capabilities in the RTC chip not abstracted in
U-Boot's RTC class. E.g., device NVRAM or a tamper detection circuit.Cc: Klaus Goger
Cc: Philipp Tomsich
Cc: Simon Glass
Signed-off-by: Trent Piepho
Reviewed-by: Philipp Tomsich
24 Sep, 2018
1 commit
-
With this patch, PL031 driver is converted to driver-model-compliant
driver. In addition, CONFIG_SYS_RTC_PL031_BASE is no longer valid.Signed-off-by: AKASHI Takahiro
Signed-off-by: Alexander Graf
31 Jul, 2018
1 commit
-
Patch queue for efi - 2018-07-25
Highlights this time:
- Many small fixes to improve spec compatibility (found by SCT)
- Almost enough to run with sandbox target
- GetTime() improvements
- Enable EFI_LOADER and HYP entry on ARMv7 with NONSEC=y
28 Jul, 2018
1 commit
-
The driver sets the weekday incorrectly when called by the
'date set' command.Sunday is 1, Saturday is 7 unlike in U-Boot (see data sheet
https://www.nxp.com/docs/en/data-sheet/MC146818.pdf, table 3).Signed-off-by: Heinrich Schuchardt
25 Jul, 2018
1 commit
-
The EFI subsystem accesses the real time clock and is enabled by default.
So we should drop any CONFIG_CMD_DATE dependency from the real time clock
drivers.Signed-off-by: Heinrich Schuchardt
Signed-off-by: Alexander Graf
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
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:06According 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
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
-
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
06 Jun, 2018
2 commits
-
Add DM support for the Marvell RTC driver.
Signed-off-by: Chris Packham
Reviewed-by: Stefan Roese -
Split the rtc_{get,set,reset} functions so that the bodies can be used
in a DM driver.Signed-off-by: Chris Packham
Reviewed-by: Stefan Roese
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
28 Apr, 2018
1 commit
-
We have a large number of places where while we historically referenced
gd in the code we no longer do, as well as cases where the code added
that line "just in case" during development and never dropped it.Signed-off-by: Tom Rini
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
-
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
-
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
-
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
-
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 -
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
04 Feb, 2018
1 commit
-
Add a new driver for RX8010SJ rtc chip. The driver implements both
formats of U-Boot driver model.Signed-off-by: Nandor Han
Signed-off-by: Martyn Welch
Signed-off-by: Sebastian Reichel
20 Nov, 2017
1 commit
-
Add support for S35392A RTC. The driver supports both U-Boot driver
models.Signed-off-by: Nandor Han
Signed-off-by: Martyn Welch
Cc: Heiko Schocher
24 Oct, 2017
1 commit
-
RTC_CONFIG_D register contains the day within the month to generate
an alarm, not the month. This corrects the printf to indicate it.Signed-off-by: Bin Meng
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
16 Jun, 2017
1 commit
-
There was for long time no activity in the mpx5xxx area.
We need to go further and convert to Kconfig, but it
turned out, nobody is interested anymore in mpc5xxx,
so remove it.Signed-off-by: Heiko Schocher
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
09 Jun, 2017
1 commit
-
There is some inconsistency between uses of CONFIG_RTC_DS13xx and
CONFIG_SYS_RTC_DS13xx. Address this by dropping the "SYS" from
these variables.Signed-off-by: Chris Packham
Reviewed-by: Simon Glass
01 Jun, 2017
1 commit
-
This is not needed in this driver. Drop it.
Signed-off-by: Simon Glass
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