[PATCH] ppc32: add 440ep support
Add PPC440EP core support. PPC440EP is a PPC440-based SoC with a classic PPC FPU and another set of peripherals. Signed-off-by: Wade Farnsworth <wfarnsworth@mvista.com> Signed-off-by: Matt Porter <mporter@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
e8be1c8e06
commit
c9cf73aee1
@@ -34,6 +34,10 @@ void __init ibm440gx_get_clocks(struct ibm44x_clocks* p, unsigned int sys_clk,
|
||||
u32 plld = CPR_READ(DCRN_CPR_PLLD);
|
||||
u32 uart0 = SDR_READ(DCRN_SDR_UART0);
|
||||
u32 uart1 = SDR_READ(DCRN_SDR_UART1);
|
||||
#ifdef CONFIG_440EP
|
||||
u32 uart2 = SDR_READ(DCRN_SDR_UART2);
|
||||
u32 uart3 = SDR_READ(DCRN_SDR_UART3);
|
||||
#endif
|
||||
|
||||
/* Dividers */
|
||||
u32 fbdv = __fix_zero((plld >> 24) & 0x1f, 32);
|
||||
@@ -96,6 +100,17 @@ bypass:
|
||||
p->uart1 = ser_clk;
|
||||
else
|
||||
p->uart1 = p->plb / __fix_zero(uart1 & 0xff, 256);
|
||||
#ifdef CONFIG_440EP
|
||||
if (uart2 & 0x00800000)
|
||||
p->uart2 = ser_clk;
|
||||
else
|
||||
p->uart2 = p->plb / __fix_zero(uart2 & 0xff, 256);
|
||||
|
||||
if (uart3 & 0x00800000)
|
||||
p->uart3 = ser_clk;
|
||||
else
|
||||
p->uart3 = p->plb / __fix_zero(uart3 & 0xff, 256);
|
||||
#endif
|
||||
}
|
||||
|
||||
/* Issue L2C diagnostic command */
|
||||
|
Reference in New Issue
Block a user