mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
Use the new FDTCOMPAT_PNP_INFO() macro to define SPIBUS_FDT_PNP_INFO().
Also rename SPIBUS_PNP_INFO -> SPIBUS_FDT_PNP_INFO because there could be other kinds of pnpinfo for other (non-fdt) bus attachments.
This commit is contained in:
parent
ad018aa4da
commit
db63d25160
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=348172
@ -606,6 +606,6 @@ DRIVER_MODULE(at45d, spibus, at45d_driver, at45d_devclass, NULL, NULL);
|
|||||||
MODULE_DEPEND(at45d, spibus, 1, 1, 1);
|
MODULE_DEPEND(at45d, spibus, 1, 1, 1);
|
||||||
#ifdef FDT
|
#ifdef FDT
|
||||||
MODULE_DEPEND(at45d, fdt_slicer, 1, 1, 1);
|
MODULE_DEPEND(at45d, fdt_slicer, 1, 1, 1);
|
||||||
SPIBUS_PNP_INFO(compat_data);
|
SPIBUS_FDT_PNP_INFO(compat_data);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -686,5 +686,5 @@ DRIVER_MODULE(mx25l, spibus, mx25l_driver, mx25l_devclass, 0, 0);
|
|||||||
MODULE_DEPEND(mx25l, spibus, 1, 1, 1);
|
MODULE_DEPEND(mx25l, spibus, 1, 1, 1);
|
||||||
#ifdef FDT
|
#ifdef FDT
|
||||||
MODULE_DEPEND(mx25l, fdt_slicer, 1, 1, 1);
|
MODULE_DEPEND(mx25l, fdt_slicer, 1, 1, 1);
|
||||||
SPIBUS_PNP_INFO(compat_data);
|
SPIBUS_FDT_PNP_INFO(compat_data);
|
||||||
#endif
|
#endif
|
||||||
|
@ -41,6 +41,8 @@ struct spi_command {
|
|||||||
|
|
||||||
#define SPI_CHIP_SELECT_HIGH 0x1 /* Chip select high (else low) */
|
#define SPI_CHIP_SELECT_HIGH 0x1 /* Chip select high (else low) */
|
||||||
|
|
||||||
#define SPIBUS_PNP_DESCR "Z:compat;P:#;"
|
#ifdef FDT
|
||||||
#define SPIBUS_PNP_INFO(t) \
|
#define SPIBUS_FDT_PNP_INFO(t) FDTCOMPAT_PNP_INFO(t, spibus)
|
||||||
MODULE_PNP_INFO(SPIBUS_PNP_DESCR, spibus, t, t, sizeof(t) / sizeof(t[0]));
|
#else
|
||||||
|
#define SPIBUS_FDT_PNP_INFO(t)
|
||||||
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user