diff options
author | Vitaly Bordug <vbordug@ru.mvista.com> | 2006-01-20 22:22:34 +0300 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-02-10 16:52:46 +1100 |
commit | 75288c78c69020a574d93770c3a941b785f3d93d (patch) | |
tree | 091bcfa5a507e5f1dd387980047854be448f415c /include/asm-ppc/mpc8xx.h | |
parent | 1965746bce49ddf001af52c7985e16343c768021 (diff) | |
download | blackbird-op-linux-75288c78c69020a574d93770c3a941b785f3d93d.tar.gz blackbird-op-linux-75288c78c69020a574d93770c3a941b785f3d93d.zip |
[PATCH] ppc32: Make platform devices being able to assign functions
Implemented by modification of the .name field of the platform device,
when PDs with the
same names are to be used within different drivers, as
<device_name> -> <device_name>:<function>
Corresponding drivers should change the .name in struct device_driver to
reflect upper of course.
Added ppc_sys_device_disable/enable function set, making it easier to
disable all the inexistent/not utilized platform device way pdevs. By the
check of the "disabled" bit in the config field of ppc_sys_specs, disabled
platform devices will be either added/removed from the bus, or simply not
registered on it, depending on the time when disable/enable call asserted.
The default behaviour when nothing is disabled/enabled will be "all devices
are enabled", which is the same as before.
Also helper platform_notify_map function added, making assignment of
board-specific platform_info more consistent and generic.
Signed-off-by: Vitaly Bordug <vbordug@ru.mvista.com>
Signed-off-by: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-ppc/mpc8xx.h')
-rw-r--r-- | include/asm-ppc/mpc8xx.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-ppc/mpc8xx.h b/include/asm-ppc/mpc8xx.h index 73ec9a6db0b1..3515a7fa6c89 100644 --- a/include/asm-ppc/mpc8xx.h +++ b/include/asm-ppc/mpc8xx.h @@ -111,6 +111,7 @@ enum ppc_sys_devices { MPC8xx_CPM_SMC1, MPC8xx_CPM_SMC2, MPC8xx_CPM_USB, + NUM_PPC_SYS_DEVS, }; #define PPC_PIN_SIZE (24 * 1024 * 1024) /* 24Mbytes of data pinned */ |