Subject: dev_propdb
To: None <>
From: Toru Nishimura <>
List: port-arm
Date: 10/22/2005 19:26:14
Jason Thorpe said;

> ...and now look at arch/powerpc/ibm4xx/dev/if_emac.c's emac_attach():
>         /* Fetch the Ethernet address. */
>         if (prop_get(dev_propdb, &sc->sc_dev, "mac-addr", enaddr,
>                      sizeof(enaddr), NULL) != sizeof(enaddr)) {
>                 printf("%s: unable to get mac-addr property\n",
>                     sc->sc_dev.dv_xname);
>                 return;
>         }
> The dev_propdb property database is created in MI code (configure()  
> in subr_autoconf.c).
> I think this represents a good way to handle board-specific ways of  
> fetching certain kinds of information for SOC devices for embedded  
> systems.

This is a sane way.  I like it.  So, an early boot initialization stage, initarm()
in my mind, fetchs and stores MD params specific to target implementations
into property DB and then common SoC code utilizes them appropriately,

Toru Nishimura/ALKYL Technology