]> err.no Git - linux-2.6/commit
[PATCH] powerpc: Kill _machine and hard-coded platform numbers
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 28 Mar 2006 12:15:54 +0000 (23:15 +1100)
committerPaul Mackerras <paulus@samba.org>
Tue, 28 Mar 2006 12:15:54 +0000 (23:15 +1100)
commite8222502ee6157e2713da9e0792c21f4ad458d50
tree0f970fb99912c257a7e5254f863a53f79d22ab14
parent056cb48a2fb6fb31debf665695a9f97b45cfb8ec
[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>
63 files changed:
Documentation/powerpc/booting-without-of.txt
arch/powerpc/kernel/asm-offsets.c
arch/powerpc/kernel/nvram_64.c
arch/powerpc/kernel/pci_32.c
arch/powerpc/kernel/proc_ppc64.c
arch/powerpc/kernel/prom.c
arch/powerpc/kernel/prom_init.c
arch/powerpc/kernel/rtas-proc.c
arch/powerpc/kernel/rtas.c
arch/powerpc/kernel/setup-common.c
arch/powerpc/kernel/setup_32.c
arch/powerpc/kernel/setup_64.c
arch/powerpc/kernel/traps.c
arch/powerpc/kernel/vdso.c
arch/powerpc/kernel/vmlinux.lds.S
arch/powerpc/mm/hash_utils_64.c
arch/powerpc/platforms/cell/setup.c
arch/powerpc/platforms/chrp/setup.c
arch/powerpc/platforms/iseries/setup.c
arch/powerpc/platforms/maple/setup.c
arch/powerpc/platforms/powermac/bootx_init.c
arch/powerpc/platforms/powermac/feature.c
arch/powerpc/platforms/powermac/low_i2c.c
arch/powerpc/platforms/powermac/nvram.c
arch/powerpc/platforms/powermac/pci.c
arch/powerpc/platforms/powermac/pfunc_base.c
arch/powerpc/platforms/powermac/setup.c
arch/powerpc/platforms/powermac/time.c
arch/powerpc/platforms/pseries/eeh.c
arch/powerpc/platforms/pseries/pci.c
arch/powerpc/platforms/pseries/pci_dlpar.c
arch/powerpc/platforms/pseries/reconfig.c
arch/powerpc/platforms/pseries/rtasd.c
arch/powerpc/platforms/pseries/setup.c
arch/ppc/platforms/prep_setup.c
drivers/char/generic_nvram.c
drivers/ide/pci/via82cxxx.c
drivers/ide/ppc/pmac.c
drivers/ieee1394/ohci1394.c
drivers/macintosh/adb.c
drivers/macintosh/adbhid.c
drivers/macintosh/mediabay.c
drivers/media/video/planb.c
drivers/net/tulip/de4x5.c
drivers/scsi/mesh.c
drivers/usb/core/hcd-pci.c
drivers/video/aty/aty128fb.c
drivers/video/aty/atyfb_base.c
drivers/video/aty/radeon_pm.c
drivers/video/cirrusfb.c
drivers/video/matrox/matroxfb_base.c
drivers/video/nvidia/nvidia.c
drivers/video/radeonfb.c
drivers/video/riva/fbdev.c
fs/partitions/mac.c
include/asm-powerpc/machdep.h
include/asm-powerpc/pmac_feature.h
include/asm-powerpc/processor.h
include/asm-powerpc/prom.h
include/asm-powerpc/vdso_datapage.h
include/asm-ppc/machdep.h
sound/oss/dmasound/dmasound_awacs.c
sound/ppc/pmac.c