[PATCH] configs: rockpro64-rk3399: Enable the bits for SPI flash

Kever Yang kever.yang at rock-chips.com
Tue Apr 28 15:44:18 CEST 2020


Hi Peter,

     Does Jagan's suggestion available for you?


Thanks,

- Kever

On 2020/4/25 下午8:34, Jagan Teki wrote:
> Hi Peter,
>
> On Tue, Apr 21, 2020 at 1:45 AM Peter Robinson <pbrobinson at gmail.com> wrote:
>> Enable all the config options needed for SPI flash support
>> and putting U-Boot on the SPI flash.
>>
>> Signed-off-by: Peter Robinson <pbrobinson at gmail.com>
>> ---
>>   configs/rockpro64-rk3399_defconfig | 9 +++++++++
>>   1 file changed, 9 insertions(+)
>>
>> diff --git a/configs/rockpro64-rk3399_defconfig b/configs/rockpro64-rk3399_defconfig
>> index 8074e4665a..4e7ea8cb6e 100644
>> --- a/configs/rockpro64-rk3399_defconfig
>> +++ b/configs/rockpro64-rk3399_defconfig
>> @@ -8,6 +8,9 @@ CONFIG_NR_DRAM_BANKS=1
>>   CONFIG_DEBUG_UART_BASE=0xFF1A0000
>>   CONFIG_DEBUG_UART_CLOCK=24000000
>>   CONFIG_DEBUG_UART=y
>> +CONFIG_SPL_SPI_SUPPORT=y
>> +CONFIG_SPL_SPI_FLASH_SUPPORT=y
>> +CONFIG_SPL_MTD_SUPPORT=y
> Does Boot from SPI work for this via TPL?
>
>>   CONFIG_DEFAULT_FDT_FILE="rockchip/rk3399-rockpro64.dtb"
>>   CONFIG_MISC_INIT_R=y
>>   CONFIG_DISPLAY_BOARDINFO_LATE=y
>> @@ -18,6 +21,8 @@ CONFIG_TPL=y
>>   CONFIG_CMD_BOOTZ=y
>>   CONFIG_CMD_GPT=y
>>   CONFIG_CMD_MMC=y
>> +CONFIG_CMD_MTDPARTS=y
>> +CONFIG_CMD_SF=y
> This won't need, will select if we have DM SPI and FLASH.
>
>>   CONFIG_CMD_USB=y
>>   # CONFIG_CMD_SETEXPR is not set
>>   CONFIG_CMD_TIME=y
>> @@ -34,7 +39,11 @@ CONFIG_MMC_DW=y
>>   CONFIG_MMC_DW_ROCKCHIP=y
>>   CONFIG_MMC_SDHCI=y
>>   CONFIG_MMC_SDHCI_ROCKCHIP=y
>> +CONFIG_ROCKCHIP_SPI=y
>> +CONFIG_SF_DEFAULT_SPEED=20000000
>> +CONFIG_SPI_FLASH=y
>>   CONFIG_SPI_FLASH_GIGADEVICE=y
>> +CONFIG_SPI_FLASH_WINBOND=y
> Well,
> CONFIG_SPI_FLASH_WINBOND=y
> CONFIG_ROCKCHIP_SPI=y
>
> Enough to enable SPI Flash on rk3399 platforms. refer this sha1
> 3d11196c802da6bb91562c9a105e401aa68b6629
>
> Jagan.
>
>




More information about the U-Boot mailing list