]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: pfe_eth: Remove non-DM code check from pfe_spi_flash_init
authorKuldeep Singh <kuldeep.singh@nxp.com>
Fri, 11 Sep 2020 11:06:49 +0000 (16:36 +0530)
committerPriyanka Jain <priyanka.jain@nxp.com>
Thu, 24 Sep 2020 15:27:32 +0000 (20:57 +0530)
commit6fe7743d05ce1006d4436f2776d58216bd1d0c0a
treeda9142bbca2e96e3fd51a5c9e49094c3f5d64949
parent63d534461555c7948eeddf6250f76019b329b15a
net: pfe_eth: Remove non-DM code check from pfe_spi_flash_init

CONFIG_DM_SPI_FLASH is only supported now with passing of driver
conversion deadline from non-DM to DM model. Hence, it's safe to remove
non-DM code check from pfe_spi_flash_init.

Also use CONFIG_ENV_SPI_MODE and CONFIG_ENV_SPI_MAX_HZ instead of
reading reading values from DT.

Signed-off-by: Kuldeep Singh <kuldeep.singh@nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
drivers/net/pfe_eth/pfe_firmware.c