Re: [PATCH v2 3/4] watchdog/aspeed: add support for dual boot

2019-08-27 Thread Guenter Roeck
On 8/27/19 2:24 AM, Ivan Mikhaylov wrote: On Mon, 2019-08-26 at 17:14 -0700, Guenter Roeck wrote: +/* + * At alternate side the 'access_cs0' sysfs node provides: + * ast2400: a way to get access to the primary SPI flash chip at CS0 + *after booting from the alternate chip at CS1. +

Re: [PATCH v2 3/4] watchdog/aspeed: add support for dual boot

2019-08-27 Thread Ivan Mikhaylov
On Mon, 2019-08-26 at 17:14 -0700, Guenter Roeck wrote: > > +/* > > + * At alternate side the 'access_cs0' sysfs node provides: > > + * ast2400: a way to get access to the primary SPI flash chip at CS0 > > + *after booting from the alternate chip at CS1. > > + * ast2500: a way to re

Re: [PATCH v2 3/4] watchdog/aspeed: add support for dual boot

2019-08-26 Thread Guenter Roeck
On 8/26/19 3:46 AM, Ivan Mikhaylov wrote: Set WDT_CLEAR_TIMEOUT_AND_BOOT_CODE_SELECTION into WDT_CLEAR_TIMEOUT_STATUS to clear out boot code source and re-enable access to the primary SPI flash chip while booted via wdt2 from the alternate chip. AST2400 datasheet says: "In the 2nd flash booting

[PATCH v2 3/4] watchdog/aspeed: add support for dual boot

2019-08-26 Thread Ivan Mikhaylov
Set WDT_CLEAR_TIMEOUT_AND_BOOT_CODE_SELECTION into WDT_CLEAR_TIMEOUT_STATUS to clear out boot code source and re-enable access to the primary SPI flash chip while booted via wdt2 from the alternate chip. AST2400 datasheet says: "In the 2nd flash booting mode, all the address mapping to CS0# would