Follow r261352 by updating all drivers which are children of simplebus
to check the status property in their probe routines. Simplebus used to only instantiate its children whose status="okay" but that was improper behavior, fixed in r261352. Now that it doesn't check anymore and probes all its children; the children all have to do the check because really only the children know how to properly interpret their status property strings. Right now all existing drivers only understand "okay" versus something- that's-not-okay, so they all use the new ofw_bus_status_okay() helper.
This commit is contained in:
parent
6f34487cc9
commit
add35ed5b8
@ -69,6 +69,10 @@ static struct a10_ccm_softc *a10_ccm_sc = NULL;
|
||||
static int
|
||||
a10_ccm_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (ofw_bus_is_compatible(dev, "allwinner,sun4i-ccm")) {
|
||||
device_set_desc(dev, "Allwinner Clock Control Module");
|
||||
return(BUS_PROBE_DEFAULT);
|
||||
|
@ -93,6 +93,10 @@ bs_w_1_proto(reversed);
|
||||
static int
|
||||
a10_ehci_probe(device_t self)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(self))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(self, "allwinner,usb-ehci"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -410,6 +410,10 @@ a10_gpio_pin_toggle(device_t dev, uint32_t pin)
|
||||
static int
|
||||
a10_gpio_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "allwinner,sun4i-gpio"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -93,6 +93,9 @@ static int
|
||||
a10wd_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (ofw_bus_is_compatible(dev, "allwinner,sun4i-wdt")) {
|
||||
device_set_desc(dev, "Allwinner A10 Watchdog");
|
||||
return (BUS_PROBE_DEFAULT);
|
||||
|
@ -70,6 +70,9 @@ static int
|
||||
a20_cpu_cfg_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (ofw_bus_is_compatible(dev, "allwinner,sun7i-cpu-cfg")) {
|
||||
device_set_desc(dev, "A20 CPU Configuration Module");
|
||||
return(BUS_PROBE_DEFAULT);
|
||||
|
@ -97,6 +97,10 @@ static struct a10_aintc_softc *a10_aintc_sc = NULL;
|
||||
static int
|
||||
a10_aintc_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "allwinner,sun4i-ic"))
|
||||
return (ENXIO);
|
||||
device_set_desc(dev, "A10 AINTC Interrupt Controller");
|
||||
|
@ -244,6 +244,9 @@ static int
|
||||
arm_tmr_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "arm,armv7-timer"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -129,6 +129,9 @@ static int
|
||||
arm_gic_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "arm,gic"))
|
||||
return (ENXIO);
|
||||
device_set_desc(dev, "ARM Generic Interrupt Controller");
|
||||
|
@ -247,6 +247,10 @@ arm_tmr_intr(void *arg)
|
||||
static int
|
||||
arm_tmr_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "arm,mpcore-timers"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -78,6 +78,10 @@ static struct pl190_intc_softc *pl190_intc_sc = NULL;
|
||||
static int
|
||||
pl190_intc_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "arm,versatile-vic"))
|
||||
return (ENXIO);
|
||||
device_set_desc(dev, "ARM PL190 VIC");
|
||||
|
@ -281,6 +281,9 @@ static int
|
||||
pl310_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "arm,pl310"))
|
||||
return (ENXIO);
|
||||
device_set_desc(dev, "PL310 L2 cache controller");
|
||||
|
@ -222,6 +222,9 @@ static int
|
||||
bcm_bsc_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "broadcom,bcm2835-bsc"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -637,6 +637,9 @@ static int
|
||||
bcm_dma_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "broadcom,bcm2835-dma"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -674,6 +674,10 @@ bcm_gpio_get_reserved_pins(struct bcm_gpio_softc *sc)
|
||||
static int
|
||||
bcm_gpio_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "broadcom,bcm2835-gpio"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -90,6 +90,10 @@ static struct bcm_intc_softc *bcm_intc_sc = NULL;
|
||||
static int
|
||||
bcm_intc_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "broadcom,bcm2835-armctrl-ic"))
|
||||
return (ENXIO);
|
||||
device_set_desc(dev, "BCM2835 Interrupt Controller");
|
||||
|
@ -128,6 +128,9 @@ static int
|
||||
bcm_mbox_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (ofw_bus_is_compatible(dev, "broadcom,bcm2835-mbox")) {
|
||||
device_set_desc(dev, "BCM2835 VideoCore Mailbox");
|
||||
return(BUS_PROBE_DEFAULT);
|
||||
|
@ -151,6 +151,10 @@ bcm_dmamap_cb(void *arg, bus_dma_segment_t *segs,
|
||||
static int
|
||||
bcm_sdhci_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "broadcom,bcm2835-sdhci"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -231,6 +231,9 @@ static int
|
||||
bcm_spi_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "broadcom,bcm2835-spi"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -186,6 +186,9 @@ static int
|
||||
bcm_systimer_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (ofw_bus_is_compatible(dev, "broadcom,bcm2835-system-timer")) {
|
||||
device_set_desc(dev, "BCM2835 System Timer");
|
||||
return (BUS_PROBE_DEFAULT);
|
||||
|
@ -85,6 +85,9 @@ static int
|
||||
bcmwd_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (ofw_bus_is_compatible(dev, "broadcom,bcm2835-wdt")) {
|
||||
device_set_desc(dev, "BCM2708/2835 Watchdog");
|
||||
return (BUS_PROBE_DEFAULT);
|
||||
|
@ -224,6 +224,9 @@ i2c_probe(device_t dev)
|
||||
{
|
||||
struct i2c_softc *sc;
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "fsl,imx-i2c"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -141,6 +141,9 @@ static int
|
||||
imxccm_match(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "fsl,imx51-ccm") &&
|
||||
!ofw_bus_is_compatible(dev, "fsl,imx53-ccm"))
|
||||
return (ENXIO);
|
||||
|
@ -370,6 +370,9 @@ static int
|
||||
imx51_gpio_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (ofw_bus_is_compatible(dev, "fsl,imx51-gpio") ||
|
||||
ofw_bus_is_compatible(dev, "fsl,imx53-gpio")) {
|
||||
device_set_desc(dev, "i.MX515 GPIO Controller");
|
||||
|
@ -106,6 +106,9 @@ static int
|
||||
iomux_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "fsl,imx51-iomux") &&
|
||||
!ofw_bus_is_compatible(dev, "fsl,imx53-iomux"))
|
||||
return (ENXIO);
|
||||
|
@ -254,6 +254,9 @@ ipu3_fb_probe(device_t dev)
|
||||
{
|
||||
int error;
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "fsl,ipu3"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -184,6 +184,9 @@ static int
|
||||
ipu3_fb_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "fsl,ipu3"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -126,6 +126,9 @@ static int
|
||||
imx6_anatop_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (ofw_bus_is_compatible(dev, "fsl,imx6q-anatop") == 0)
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -121,6 +121,9 @@ static int
|
||||
ccm_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (ofw_bus_is_compatible(dev, "fsl,imx6q-ccm") == 0)
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -160,6 +160,9 @@ static int
|
||||
usbphy_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (ofw_bus_is_compatible(dev, "fsl,imx6q-usbphy") == 0)
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -121,6 +121,9 @@ static int
|
||||
imx_gpt_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (ofw_bus_search_compatible(dev, compat_data)->ocd_data != 0) {
|
||||
device_set_desc(dev, "Freescale i.MX GPT timer");
|
||||
return (BUS_PROBE_DEFAULT);
|
||||
|
@ -89,6 +89,9 @@ static int
|
||||
usbphy_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (ofw_bus_search_compatible(dev, compat_data)->ocd_data != 0) {
|
||||
device_set_desc(dev, "Freescale USB PHY");
|
||||
return (BUS_PROBE_DEFAULT);
|
||||
|
@ -643,6 +643,9 @@ static int
|
||||
imx_sdhci_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
switch (ofw_bus_search_compatible(dev, compat_data)->ocd_data) {
|
||||
case HWTYPE_ESDHC:
|
||||
device_set_desc(dev, "Freescale eSDHC controller");
|
||||
|
@ -130,6 +130,9 @@ static int
|
||||
imx_wdog_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "fsl,imx51-wdt") &&
|
||||
!ofw_bus_is_compatible(dev, "fsl,imx53-wdt"))
|
||||
return (ENXIO);
|
||||
|
@ -76,6 +76,10 @@ static void tzic_post_filter(void *);
|
||||
static int
|
||||
tzic_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (ofw_bus_is_compatible(dev, "fsl,tzic")) {
|
||||
device_set_desc(dev, "TrustZone Interrupt Controller");
|
||||
return (BUS_PROBE_DEFAULT);
|
||||
|
@ -114,6 +114,9 @@ static int
|
||||
anadig_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "fsl,mvf600-anadig"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -339,6 +339,9 @@ static int
|
||||
ccm_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "fsl,mvf600-ccm"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -176,6 +176,9 @@ static int
|
||||
vybrid_ehci_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (ofw_bus_is_compatible(dev, "fsl,mvf600-usb-ehci") == 0)
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -123,6 +123,9 @@ static int
|
||||
vf_gpio_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "fsl,mvf600-gpio"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -90,6 +90,9 @@ static int
|
||||
iomuxc_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "fsl,mvf600-iomuxc"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -75,6 +75,9 @@ static int
|
||||
mscm_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "fsl,mvf600-mscm"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -171,6 +171,9 @@ static int
|
||||
vf_nand_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "fsl,mvf600-nand"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -102,6 +102,9 @@ static int
|
||||
src_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "fsl,mvf600-src"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -190,6 +190,9 @@ static int
|
||||
lpe_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "lpc,ethernet"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -90,6 +90,10 @@ static void lpc_dmac_intr(void *);
|
||||
|
||||
static int lpc_dmac_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "lpc,dmac"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -138,6 +138,10 @@ static struct cdevsw lpc_fb_cdevsw = {
|
||||
static int
|
||||
lpc_fb_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "lpc,fb"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -160,6 +160,10 @@ static struct lpc_gpio_softc *lpc_gpio_sc = NULL;
|
||||
static int
|
||||
lpc_gpio_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "lpc,gpio"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -68,6 +68,9 @@ static int
|
||||
lpc_intc_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "lpc,pic"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -166,6 +166,10 @@ static struct lpc_dmac_channel_config lpc_mmc_dma_txconf = {
|
||||
static int
|
||||
lpc_mmc_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "lpc,mmc"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -98,6 +98,10 @@ static void lpc_isp3101_configure(device_t dev, struct ohci_softc *);
|
||||
static int
|
||||
lpc_ohci_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "lpc,usb-ohci"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -65,6 +65,9 @@ static int
|
||||
lpc_pwr_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "lpc,pwr"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -63,6 +63,9 @@ static int
|
||||
lpc_rtc_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "lpc,rtc"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -85,6 +85,10 @@ static int lpc_spi_transfer(device_t, device_t, struct spi_command *);
|
||||
static int
|
||||
lpc_spi_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "lpc,spi"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -111,6 +111,9 @@ static int
|
||||
lpc_timer_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "lpc,timer"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -125,6 +125,9 @@ static int
|
||||
mv_gpio_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "mrvl,gpio"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -80,6 +80,9 @@ static int
|
||||
mv_ic_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "mrvl,pic"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -127,6 +127,9 @@ static int
|
||||
mv_mpic_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "mrvl,mpic"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -185,6 +185,9 @@ sata_probe(device_t dev)
|
||||
struct sata_softc *sc;
|
||||
uint32_t d, r;
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "mrvl,sata"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -59,6 +59,9 @@ ts_probe(device_t dev)
|
||||
{
|
||||
uint32_t d, r;
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "mrvl,ts"))
|
||||
return (ENXIO);
|
||||
soc_id(&d, &r);
|
||||
|
@ -97,6 +97,9 @@ static int
|
||||
mv_rtc_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "mrvl,rtc"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -108,6 +108,9 @@ static int
|
||||
mv_timer_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "mrvl,timer"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -305,6 +305,9 @@ static int
|
||||
mv_twsi_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "mrvl,twsi"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -441,6 +441,9 @@ static int
|
||||
rk30_gpio_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "rockchip,rk30xx-gpio"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -70,6 +70,9 @@ static int
|
||||
rk30_grf_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (ofw_bus_is_compatible(dev, "rockchip,rk30xx-grf")) {
|
||||
device_set_desc(dev, "RK30XX General Register File");
|
||||
return(BUS_PROBE_DEFAULT);
|
||||
|
@ -70,6 +70,9 @@ static int
|
||||
rk30_pmu_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (ofw_bus_is_compatible(dev, "rockchip,rk30xx-pmu")) {
|
||||
device_set_desc(dev, "RK30XX PMU");
|
||||
return(BUS_PROBE_DEFAULT);
|
||||
|
@ -84,6 +84,9 @@ static int
|
||||
rk30_wd_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (ofw_bus_is_compatible(dev, "rockchip,rk30xx-wdt")) {
|
||||
device_set_desc(dev, "Rockchip RK30XX Watchdog");
|
||||
return (BUS_PROBE_DEFAULT);
|
||||
|
@ -71,6 +71,10 @@ static struct resource_spec arm_tmr_spec[] = {
|
||||
static int
|
||||
arm_tmr_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "exynos,mct"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -147,6 +147,9 @@ static int
|
||||
exynos_ehci_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (ofw_bus_is_compatible(dev, "exynos,usb-ehci") == 0)
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -81,6 +81,10 @@ static struct ti_aintc_softc *ti_aintc_sc = NULL;
|
||||
static int
|
||||
ti_aintc_probe(device_t dev)
|
||||
{
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "ti,aintc"))
|
||||
return (ENXIO);
|
||||
device_set_desc(dev, "TI AINTC Interrupt Controller");
|
||||
|
@ -528,6 +528,9 @@ static int
|
||||
am335x_dmtimer_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (ofw_bus_is_compatible(dev, "ti,am335x-dmtimer")) {
|
||||
device_set_desc(dev, "AM335x DMTimer");
|
||||
return(BUS_PROBE_DEFAULT);
|
||||
|
@ -404,6 +404,9 @@ am335x_lcd_probe(device_t dev)
|
||||
{
|
||||
int err;
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "ti,am335x-lcd"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -370,6 +370,10 @@ void am335x_prcm_setup_dmtimer(int);
|
||||
static int
|
||||
am335x_prcm_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (ofw_bus_is_compatible(dev, "am335x,prcm")) {
|
||||
device_set_desc(dev, "AM335x Power and Clock Management");
|
||||
return(BUS_PROBE_DEFAULT);
|
||||
|
@ -309,6 +309,10 @@ am335x_pwm_sysctl_period(SYSCTL_HANDLER_ARGS)
|
||||
static int
|
||||
am335x_pwm_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "ti,am335x-pwm"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -250,6 +250,10 @@ musbotg_wrapper_interrupt(void *arg)
|
||||
static int
|
||||
musbotg_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "ti,musb-am33xx"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -445,6 +445,9 @@ static int
|
||||
cpsw_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "ti,cpsw"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -1363,6 +1363,10 @@ omap4_prcm_reset(void)
|
||||
static int
|
||||
omap4_prcm_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "ti,omap4_prcm"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -142,6 +142,10 @@ static struct {
|
||||
static int
|
||||
ti_edma3_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "ti,edma3"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -627,6 +627,10 @@ ti_gpio_intr(void *arg)
|
||||
static int
|
||||
ti_gpio_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "ti,gpio"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -1020,6 +1020,10 @@ ti_i2c_deactivate(device_t dev)
|
||||
static int
|
||||
ti_i2c_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "ti,i2c"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -119,6 +119,10 @@ ti_mbox_reg_write(struct ti_mbox_softc *sc, uint16_t reg, uint32_t val)
|
||||
static int
|
||||
ti_mbox_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (ofw_bus_is_compatible(dev, "ti,system-mbox")) {
|
||||
device_set_desc(dev, "TI System Mailbox");
|
||||
return (BUS_PROBE_DEFAULT);
|
||||
|
@ -1656,6 +1656,10 @@ errout:
|
||||
static int
|
||||
ti_mmchs_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "ti,mmchs"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -145,6 +145,10 @@ ti_pruss_reg_write(struct ti_pruss_softc *sc, uint32_t reg, uint32_t val)
|
||||
static int
|
||||
ti_pruss_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (ofw_bus_is_compatible(dev, "ti,pruss-v1") ||
|
||||
ofw_bus_is_compatible(dev, "ti,pruss-v2")) {
|
||||
device_set_desc(dev, "TI Programmable Realtime Unit Subsystem");
|
||||
|
@ -418,6 +418,10 @@ ti_scm_padconf_init_from_fdt(struct ti_scm_softc *sc)
|
||||
static int
|
||||
ti_scm_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "ti,scm"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -582,6 +582,9 @@ static int
|
||||
ti_sdhci_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (ofw_bus_search_compatible(dev, compat_data)->ocd_data != 0) {
|
||||
device_set_desc(dev, "TI MMCHS (SDHCI 2.0)");
|
||||
return (BUS_PROBE_DEFAULT);
|
||||
|
@ -1127,6 +1127,10 @@ ti_sdma_set_addr_mode(unsigned int ch, unsigned int src_mode,
|
||||
static int
|
||||
ti_sdma_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "ti,sdma"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -736,6 +736,10 @@ omap_ehci_shutdown(device_t dev)
|
||||
static int
|
||||
omap_ehci_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "ti,usb-ehci"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -64,6 +64,9 @@ smc_fdt_probe(device_t dev)
|
||||
{
|
||||
struct smc_softc *sc;
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (ofw_bus_is_compatible(dev, "smsc,lan91c111")) {
|
||||
sc = device_get_softc(dev);
|
||||
sc->smc_usemem = 1;
|
||||
|
@ -609,6 +609,9 @@ static int
|
||||
pl050_kmi_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (ofw_bus_is_compatible(dev, "arm,pl050")) {
|
||||
device_set_desc(dev, "PL050 Keyboard/Mouse Interface");
|
||||
return (BUS_PROBE_DEFAULT);
|
||||
|
@ -184,6 +184,9 @@ static int
|
||||
sp804_timer_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (ofw_bus_is_compatible(dev, "arm,sp804")) {
|
||||
device_set_desc(dev, "SP804 System Timer");
|
||||
return (BUS_PROBE_DEFAULT);
|
||||
|
@ -232,6 +232,9 @@ static int
|
||||
versatile_clcdc_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (ofw_bus_is_compatible(dev, "arm,pl110")) {
|
||||
device_set_desc(dev, "PL110 CLCD controller");
|
||||
return (BUS_PROBE_DEFAULT);
|
||||
|
@ -144,6 +144,9 @@ static int
|
||||
versatile_pci_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (ofw_bus_is_compatible(dev, "versatile,pci")) {
|
||||
device_set_desc(dev, "Versatile PCI controller");
|
||||
return (BUS_PROBE_DEFAULT);
|
||||
|
@ -73,6 +73,10 @@ struct versatile_sic_softc {
|
||||
static int
|
||||
versatile_sic_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "arm,versatile-sic"))
|
||||
return (ENXIO);
|
||||
device_set_desc(dev, "ARM Versatile SIC");
|
||||
|
@ -519,6 +519,10 @@ zy7_devcfg_sysctl_pl_done(SYSCTL_HANDLER_ARGS)
|
||||
static int
|
||||
zy7_devcfg_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "xlnx,zy7_devcfg"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -193,6 +193,9 @@ static int
|
||||
zy7_ehci_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "xlnx,zy7_ehci"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -276,6 +276,9 @@ static int
|
||||
zy7_gpio_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "xlnx,zy7_gpio"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -192,6 +192,10 @@ zy7_slcr_postload_pl(int en_level_shifters)
|
||||
static int
|
||||
zy7_slcr_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "xlnx,zy7_slcr"))
|
||||
return (ENXIO);
|
||||
|
||||
|
@ -65,6 +65,9 @@ static int
|
||||
atse_probe_fdt(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (ofw_bus_is_compatible(dev, "altera,atse")) {
|
||||
device_set_desc(dev, "Altera Triple-Speed Ethernet MegaCore");
|
||||
return (BUS_PROBE_DEFAULT);
|
||||
|
@ -62,6 +62,9 @@ static int
|
||||
altera_avgen_fdt_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (ofw_bus_is_compatible(dev, "sri-cambridge,avgen")) {
|
||||
device_set_desc(dev, "Generic Altera Avalon device attachment");
|
||||
return (BUS_PROBE_DEFAULT);
|
||||
|
@ -64,6 +64,9 @@ static int
|
||||
altera_jtag_uart_fdt_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (ofw_bus_is_compatible(dev, "altera,jtag_uart-11_0")) {
|
||||
device_set_desc(dev, "Altera JTAG UART");
|
||||
return (BUS_PROBE_DEFAULT);
|
||||
|
@ -64,6 +64,9 @@ static int
|
||||
altera_sdcard_fdt_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (ofw_bus_is_compatible(dev, "altera,sdcard_11_2011")) {
|
||||
device_set_desc(dev, "Altera Secure Data Card IP Core");
|
||||
return (BUS_PROBE_DEFAULT);
|
||||
|
@ -69,6 +69,9 @@ imx_ata_probe(device_t dev)
|
||||
{
|
||||
struct ata_pci_controller *ctrl;
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "fsl,imx51-ata"))
|
||||
return (ENXIO);
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user