1SPI_REGISTER_BOARD_I(9) Serial Peripheral Interface (S SPI_REGISTER_BOARD_I(9)
2
3
4
6 spi_register_board_info - register SPI devices for a given board
7
9 int spi_register_board_info(struct spi_board_info const * info,
10 unsigned n);
11
13 info
14 array of chip descriptors
15
16 n
17 how many descriptors are provided
18
20 can sleep
21
23 Board-specific early init code calls this (probably during
24 arch_initcall) with segments of the SPI device table. Any device nodes
25 are created later, after the relevant parent SPI controller (bus_num)
26 is defined. We keep this table of devices forever, so that reloading a
27 controller driver will not make Linux forget about these hard-wired
28 devices.
29
30 Other code can also call this, e.g. a particular add-on board might
31 provide SPI devices through its expansion connector, so code
32 initializing that board would naturally declare its SPI devices.
33
34 The board info passed can safely be __initdata ... but be careful of
35 any embedded pointers (platform_data, etc), they're copied as-is.
36
38Kernel Hackers Manual 2.6. November 2011 SPI_REGISTER_BOARD_I(9)