[U-Boot] [PATCH v2 2/2] driver: spi: add rockchip sfc support

Jagan Teki jagannadh.teki at gmail.com
Thu Aug 24 08:15:14 UTC 2017


On Thu, Aug 24, 2017 at 12:53 PM, Andy Yan <andy.yan at rock-chips.com> wrote:
> Hi Jagan:
>
>
> On 2017年08月24日 14:58, Jagan Teki wrote:
>>
>> On Tue, Aug 8, 2017 at 7:13 AM, Andy Yan <andy.yan at rock-chips.com> wrote:
>>>
>>> SFC stands for Serial Flash Controller on some
>>> rockchip platforms such as RV1108/RK3128.
>>>
>>> This patch add support for it with Standard,Dual,Quad
>>> mode.
>>
>> What I found from the code and related kconfig, this sounds like
>> spi-nor flash driver try to write driver under mtd with
>> UCLASS_SPI_FLASH.
>
>
>     You mean I should write a UCLASS_SPI_FLASH U_BOOT_DRIVER(rockchip_sfc)
> which implement a dm_spi_flash_ops?

Yes, see sf_dataflash for example.

>       I see you updated the spi-nor framework on your spi tree these days,
> How about I write the sfc driver based on your spi-nor framework?

May be you can do that - certainly we need to write spi-nor, It is WIP
looking for suitable design for handling spi-nor chips through MTD.

thanks!
-- 
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.


More information about the U-Boot mailing list