Hi Tsung-Chih
it can be distinguished by chips ID, look for example at spi-nor drivers:
spi-nor-ids.c\spi\mtd\drivers - uboot-imx - i.MX U-Boot
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------