diff mbox

[2/2] powerpc/corenet64_smp_defconfig: enable RTC support

Message ID 1400666751-11459-2-git-send-email-Shengzhou.Liu@freescale.com (mailing list archive)
State Superseded
Delegated to: Scott Wood
Headers show

Commit Message

Shengzhou Liu May 21, 2014, 10:05 a.m. UTC
Enable RTC support for DS1307, DS1374, DS3232, which is
needed on some corenet boards.

Signed-off-by: Shengzhou Liu <Shengzhou.Liu@freescale.com>
---
 arch/powerpc/configs/corenet64_smp_defconfig | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Scott Wood May 22, 2014, 10:51 p.m. UTC | #1
On Wed, May 21, 2014 at 06:05:51PM +0800, Shengzhou Liu wrote:
> Enable RTC support for DS1307, DS1374, DS3232, which is
> needed on some corenet boards.
> 
> Signed-off-by: Shengzhou Liu <Shengzhou.Liu@freescale.com>
> 
> ---
> arch/powerpc/configs/corenet64_smp_defconfig | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/arch/powerpc/configs/corenet64_smp_defconfig b/arch/powerpc/configs/corenet64_smp_defconfig
> index 63508dd..e9c9f86 100644
> --- a/arch/powerpc/configs/corenet64_smp_defconfig
> +++ b/arch/powerpc/configs/corenet64_smp_defconfig
> @@ -125,6 +125,11 @@ CONFIG_USB_EHCI_FSL=y
>  CONFIG_USB_STORAGE=y
>  CONFIG_MMC=y
>  CONFIG_MMC_SDHCI=y
> +CONFIG_RTC_CLASS=y
> +CONFIG_RTC_DRV_CMOS=y
> +CONFIG_RTC_DRV_DS1307=y
> +CONFIG_RTC_DRV_DS1374=y
> +CONFIG_RTC_DRV_DS3232=y
>  CONFIG_EDAC=y
>  CONFIG_EDAC_MM_EDAC=y
>  CONFIG_DMADEVICES=y

Why only corenet64 and not corenet32?

-Scott
Shengzhou Liu May 23, 2014, 8:03 a.m. UTC | #2
> -----Original Message-----
> From: Wood Scott-B07421
> Sent: Friday, May 23, 2014 6:52 AM
> To: Liu Shengzhou-B36685
> Cc: linuxppc-dev@lists.ozlabs.org
> Subject: Re: [2/2] powerpc/corenet64_smp_defconfig: enable RTC support
> 
> > +++ b/arch/powerpc/configs/corenet64_smp_defconfig
> > @@ -125,6 +125,11 @@ CONFIG_USB_EHCI_FSL=y  CONFIG_USB_STORAGE=y
> > CONFIG_MMC=y  CONFIG_MMC_SDHCI=y
> > +CONFIG_RTC_CLASS=y
> > +CONFIG_RTC_DRV_CMOS=y
> > +CONFIG_RTC_DRV_DS1307=y
> > +CONFIG_RTC_DRV_DS1374=y
> > +CONFIG_RTC_DRV_DS3232=y
> >  CONFIG_EDAC=y
> >  CONFIG_EDAC_MM_EDAC=y
> >  CONFIG_DMADEVICES=y
> 
> Why only corenet64 and not corenet32?
> 
> -Scott
[Shengzhou] There is already RTC support in corenet32, only missing in corenet64.
Scott Wood May 23, 2014, 5:06 p.m. UTC | #3
On Fri, 2014-05-23 at 03:03 -0500, Liu Shengzhou-B36685 wrote:
> > -----Original Message-----
> > From: Wood Scott-B07421
> > Sent: Friday, May 23, 2014 6:52 AM
> > To: Liu Shengzhou-B36685
> > Cc: linuxppc-dev@lists.ozlabs.org
> > Subject: Re: [2/2] powerpc/corenet64_smp_defconfig: enable RTC support
> > 
> > > +++ b/arch/powerpc/configs/corenet64_smp_defconfig
> > > @@ -125,6 +125,11 @@ CONFIG_USB_EHCI_FSL=y  CONFIG_USB_STORAGE=y
> > > CONFIG_MMC=y  CONFIG_MMC_SDHCI=y
> > > +CONFIG_RTC_CLASS=y
> > > +CONFIG_RTC_DRV_CMOS=y
> > > +CONFIG_RTC_DRV_DS1307=y
> > > +CONFIG_RTC_DRV_DS1374=y
> > > +CONFIG_RTC_DRV_DS3232=y
> > >  CONFIG_EDAC=y
> > >  CONFIG_EDAC_MM_EDAC=y
> > >  CONFIG_DMADEVICES=y
> > 
> > Why only corenet64 and not corenet32?
> > 
> > -Scott
> [Shengzhou] There is already RTC support in corenet32, only missing in corenet64.

Only DS3232, not DS1307 or DS1374.  Which boards use the latter two?

Why do we need CONFIG_RTC_DRV_CMOS?

-Scott
Shengzhou Liu May 26, 2014, 3:08 a.m. UTC | #4
> -----Original Message-----

> From: Wood Scott-B07421

> Sent: Saturday, May 24, 2014 1:06 AM

> To: Liu Shengzhou-B36685

> Cc: linuxppc-dev@lists.ozlabs.org

> Subject: Re: [2/2] powerpc/corenet64_smp_defconfig: enable RTC support

> 

> On Fri, 2014-05-23 at 03:03 -0500, Liu Shengzhou-B36685 wrote:

> > > -----Original Message-----

> > > From: Wood Scott-B07421

> > > Sent: Friday, May 23, 2014 6:52 AM

> > > To: Liu Shengzhou-B36685

> > > Cc: linuxppc-dev@lists.ozlabs.org

> > > Subject: Re: [2/2] powerpc/corenet64_smp_defconfig: enable RTC

> > > support

> > >

> > > > +++ b/arch/powerpc/configs/corenet64_smp_defconfig

> > > > @@ -125,6 +125,11 @@ CONFIG_USB_EHCI_FSL=y  CONFIG_USB_STORAGE=y

> > > > CONFIG_MMC=y  CONFIG_MMC_SDHCI=y

> > > > +CONFIG_RTC_CLASS=y

> > > > +CONFIG_RTC_DRV_CMOS=y

> > > > +CONFIG_RTC_DRV_DS1307=y

> > > > +CONFIG_RTC_DRV_DS1374=y

> > > > +CONFIG_RTC_DRV_DS3232=y

> > > >  CONFIG_EDAC=y

> > > >  CONFIG_EDAC_MM_EDAC=y

> > > >  CONFIG_DMADEVICES=y

> > >

> > > Why only corenet64 and not corenet32?

> > >

> > > -Scott

> > [Shengzhou] There is already RTC support in corenet32, only missing in

> corenet64.

> 

> Only DS3232, not DS1307 or DS1374.  Which boards use the latter two?

> 

> Why do we need CONFIG_RTC_DRV_CMOS?

> 

> -Scott

> 

[Shengzhou] so far DS1307 and DS1374 occur only on those boards with corenet64. 
CONFIG_RTC_DRV_CMOS is enabled in mpc85xx_defconfig, mpc85xx_smp_defconfig, corenet32_smp_defconfig, etc, here keeps consistent in corenet64.
It seems CONFIG_RTC_DRV_CMOS is not needed on 85xx platform, do we need to remove CONFIG_RTC_DRV_CMOS from all 85xx/corenet defconfig? If so, I will post a new patch to do it.
Kumar Gala May 27, 2014, 3:33 p.m. UTC | #5
On May 25, 2014, at 10:08 PM, Shengzhou.Liu@freescale.com wrote:

> 
>> -----Original Message-----
>> From: Wood Scott-B07421
>> Sent: Saturday, May 24, 2014 1:06 AM
>> To: Liu Shengzhou-B36685
>> Cc: linuxppc-dev@lists.ozlabs.org
>> Subject: Re: [2/2] powerpc/corenet64_smp_defconfig: enable RTC support
>> 
>> On Fri, 2014-05-23 at 03:03 -0500, Liu Shengzhou-B36685 wrote:
>>>> -----Original Message-----
>>>> From: Wood Scott-B07421
>>>> Sent: Friday, May 23, 2014 6:52 AM
>>>> To: Liu Shengzhou-B36685
>>>> Cc: linuxppc-dev@lists.ozlabs.org
>>>> Subject: Re: [2/2] powerpc/corenet64_smp_defconfig: enable RTC
>>>> support
>>>> 
>>>>> +++ b/arch/powerpc/configs/corenet64_smp_defconfig
>>>>> @@ -125,6 +125,11 @@ CONFIG_USB_EHCI_FSL=y  CONFIG_USB_STORAGE=y
>>>>> CONFIG_MMC=y  CONFIG_MMC_SDHCI=y
>>>>> +CONFIG_RTC_CLASS=y
>>>>> +CONFIG_RTC_DRV_CMOS=y
>>>>> +CONFIG_RTC_DRV_DS1307=y
>>>>> +CONFIG_RTC_DRV_DS1374=y
>>>>> +CONFIG_RTC_DRV_DS3232=y
>>>>> CONFIG_EDAC=y
>>>>> CONFIG_EDAC_MM_EDAC=y
>>>>> CONFIG_DMADEVICES=y
>>>> 
>>>> Why only corenet64 and not corenet32?
>>>> 
>>>> -Scott
>>> [Shengzhou] There is already RTC support in corenet32, only missing in
>> corenet64.
>> 
>> Only DS3232, not DS1307 or DS1374.  Which boards use the latter two?
>> 
>> Why do we need CONFIG_RTC_DRV_CMOS?
>> 
>> -Scott
>> 
> [Shengzhou] so far DS1307 and DS1374 occur only on those boards with corenet64. 
> CONFIG_RTC_DRV_CMOS is enabled in mpc85xx_defconfig, mpc85xx_smp_defconfig, corenet32_smp_defconfig, etc, here keeps consistent in corenet64.
> It seems CONFIG_RTC_DRV_CMOS is not needed on 85xx platform, do we need to remove CONFIG_RTC_DRV_CMOS from all 85xx/corenet defconfig? If so, I will post a new patch to do it.

The CDS board uses an RTC over ISA if I remember correctly, not sure what driver deals with that (if its CONFIG_RTC_DRV_CMOS) or something else.

- k
Scott Wood May 27, 2014, 4:21 p.m. UTC | #6
On Tue, 2014-05-27 at 10:33 -0500, Kumar Gala wrote:
> On May 25, 2014, at 10:08 PM, Shengzhou.Liu@freescale.com wrote:
> 
> > 
> >> -----Original Message-----
> >> From: Wood Scott-B07421
> >> Sent: Saturday, May 24, 2014 1:06 AM
> >> To: Liu Shengzhou-B36685
> >> Cc: linuxppc-dev@lists.ozlabs.org
> >> Subject: Re: [2/2] powerpc/corenet64_smp_defconfig: enable RTC support
> >> 
> >> On Fri, 2014-05-23 at 03:03 -0500, Liu Shengzhou-B36685 wrote:
> >>>> -----Original Message-----
> >>>> From: Wood Scott-B07421
> >>>> Sent: Friday, May 23, 2014 6:52 AM
> >>>> To: Liu Shengzhou-B36685
> >>>> Cc: linuxppc-dev@lists.ozlabs.org
> >>>> Subject: Re: [2/2] powerpc/corenet64_smp_defconfig: enable RTC
> >>>> support
> >>>> 
> >>>>> +++ b/arch/powerpc/configs/corenet64_smp_defconfig
> >>>>> @@ -125,6 +125,11 @@ CONFIG_USB_EHCI_FSL=y  CONFIG_USB_STORAGE=y
> >>>>> CONFIG_MMC=y  CONFIG_MMC_SDHCI=y
> >>>>> +CONFIG_RTC_CLASS=y
> >>>>> +CONFIG_RTC_DRV_CMOS=y
> >>>>> +CONFIG_RTC_DRV_DS1307=y
> >>>>> +CONFIG_RTC_DRV_DS1374=y
> >>>>> +CONFIG_RTC_DRV_DS3232=y
> >>>>> CONFIG_EDAC=y
> >>>>> CONFIG_EDAC_MM_EDAC=y
> >>>>> CONFIG_DMADEVICES=y
> >>>> 
> >>>> Why only corenet64 and not corenet32?
> >>>> 
> >>>> -Scott
> >>> [Shengzhou] There is already RTC support in corenet32, only missing in
> >> corenet64.
> >> 
> >> Only DS3232, not DS1307 or DS1374.  Which boards use the latter two?
> >> 
> >> Why do we need CONFIG_RTC_DRV_CMOS?
> >> 
> >> -Scott
> >> 
> > [Shengzhou] so far DS1307 and DS1374 occur only on those boards with corenet64. 

Which boards?  I don't see them in any corenet dts files.  I do see some
instances of ds1374 in the dts files of boards non-corenet mpc85xx
boards (mpc8568mds, mpc8569mds, and p1021mds), yet it's not in the
mpc85xx_defconfig or mpc85xx_smp_defconfig.

> > CONFIG_RTC_DRV_CMOS is enabled in mpc85xx_defconfig, mpc85xx_smp_defconfig, corenet32_smp_defconfig, etc, here keeps consistent in corenet64.
> > It seems CONFIG_RTC_DRV_CMOS is not needed on 85xx platform, do we need to remove CONFIG_RTC_DRV_CMOS from all 85xx/corenet defconfig? If so, I will post a new patch to do it.
> 
> The CDS board uses an RTC over ISA if I remember correctly, not sure what driver deals with that (if its CONFIG_RTC_DRV_CMOS) or something else.

If it's just CDS then we don't need it in either corenet config.

-Scott
Shengzhou Liu May 28, 2014, 6:50 a.m. UTC | #7
> -----Original Message-----

> From: Wood Scott-B07421

> Sent: Wednesday, May 28, 2014 12:21 AM

> To: Kumar Gala

> Cc: Liu Shengzhou-B36685; linuxppc-dev@lists.ozlabs.org

> Subject: Re: [2/2] powerpc/corenet64_smp_defconfig: enable RTC support

> 

> On Tue, 2014-05-27 at 10:33 -0500, Kumar Gala wrote:

> > On May 25, 2014, at 10:08 PM, Shengzhou.Liu@freescale.com wrote:

> >

> > >

> > >> -----Original Message-----

> > >> From: Wood Scott-B07421

> > >> Sent: Saturday, May 24, 2014 1:06 AM

> > >> To: Liu Shengzhou-B36685

> > >> Cc: linuxppc-dev@lists.ozlabs.org

> > >> Subject: Re: [2/2] powerpc/corenet64_smp_defconfig: enable RTC

> > >> support

> > >>

> > >> On Fri, 2014-05-23 at 03:03 -0500, Liu Shengzhou-B36685 wrote:

> > >>>> -----Original Message-----

> > >>>> From: Wood Scott-B07421

> > >>>> Sent: Friday, May 23, 2014 6:52 AM

> > >>>> To: Liu Shengzhou-B36685

> > >>>> Cc: linuxppc-dev@lists.ozlabs.org

> > >>>> Subject: Re: [2/2] powerpc/corenet64_smp_defconfig: enable RTC

> > >>>> support

> > >>>>

> > >>>>> +++ b/arch/powerpc/configs/corenet64_smp_defconfig

> > >>>>> @@ -125,6 +125,11 @@ CONFIG_USB_EHCI_FSL=y  CONFIG_USB_STORAGE=y

> > >>>>> CONFIG_MMC=y  CONFIG_MMC_SDHCI=y

> > >>>>> +CONFIG_RTC_CLASS=y

> > >>>>> +CONFIG_RTC_DRV_CMOS=y

> > >>>>> +CONFIG_RTC_DRV_DS1307=y

> > >>>>> +CONFIG_RTC_DRV_DS1374=y

> > >>>>> +CONFIG_RTC_DRV_DS3232=y

> > >>>>> CONFIG_EDAC=y

> > >>>>> CONFIG_EDAC_MM_EDAC=y

> > >>>>> CONFIG_DMADEVICES=y

> > >>>>

> > >>>> Why only corenet64 and not corenet32?

> > >>>>

> > >>>> -Scott

> > >>> [Shengzhou] There is already RTC support in corenet32, only

> > >>> missing in

> > >> corenet64.

> > >>

> > >> Only DS3232, not DS1307 or DS1374.  Which boards use the latter two?

> > >>

> > >> Why do we need CONFIG_RTC_DRV_CMOS?

> > >>

> > >> -Scott

> > >>

> > > [Shengzhou] so far DS1307 and DS1374 occur only on those boards with

> corenet64.

> 

> Which boards?  I don't see them in any corenet dts files.  


[Shengzhou] CONFIG_RTC_DRV_DS1307 is needed for ds1339 on t2080rdb.

> I do see some instances of ds1374 in the dts files of boards non-corenet mpc85xx boards

> (mpc8568mds, mpc8569mds, and p1021mds), yet it's not in the

> mpc85xx_defconfig or mpc85xx_smp_defconfig.

> 

> > > CONFIG_RTC_DRV_CMOS is enabled in mpc85xx_defconfig,

> mpc85xx_smp_defconfig, corenet32_smp_defconfig, etc, here keeps

> consistent in corenet64.

> > > It seems CONFIG_RTC_DRV_CMOS is not needed on 85xx platform, do we

> need to remove CONFIG_RTC_DRV_CMOS from all 85xx/corenet defconfig? If so,

> I will post a new patch to do it.

> >

> > The CDS board uses an RTC over ISA if I remember correctly, not sure

> what driver deals with that (if its CONFIG_RTC_DRV_CMOS) or something

> else.

> 

> If it's just CDS then we don't need it in either corenet config.

> 

> -Scott

> 

[Shengzhou] yes, mpc8548cds board uses CONFIG_RTC_DRV_CMOS to deal with rtc. 
I updated these changes with new patch v2: http://patchwork.ozlabs.org/patch/353243/
diff mbox

Patch

diff --git a/arch/powerpc/configs/corenet64_smp_defconfig b/arch/powerpc/configs/corenet64_smp_defconfig
index 63508dd..e9c9f86 100644
--- a/arch/powerpc/configs/corenet64_smp_defconfig
+++ b/arch/powerpc/configs/corenet64_smp_defconfig
@@ -125,6 +125,11 @@  CONFIG_USB_EHCI_FSL=y
 CONFIG_USB_STORAGE=y
 CONFIG_MMC=y
 CONFIG_MMC_SDHCI=y
+CONFIG_RTC_CLASS=y
+CONFIG_RTC_DRV_CMOS=y
+CONFIG_RTC_DRV_DS1307=y
+CONFIG_RTC_DRV_DS1374=y
+CONFIG_RTC_DRV_DS3232=y
 CONFIG_EDAC=y
 CONFIG_EDAC_MM_EDAC=y
 CONFIG_DMADEVICES=y