diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2006-03-28 07:15:54 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-03-28 07:15:54 -0500 |
commit | e8222502ee6157e2713da9e0792c21f4ad458d50 (patch) | |
tree | 0f970fb99912c257a7e5254f863a53f79d22ab14 /Documentation/powerpc | |
parent | 056cb48a2fb6fb31debf665695a9f97b45cfb8ec (diff) |
[PATCH] powerpc: Kill _machine and hard-coded platform numbers
This removes statically assigned platform numbers and reworks the
powerpc platform probe code to use a better mechanism. With this,
board support files can simply declare a new machine type with a
macro, and implement a probe() function that uses the flattened
device-tree to detect if they apply for a given machine.
We now have a machine_is() macro that replaces the comparisons of
_machine with the various PLATFORM_* constants. This commit also
changes various drivers to use the new macro instead of looking at
_machine.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'Documentation/powerpc')
-rw-r--r-- | Documentation/powerpc/booting-without-of.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/powerpc/booting-without-of.txt b/Documentation/powerpc/booting-without-of.txt index ee551c6ea235..217e51768b87 100644 --- a/Documentation/powerpc/booting-without-of.txt +++ b/Documentation/powerpc/booting-without-of.txt | |||
@@ -719,6 +719,11 @@ address which can extend beyond that limit. | |||
719 | - model : this is your board name/model | 719 | - model : this is your board name/model |
720 | - #address-cells : address representation for "root" devices | 720 | - #address-cells : address representation for "root" devices |
721 | - #size-cells: the size representation for "root" devices | 721 | - #size-cells: the size representation for "root" devices |
722 | - device_type : This property shouldn't be necessary. However, if | ||
723 | you decide to create a device_type for your root node, make sure it | ||
724 | is _not_ "chrp" unless your platform is a pSeries or PAPR compliant | ||
725 | one for 64-bit, or a CHRP-type machine for 32-bit as this will | ||
726 | matched by the kernel this way. | ||
722 | 727 | ||
723 | Additionally, some recommended properties are: | 728 | Additionally, some recommended properties are: |
724 | 729 | ||