[PATCH] ppc32: ppc_sys fixes for 8xx and 82xx
This patch fixes a numbers of issues regarding to that both 8xx and 82xx began to use ppc_sys model: - Platform is now identified by default deviceless SOC, if no BOARD_CHIP_NAME is specified in the bard-specific header. For the list of supported names refer to (arch/ppc/syslib/) mpc8xx_sys.c and mpc82xx_sys.c for 8xx and 82xx respectively. - Fixed a bug in identification by name - if the name was not found, it returned -1 instead of default deviceless ppc_spec. - fixed devices amount in the 8xx platform system descriptions Signed-off-by: Vitaly Bordug <vbordug@ru.mvista.com> Signed-off-by: Marcelo Tosatti <marcelo.tosatti@cyclades.com> Signed-off-by: Kumar Gala <kumar.gala@freescale.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
committed by
Paul Mackerras
parent
b37665e0ba
commit
1461b4ea2b
@@ -1087,6 +1087,9 @@ typedef struct im_idma {
|
||||
#define SCCR_PCIDF_MSK 0x00000078 /* PCI division factor */
|
||||
#define SCCR_PCIDF_SHIFT 3
|
||||
|
||||
#ifndef CPM_IMMR_OFFSET
|
||||
#define CPM_IMMR_OFFSET 0x101a8
|
||||
#endif
|
||||
|
||||
#endif /* __CPM2__ */
|
||||
#endif /* __KERNEL__ */
|
||||
|
||||
@@ -92,6 +92,10 @@ enum ppc_sys_devices {
|
||||
extern unsigned char __res[];
|
||||
#endif
|
||||
|
||||
#ifndef BOARD_CHIP_NAME
|
||||
#define BOARD_CHIP_NAME ""
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_8260 */
|
||||
#endif /* !__ASM_PPC_MPC8260_H__ */
|
||||
#endif /* __KERNEL__ */
|
||||
|
||||
@@ -113,6 +113,10 @@ enum ppc_sys_devices {
|
||||
MPC8xx_CPM_USB,
|
||||
};
|
||||
|
||||
#ifndef BOARD_CHIP_NAME
|
||||
#define BOARD_CHIP_NAME ""
|
||||
#endif
|
||||
|
||||
#endif /* !__ASSEMBLY__ */
|
||||
#endif /* CONFIG_8xx */
|
||||
#endif /* __CONFIG_8xx_DEFS */
|
||||
|
||||
Reference in New Issue
Block a user