Re: [PATCH] SDRC: Remove SDRC_POWER register configuration from SDRC init.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jun 17, 2009 at 11:03 PM, <samu.p.onkalo@xxxxxxxxx> wrote:
>
> Hi,
>
> Perhaps someone from TI could comment that. I'm not sure if I can share
> errata information for public discussion.
>
> Br,
> Samu
>
> >-----Original Message-----
> >From: ext Paul Walmsley [mailto:paul@xxxxxxxxx]
> >Sent: 17 June, 2009 19:25
> >To: Onkalo Samu.P (Nokia-D/Tampere); Bityutskiy Artem
> >(Nokia-D/Helsinki)
> >Cc: linux-omap@xxxxxxxxxxxxxxx; Tony Lindgren
> >Subject: Re: [PATCH] SDRC: Remove SDRC_POWER register
> >configuration from SDRC init.
> >
> >Hello Samu, Artem,
> >
> >On Wed, 17 Jun 2009, Artem Bityutskiy wrote:
> >
> >> From: Samu Onkalo <samu.p.onkalo@xxxxxxxxx>
> >>
> >> Bootloader must configure proper settings for SDRC before starting
> >> kernel from SDRAM. Furthermore, removed lines violated omap3430 and
> >> omap2420 SDRC errata (see errata 1.150)
> >

This seems like it will make the kernel even more dependent on the
bootloader. As an example, there's code such as the IVA2 reset which
attempts to put the hardware in a good state even if the bootloader
screws up. Unfortunately not everyone has access to their bootloader
code.

-- Mike

>
> >The 2420 and 3430 errata data here seems to be old; neither
> >one contains 1.150.  While I wait for a new version to arrive,
> >can you provide some more context on this errata?  Does it
> >imply any restrictions on programming SDRC_POWER from SRAM,
> >e.g., the CORE DVFS code?
> >
> >
> >- Paul
> >
> >>
> >> Signed-off-by: Samu Onkalo <samu.p.onkalo@xxxxxxxxx>
> >> ---
> >>  arch/arm/mach-omap2/sdrc.c |   10 ++--------
> >>  1 files changed, 2 insertions(+), 8 deletions(-)
> >>
> >> diff --git a/arch/arm/mach-omap2/sdrc.c b/arch/arm/mach-omap2/sdrc.c
> >> index 2045441..0874687 100644
> >> --- a/arch/arm/mach-omap2/sdrc.c
> >> +++ b/arch/arm/mach-omap2/sdrc.c
> >> @@ -86,8 +86,8 @@ void __init omap2_set_globals_sdrc(struct
> >omap_globals *omap2_globals)
> >>   * @sp: pointer to a null-terminated list of struct omap_sdrc_params
> >>   *
> >>   * Turn on smart idle modes for SDRAM scheduler and controller.
> >> - * Program a known-good configuration for the SDRC to deal
> >with buggy
> >> - * bootloaders.
> >> + * Bootloaders should make proper configuration for SDRC
> >since kernel
> >> + * is running from SDRAM.
> >>   */
> >>  void __init omap2_sdrc_init(struct omap_sdrc_params *sp)  { @@
> >> -104,10 +104,4 @@ void __init omap2_sdrc_init(struct
> >omap_sdrc_params *sp)
> >>      sdrc_write_reg(l, SDRC_SYSCONFIG);
> >>
> >>      sdrc_init_params = sp;
> >> -
> >> -    /* XXX Enable SRFRONIDLEREQ here also? */
> >> -    l = (1 << SDRC_POWER_EXTCLKDIS_SHIFT) |
> >> -            (1 << SDRC_POWER_PWDENA_SHIFT) |
> >> -            (1 << SDRC_POWER_PAGEPOLICY_SHIFT);
> >> -    sdrc_write_reg(l, SDRC_POWER);
> >>  }
> >> --
> >> 1.6.0.6
> >>
> >> --
> >> To unsubscribe from this list: send the line "unsubscribe
> >linux-omap"
> >> in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo
> >> info at  http://vger.kernel.org/majordomo-info.html
> >>
> >
> >
> >- Paul
> >--
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux