Re: FW: [PATCH v2] mtd:spi-nor: Add Altera EPCQ Driver

2015-03-13 Thread Viet Nga Dao
On Fri, Mar 13, 2015 at 1:45 PM, Rafał Miłecki zaj...@gmail.com wrote: On 11 March 2015 at 09:41, Viet Nga Dao vn...@altera.com wrote: On Tue, Mar 10, 2015 at 4:09 PM, Viet Nga Dao vn...@altera.com wrote: Ok. I will modify the code the way you suggest. I just realize that the opcode for RDID

Re: FW: [PATCH v2] mtd:spi-nor: Add Altera EPCQ Driver

2015-03-12 Thread Rafał Miłecki
On 11 March 2015 at 09:41, Viet Nga Dao vn...@altera.com wrote: On Tue, Mar 10, 2015 at 4:09 PM, Viet Nga Dao vn...@altera.com wrote: Ok. I will modify the code the way you suggest. I just realize that the opcode for RDID is handled by hardware in my case, therefore i dont really need to

Re: FW: [PATCH v2] mtd:spi-nor: Add Altera EPCQ Driver

2015-03-11 Thread Viet Nga Dao
Hi Rafal, On Tue, Mar 10, 2015 at 4:09 PM, Viet Nga Dao vn...@altera.com wrote: + +/* Altera EPCQ/EPCS Flashes */ +{ epcq16 , EPCQ_INFO(2, 0x15, 0x1, 32, 0x100) }, +{ epcq32 , EPCQ_INFO(2, 0x16, 0x1, 64, 0x100) }, +{ epcq64 , EPCQ_INFO(2, 0x17, 0x1, 128,

Re: FW: [PATCH v2] mtd:spi-nor: Add Altera EPCQ Driver

2015-03-10 Thread Viet Nga Dao
+ +/* Altera EPCQ/EPCS Flashes */ +{ epcq16 , EPCQ_INFO(2, 0x15, 0x1, 32, 0x100) }, +{ epcq32 , EPCQ_INFO(2, 0x16, 0x1, 64, 0x100) }, +{ epcq64 , EPCQ_INFO(2, 0x17, 0x1, 128, 0x100) }, +{ epcq128 , EPCQ_INFO(2, 0x18, 0x1, 256, 0x100) }, +{