Re: [U-Boot] [PATCH v2] nios2: convert nios2 cpu to driver model

2015-09-29 Thread Simon Glass
Hi, On 29 September 2015 at 08:29, Bin Meng wrote: > On Tue, Sep 29, 2015 at 10:28 PM, Bin Meng wrote: >> +Simon >> >> On Tue, Sep 29, 2015 at 3:18 PM, Thomas Chou wrote: >>> Hi Marek, >>> >>> On 09/29/2015 10:45 AM, Marek Vasut wrote: > > --- a/arch/Kconfig > +++ b/arch/Kconfig >>>

Re: [U-Boot] [PATCH v2] nios2: convert nios2 cpu to driver model

2015-09-29 Thread Bin Meng
On Tue, Sep 29, 2015 at 10:28 PM, Bin Meng wrote: > +Simon > > On Tue, Sep 29, 2015 at 3:18 PM, Thomas Chou wrote: >> Hi Marek, >> >> On 09/29/2015 10:45 AM, Marek Vasut wrote: --- a/arch/Kconfig +++ b/arch/Kconfig @@ -64,6 +64,9 @@ config NIOS2 select HAVE_GENERI

Re: [U-Boot] [PATCH v2] nios2: convert nios2 cpu to driver model

2015-09-29 Thread Bin Meng
+Simon On Tue, Sep 29, 2015 at 3:18 PM, Thomas Chou wrote: > Hi Marek, > > On 09/29/2015 10:45 AM, Marek Vasut wrote: >>> >>> --- a/arch/Kconfig >>> +++ b/arch/Kconfig >>> @@ -64,6 +64,9 @@ config NIOS2 >>> select HAVE_GENERIC_BOARD >>> select SYS_GENERIC_BOARD >>> select

Re: [U-Boot] [PATCH v2] nios2: convert nios2 cpu to driver model

2015-09-29 Thread Thomas Chou
Hi Marek, On 09/29/2015 10:45 AM, Marek Vasut wrote: --- a/arch/Kconfig +++ b/arch/Kconfig @@ -64,6 +64,9 @@ config NIOS2 select HAVE_GENERIC_BOARD select SYS_GENERIC_BOARD select SUPPORT_OF_CONTROL + select OF_CONTROL + select DM + select CPU What's t

Re: [U-Boot] [PATCH v2] nios2: convert nios2 cpu to driver model

2015-09-28 Thread Marek Vasut
On Tuesday, September 29, 2015 at 03:28:01 AM, Thomas Chou wrote: > Convert nios2 cpu to driver model. The cpu parameters are > extracted from device tree and saved to global data structure. > We will use them to replace the custom_fpga.h . > > Signed-off-by: Thomas Chou Hi! Minor nitpicks belo

[U-Boot] [PATCH v2] nios2: convert nios2 cpu to driver model

2015-09-28 Thread Thomas Chou
Convert nios2 cpu to driver model. The cpu parameters are extracted from device tree and saved to global data structure. We will use them to replace the custom_fpga.h . Signed-off-by: Thomas Chou --- v2 move cpu param setup to arch_cpu_init_dm, remove probe. arch/Kconfig