RE: [PATCH v4 3/6] ARM: dts: dra7: add support for parallel NAND flash

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

 



Hi Roger,

>>
>> For now, I'll use GPMC address-space size = 0x380 as it matches with
>> actual hardware and is working.
>
>How did you get 0x380?
>
>From DRA7 TRM, GPMC address range is 0x5000 0000 : 0x5000 02D0
>So the address-space size should be 0x2D4 (as last register@2D0 is 32-bits wide)
>
I think that is copy-paste error in documentation.
In the same TRM, you 'll find the correct address offsets for GPMC Registers in below
*Section: 15.4.7.1 GPMC Register Summary*
Register                                  Starting Offset                                       End Offset
GPMC_BCH_RESULT4_i    0x0000 0300 + (0x0000 0010 * i)     0x5000 0300 + (0x0000 0010 * i)
GPMC_BCH_RESULT5_i    0x0000 0304 + (0x0000 0010 * i)     0x5000 0304 + (0x0000 0010 * i)
GPMC_BCH_RESULT6_i    0x0000 0308 + (0x0000 0010 * i)     0x5000 0308 + (0x0000 0010 * i)
Where i = 0 to 7 .. 

So that makes last address 0x5000_0378 (for GPMC_BCH_RESULT6_7)
As the each register bank (i) is incrementing at 0x10, so last accessible address is 0x37F.

I have already raised documentation bug for AM335x TRM,
Need to raise the same for DRA7xx TRM.

>For the ELM module it should be 4KB i.e. 0x1000
>
Yes, that is correct. I have fixed that now.


>cheers,
>-roger
>
>>>>
>>>> [1] http://www.ti.com/lit/gpn/am3359    (Section 7.4 to 7.4.5)
>>>>
>>>> [2] http://www.ti.com/lit/gpn/am3359    (Section 7.1 to 7.1.5)
>>>> (Though the AM335x address space mentions 0x368 as last address,
>>>>  it should be 0x378. I have raised documentation bug for it).


with regards, pekon
��.n��������+%������w��{.n�����{�������ܨ}���Ơz�j:+v�����w����ޙ��&�)ߡ�a����z�ޗ���ݢj��w�f





[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