Flash chip information registration to the SPI framework
The board mapping driver is responsible for registering flash information with the SPI framework. Ideally, this initialisation should be done in the arch/x8S/ directory during early initialisation. This information is persistent until system reboot. Therefore, if this information is registered by a kernel module, then the module must not be removed and re-inserted. The easiest way to do this is to write a module without the cleanup_module() function. Since this information is part of system initialisation, the board mapping driver module must be loaded before the SPI controller and chip driver.
5oOH oI EoDUd PDSSLng dULYHU LV OLPLWHd Wo UHgLVWHU partition information. As shown in the code snippet, the board mapping driver registers partition information using spi_register_board_info() function.