Re: [PATCH v1 0/6] misc: add reboot mode driver

2015-12-28 Thread Andy Yan
Hi Arnd: On 2015年12月28日 23:28, Arnd Bergmann wrote: On Wednesday 23 December 2015 17:31:45 Andy Yan wrote: I also have the idea to put is in drivers/power/reset, But considering this driver have not bind anything about power, so I put it in driver/misc at last. So I hope if some

Re: [PATCH v1 0/6] misc: add reboot mode driver

2015-12-28 Thread Arnd Bergmann
On Monday 28 December 2015 16:56:12 Heiko Stübner wrote: > Am Montag, 28. Dezember 2015, 16:28:55 schrieb Arnd Bergmann: > > On Wednesday 23 December 2015 17:31:45 Andy Yan wrote: > > > +{ .compatible = "rockchip,reboot-mode-nvram", > > > +.data = (void *)&reboot-mode-nvram

Re: [PATCH v1 0/6] misc: add reboot mode driver

2015-12-28 Thread Heiko Stübner
Am Montag, 28. Dezember 2015, 16:28:55 schrieb Arnd Bergmann: > On Wednesday 23 December 2015 17:31:45 Andy Yan wrote: > > +{ .compatible = "rockchip,reboot-mode-nvram", > > +.data = (void *)&reboot-mode-nvram }, > > +{}, > > +}; > > nvram is a complex topic by itse

Re: [PATCH v1 0/6] misc: add reboot mode driver

2015-12-28 Thread Arnd Bergmann
On Wednesday 23 December 2015 17:31:45 Andy Yan wrote: > > I also have the idea to put is in drivers/power/reset, But considering > this driver have not bind anything about power, so I put it in > driver/misc > at last. So I hope if some people can give more suggestions here. I vote

Re: [PATCH v1 0/6] misc: add reboot mode driver

2015-12-23 Thread Andy Yan
Hi Alexandre: On 2015年12月23日 00:47, Alexandre Belloni wrote: Hi, On 22/12/2015 at 17:02:29 +0800, Andy Yan wrote : This driver parse the reboot commands like "reboot loader" and "reboot recovery" to get a boot mode described in the device tree , then call the vendor specific write interfae to

Re: [PATCH v1 0/6] misc: add reboot mode driver

2015-12-22 Thread Alexandre Belloni
Hi, On 22/12/2015 at 17:02:29 +0800, Andy Yan wrote : > > This driver parse the reboot commands like "reboot loader" > and "reboot recovery" to get a boot mode described in the > device tree , then call the vendor specific write interfae > to store the boot mode in some place like special registe

[PATCH v1 0/6] misc: add reboot mode driver

2015-12-22 Thread Andy Yan
This driver parse the reboot commands like "reboot loader" and "reboot recovery" to get a boot mode described in the device tree , then call the vendor specific write interfae to store the boot mode in some place like special register or sram , which can be read by the bootloader after system rebo