于 2013年09月11日 19:30, Mark Brown 写道: > Indeed - what I was wondering was if those opcodes could be requested > from the flash driver rather than coded in there. The driver needs to > write the commands to the device but it's not clear to me if it really > needs to know the specific commands. yes. The driver uses the commands to find the _right_ LUT index, and uses the LUT index to trigger the controller. For example, LUT0-LUT3 is used for the READ_STATUS, the driver will match the 0 index for the NOR's read status operation (0x05), and then the driver write 0 to the QSPI_IPCR register to trigger the operation. thanks Huang Shijie -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html