Commit fcc188e7 authored by Roland Dreier's avatar Roland Dreier Committed by Linus Torvalds

[PATCH] ppc32: Allow ERPN for early serial to depend on CPU type

The PowerPC 440SPe supports up to 16 GB of RAM, and therefore its IO registers
are at 0x4_xxxx_xxxx instead of being at 0x1_xxxx_xxxx like most other PPC 440
chips.  To allow for this, this patch moves the definition of the ERPN used
for mapping UART0 from being hard-coded in the head_44x.S assembly code to
being defined in ibm44x.h.
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
Signed-off-by: default avatarMatt Porter <mporter@kernel.crashing.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 2104da90
...@@ -190,8 +190,8 @@ skpinv: addi r4,r4,1 /* Increment */ ...@@ -190,8 +190,8 @@ skpinv: addi r4,r4,1 /* Increment */
/* xlat fields */ /* xlat fields */
lis r4,UART0_PHYS_IO_BASE@h /* RPN depends on SoC */ lis r4,UART0_PHYS_IO_BASE@h /* RPN depends on SoC */
#ifndef CONFIG_440EP #ifdef UART0_PHYS_ERPN
ori r4,r4,0x0001 /* ERPN is 1 for second 4GB page */ ori r4,r4,UART0_PHYS_ERPN /* Add ERPN if above 4GB */
#endif #endif
/* attrib fields */ /* attrib fields */
......
...@@ -34,12 +34,17 @@ ...@@ -34,12 +34,17 @@
/* Lowest TLB slot consumed by the default pinned TLBs */ /* Lowest TLB slot consumed by the default pinned TLBs */
#define PPC44x_LOW_SLOT 63 #define PPC44x_LOW_SLOT 63
/* LS 32-bits of UART0 physical address location for early serial text debug */ /*
* Least significant 32-bits and extended real page number (ERPN) of
* UART0 physical address location for early serial text debug
*/
#if defined(CONFIG_440SP) #if defined(CONFIG_440SP)
#define UART0_PHYS_ERPN 1
#define UART0_PHYS_IO_BASE 0xf0000200 #define UART0_PHYS_IO_BASE 0xf0000200
#elif defined(CONFIG_440EP) #elif defined(CONFIG_440EP)
#define UART0_PHYS_IO_BASE 0xe0000000 #define UART0_PHYS_IO_BASE 0xe0000000
#else #else
#define UART0_PHYS_ERPN 1
#define UART0_PHYS_IO_BASE 0x40000200 #define UART0_PHYS_IO_BASE 0x40000200
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment