/ *
* ( C) C o p y r i g h t 2 0 0 7
* Stefan R o e s e , D E N X S o f t w a r e E n g i n e e r i n g , s r @denx.de.
*
* Copyright ( C ) 2 0 0 2 S c o t t M c N u t t < s m c n u t t @artesyncp.com>
*
* SPDX- L i c e n s e - I d e n t i f i e r : G P L - 2 . 0 +
* /
# include < p p c _ a s m . t m p l >
# include < c o n f i g . h >
# include < a s m / m m u . h >
# include < a s m / p p c4 x x . h >
/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* TLB T A B L E
*
* This t a b l e i s u s e d b y t h e c p u b o o t c o d e t o s e t u p t h e i n i t i a l t l b
* entries. R a t h e r t h a n m a k e b r o a d a s s u m p t i o n s i n t h e c p u s o u r c e t r e e ,
* this t a b l e l e t s e a c h b o a r d s e t t h i n g s u p h o w e v e r t h e y l i k e .
*
* Pointer t o t h e t a b l e i s r e t u r n e d i n r1
*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
.section .bootpg , " ax"
.globl tlbtab
tlbtab :
tlbtab_ s t a r t
/ *
* BOOT_ C S ( F L A S H ) m u s t b e f i r s t . B e f o r e r e l o c a t i o n S A _ I c a n b e o f f t o u s e t h e
* speed u p b o o t p r o c e s s . I t i s p a t c h e d a f t e r r e l o c a t i o n t o e n a b l e S A _ I
* /
tlbentry( 0 x f f f00 0 0 0 , S Z _ 1 M , 0 x f f f00 0 0 0 , 1 , A C _ R W X | S A _ G )
tlbentry( 0 x f f c00 0 0 0 , S Z _ 1 M , 0 x f f c00 0 0 0 , 1 , A C _ R W X | S A _ I G )
tlbentry( 0 x f f d00 0 0 0 , S Z _ 1 M , 0 x f f d00 0 0 0 , 1 , A C _ R W X | S A _ I G )
tlbentry( 0 x f f e 0 0 0 0 0 , S Z _ 1 M , 0 x f f e 0 0 0 0 0 , 1 , A C _ R W X | S A _ I G )
tlbentry( 0 x f f90 0 0 0 0 , S Z _ 1 M , 0 x f f90 0 0 0 0 , 1 , A C _ R W X | S A _ I G )
tlbentry( C O N F I G _ S Y S _ E P L D _ B A S E , S Z _ 2 5 6 K , 0 x f f00 0 0 0 0 , 1 , A C _ R W | S A _ I G )
/ *
* TLB e n t r i e s f o r S D R A M a r e n o t n e e d e d o n t h i s p l a t f o r m .
* They a r e d y n a m i c a l l y g e n e r a t e d i n t h e S P D D D R ( 2 ) d e t e c t i o n
* routine.
* /
/* internal ram (l2 cache) */
tlbentry( C O N F I G _ S Y S _ I S R A M _ B A S E , S Z _ 2 5 6 K , 0 x80 0 0 0 0 0 0 , 0 , A C _ R W X | S A _ I )
/* peripherals at f0000000 */
tlbentry( C O N F I G _ S Y S _ P E R I P H E R A L _ B A S E , S Z _ 4 K , C O N F I G _ S Y S _ P E R I P H E R A L _ B A S E , 1 , A C _ R W | S A _ I G )
/* PCI */
tlbentry( C O N F I G _ S Y S _ P C I _ B A S E , S Z _ 2 5 6 M , 0 x00 0 0 0 0 0 0 , 9 , A C _ R W | S A _ I G )
tlbentry( C O N F I G _ S Y S _ P C I _ M E M B A S E , S Z _ 2 5 6 M , 0 x10 0 0 0 0 0 0 , 9 , A C _ R W | S A _ I G )
tlbtab_ e n d