Get size of SPI Flash.
Returns with uint32 value which is total flash size .
References M2M_ERR, M2M_INFO, and spi_flash_rdid().