16 lines
489 B
Markdown
16 lines
489 B
Markdown
|
# Linux SPI 设备驱动开发(x86平台)
|
|||
|
|
|||
|
## Platform
|
|||
|
|
|||
|
arch->x86->platform 下创建 board 文件。
|
|||
|
|
|||
|
## Match
|
|||
|
|
|||
|
spi_register_board_info <------------------------+
|
|||
|
|
|
|||
|
pxa2xx_spi_probe |
|
|||
|
devm_spi_register_controller |
|
|||
|
spi_register_controller |
|
|||
|
spi_match_controller_to_boardinfo <--+
|
|||
|
bus_num 必须一致才会执行 spi_new_device()
|