
19 Nov
2015
19 Nov
'15
3:42 p.m.
On Thu, Nov 19, 2015 at 6:27 AM, Jagan Teki jteki@openedev.com wrote:
Since it's u-boot, size is main constraint ie the main reason to use ifdef and also this initialization code must be part of driver probe instead of board file, once the driver moved to dm then will move this as well so to indicate that this could be a driver code better to use the driver config in #ifdef.
In this board CONFIG_SPI_MXC will always be selected, so size constraint does not apply here.
See this $ grep -R CONFIG_MXC_SPI board/
And use setup_spi instead of setup_spinor
What is the reason for that?