Re: [PATCH v2 06/10] rtc: add rtc command

2020-06-02 Thread Simon Glass
Hi Rasmus, On Tue, 2 Jun 2020 at 08:36, Rasmus Villemoes wrote: > > On 02/06/2020 15.22, Simon Glass wrote: > > Hi Rasmus, > > > > On Tue, 2 Jun 2020 at 03:13, Rasmus Villemoes > > wrote: > >> > >> On 31/05/2020 16.07, Simon Glass wrote: > >>> Hi Rasmus, > >>> > >>> On Tue, 19 May 2020 at

Re: [PATCH v2 06/10] rtc: add rtc command

2020-06-02 Thread Rasmus Villemoes
On 02/06/2020 15.22, Simon Glass wrote: > Hi Rasmus, > > On Tue, 2 Jun 2020 at 03:13, Rasmus Villemoes > wrote: >> >> On 31/05/2020 16.07, Simon Glass wrote: >>> Hi Rasmus, >>> >>> On Tue, 19 May 2020 at 16:01, Rasmus Villemoes >>> wrote: > > [..] > +int do_rtc(cmd_tbl_t *cmdtp, int

Re: [PATCH v2 06/10] rtc: add rtc command

2020-06-02 Thread Simon Glass
Hi Rasmus, On Tue, 2 Jun 2020 at 03:13, Rasmus Villemoes wrote: > > On 31/05/2020 16.07, Simon Glass wrote: > > Hi Rasmus, > > > > On Tue, 19 May 2020 at 16:01, Rasmus Villemoes > > wrote: > >> [..] > >> +int do_rtc(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) > >> +{ > >> +

Re: [PATCH v2 06/10] rtc: add rtc command

2020-06-02 Thread Rasmus Villemoes
On 31/05/2020 16.07, Simon Glass wrote: > Hi Rasmus, > > On Tue, 19 May 2020 at 16:01, Rasmus Villemoes > wrote: >> >> +static int do_rtc_read(struct udevice *dev, int argc, char * const argv[]) >> +{ >> + u8 buf[MAX_RTC_BYTES]; >> + int reg, len, ret; >> + u8 *addr; >> + >> +

Re: [PATCH v2 06/10] rtc: add rtc command

2020-05-31 Thread Simon Glass
Hi Rasmus, On Tue, 19 May 2020 at 16:01, Rasmus Villemoes wrote: > > Mostly as an aid for debugging RTC drivers, provide a command that can > be used to read/write arbitrary registers (assuming the driver > provides the read/write methods or their single-register-at-a-time > variants). > >

[PATCH v2 06/10] rtc: add rtc command

2020-05-19 Thread Rasmus Villemoes
Mostly as an aid for debugging RTC drivers, provide a command that can be used to read/write arbitrary registers (assuming the driver provides the read/write methods or their single-register-at-a-time variants). Signed-off-by: Rasmus Villemoes --- cmd/Kconfig | 6 ++ cmd/Makefile | 1 +