Re: [PATCH v5 2/3] mtd: mtk-nor: mtk serial flash controller driver

2015-10-30 Thread Brian Norris
Hi Bayi, In reviewing your updated instructions on how to read 6 bytes of ID, I have one more question about how the PRGDATA and SHREG registers are supposed to work. On Mon, Oct 26, 2015 at 09:40:38PM +0800, Bayi Cheng wrote: [...] > +static void mt8173_nor_set_read_mode(struct mt8173_nor *mt817

Re: [PATCH v5 2/3] mtd: mtk-nor: mtk serial flash controller driver

2015-10-29 Thread Brian Norris
Hi Bayi, (I drafted most of this before you clarified on how to read out 6 bytes of ID. So a bit of this is slightly out-of-date. Still, I think most of the comments and much of the appended patch should be useful to you.) On Mon, Oct 26, 2015 at 09:40:38PM +0800, Bayi Cheng wrote: > add spi nor

[PATCH v5 2/3] mtd: mtk-nor: mtk serial flash controller driver

2015-10-26 Thread Bayi Cheng
add spi nor flash driver for mediatek controller Signed-off-by: Bayi Cheng --- drivers/mtd/spi-nor/Kconfig | 7 + drivers/mtd/spi-nor/Makefile | 1 + drivers/mtd/spi-nor/mtk-quadspi.c | 491 ++ 3 files changed, 499 insertions(+) create mode 100