Re: [PATCH 02/11] ARM: mach-shmobile: setup-r8a7740: add MERAM work-around

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


Hi Paul

Thank you for checking patch

> On Mon, May 21, 2012 at 07:27:13PM -0700, kuninori.morimoto.gx@xxxxxxxxxxx wrote:
> > --- a/arch/arm/mach-shmobile/setup-r8a7740.c
> > +++ b/arch/arm/mach-shmobile/setup-r8a7740.c
> > @@ -324,6 +324,24 @@ static struct platform_device *r8a7740_late_devices[] __initdata = {
> > +/*
> > + * r8a7740 chip has lasting errata on MERAM buffer.
> > + * this is work-around for it.
> > + * see
> > + *	"Media RAM (MERAM)" on r8a7740 documentation
> > + */
> > +#define MEBUFCNTR	0xFE950098
> > +static void r8a7740_meram_workaround(void)
> > +{
> > +	void __iomem *reg;
> > +
> > +	reg = ioremap_nocache(MEBUFCNTR, 4);
> > +	if (reg) {
> > +		iowrite32(0x01600164, reg);
> > +		iounmap(reg);
> > +	}
> > +}
> > +
> If this exists within the MERAM register space, it should probably be
> handled in the MERAM driver itself. If this is all going to go to DT in
> the future it will be easy to to node to quirk matching then, but in the
> mean time we can match on CPU or machine types.

It is difficult. 
A1 MERAM datasheet doesn't have detail explain / register map.
It just say

------------------------------------------
Set the following register in the MERAM
 Register name: ICBR buffer control
 Address: H’FE95 0098 
 Access size: 32 bits 
 Initial value: H’0160 0168 
 Setting value: H’0160 0164 
------------------------------------------

This work-around fixup MERAM memroy access erorr bug
(CEU/VIO6C/2D-DMAC/VCP1/VPU5F/JPU/DISP)
But we don't know what is these value.

Best regards
---
Kuninori Morimoto
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Linux OMAP]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Free Online Dating]     [Linux Kernel]     [Linux SCSI]     [XFree86]

Add to Google Powered by Linux