2008-10-09 17:51:41 +03:00
/ *
* linux/ a r c h / a r m / m a c h - o m a p3 / s r a m . S
*
* Omap3 s p e c i f i c f u n c t i o n s t h a t n e e d t o b e r u n i n i n t e r n a l S R A M
*
2009-06-19 19:08:27 -06:00
* Copyright ( C ) 2 0 0 4 , 2 0 0 7 , 2 0 0 8 T e x a s I n s t r u m e n t s , I n c .
* Copyright ( C ) 2 0 0 8 N o k i a C o r p o r a t i o n
2008-10-09 17:51:41 +03:00
*
2009-06-19 19:08:27 -06:00
* Rajendra N a y a k < r n a y a k @ti.com>
2008-10-09 17:51:41 +03:00
* Richard W o o d r u f f < r - w o o d r u f f2 @ti.com>
2009-06-19 19:08:27 -06:00
* Paul W a l m s l e y
2008-10-09 17:51:41 +03:00
*
* This p r o g r a m i s f r e e s o f t w a r e ; you can redistribute it and/or
* modify i t u n d e r t h e t e r m s o f t h e G N U G e n e r a l P u b l i c L i c e n s e a s
* published b y t h e F r e e S o f t w a r e F o u n d a t i o n ; either version 2 of
* the L i c e n s e , o r ( a t y o u r o p t i o n ) a n y l a t e r v e r s i o n .
*
* This p r o g r a m i s d i s t r i b u t e d i n t h e h o p e t h a t i t w i l l b e u s e f u l ,
* but W I T H O U T A N Y W A R R A N T Y ; without even the implied warranty of
* MERCHANTABILITY o r F I T N E S S F O R A P A R T I C U L A R / P U R P O S E . S e e t h e
* GNU G e n e r a l P u b l i c L i c e n s e f o r m o r e d e t a i l s .
*
* You s h o u l d h a v e r e c e i v e d a c o p y o f t h e G N U G e n e r a l P u b l i c L i c e n s e
* along w i t h t h i s p r o g r a m ; if not, write to the Free Software
* Foundation, I n c . , 5 9 T e m p l e P l a c e , S u i t e 3 3 0 , B o s t o n ,
* MA 0 2 1 1 1 - 1 3 0 7 U S A
* /
# include < l i n u x / l i n k a g e . h >
2012-02-24 10:34:35 -08:00
2008-10-09 17:51:41 +03:00
# include < a s m / a s s e m b l e r . h >
2012-08-31 10:59:07 -07:00
# include " s o c . h "
2012-02-24 10:34:35 -08:00
# include " i o m a p . h "
2008-10-09 17:51:41 +03:00
# include " s d r c . h "
2012-10-21 01:01:11 -06:00
# include " c m 3 x x x . h "
2008-10-09 17:51:41 +03:00
2011-03-04 15:33:56 +00:00
/ *
* This f i l e n e e d s b e b u i l t u n c o n d i t i o n a l l y a s A R M t o i n t e r o p e r a t e c o r r e c t l y
* with n o n - T h u m b - 2 - c a p a b l e f i r m w a r e .
* /
.arm
2008-10-09 17:51:41 +03:00
.text
2009-07-24 19:43:25 -06:00
/* r1 parameters */
2009-06-19 19:08:28 -06:00
# define S D R C _ N O _ U N L O C K _ D L L 0 x0
# define S D R C _ U N L O C K _ D L L 0 x1
/* SDRC_DLLA_CTRL bit settings */
2009-06-19 19:08:29 -06:00
# define F I X E D D E L A Y _ S H I F T 2 4
# define F I X E D D E L A Y _ M A S K ( 0 x f f < < F I X E D D E L A Y _ S H I F T )
2009-06-19 19:08:28 -06:00
# define D L L I D L E _ M A S K 0 x4
2009-06-19 19:08:29 -06:00
/ *
* SDRC_ D L L A _ C T R L d e f a u l t v a l u e s : T I h a r d w a r e t e a m i n d i c a t e s t h a t
* FIXEDDELAY s h o u l d b e i n i t i a l i z e d t o 0 x f . T h i s a p p a r e n t l y w a s
* empirically d e t e r m i n e d d u r i n g p r o c e s s t e s t i n g , s o n o d e r i v a t i o n
* was p r o v i d e d .
* /
# define F I X E D D E L A Y _ D E F A U L T ( 0 x0 f < < F I X E D D E L A Y _ S H I F T )
2009-06-19 19:08:28 -06:00
/* SDRC_DLLA_STATUS bit settings */
# define L O C K S T A T U S _ M A S K 0 x4
/* SDRC_POWER bit settings */
# define S R F R O N I D L E R E Q _ M A S K 0 x40
/* CM_IDLEST1_CORE bit settings */
# define S T _ S D R C _ M A S K 0 x2
/* CM_ICLKEN1_CORE bit settings */
# define E N _ S D R C _ M A S K 0 x2
/* CM_CLKSEL1_PLL bit settings */
# define C O R E _ D P L L _ C L K O U T _ D I V _ S H I F T 0 x1 b
2008-10-09 17:51:41 +03:00
/ *
2009-06-19 19:08:27 -06:00
* omap3 _ s r a m _ c o n f i g u r e _ c o r e _ d p l l - c h a n g e D P L L 3 M 2 d i v i d e r
2009-07-24 19:43:25 -06:00
*
* Params p a s s e d i n r e g i s t e r s :
* r0 = n e w M 2 d i v i d e r s e t t i n g ( o n l y 1 a n d 2 s u p p o r t e d r i g h t n o w )
* r1 = u n l o c k S D R C D L L ? ( 1 = y e s , 0 = n o ) . O n l y u n l o c k D L L f o r
2009-05-12 17:26:32 -06:00
* SDRC r a t e s < 8 3 M H z
2009-07-24 19:43:25 -06:00
* r2 = n u m b e r o f M P U c y c l e s t o w a i t f o r S D R C t o s t a b i l i z e a f t e r
2009-06-19 19:08:26 -06:00
* reprogramming t h e S D R C w h e n s w i t c h i n g t o a s l o w e r M P U s p e e d
2009-07-24 19:43:25 -06:00
* r3 = i n c r e a s i n g S D R C r a t e ? ( 1 = y e s , 0 = n o )
*
* Params p a s s e d v i a t h e s t a c k . T h e n e e d e d p a r a m s w i l l b e c o p i e d i n S R A M
* before u s e b y t h e c o d e i n S R A M ( S D R A M i s n o t a c c e s s i b l e d u r i n g S D R C
* reconfiguration) :
* new S D R C _ R F R _ C T R L _ 0 r e g i s t e r c o n t e n t s
* new S D R C _ A C T I M _ C T R L _ A _ 0 r e g i s t e r c o n t e n t s
* new S D R C _ A C T I M _ C T R L _ B _ 0 r e g i s t e r c o n t e n t s
* new S D R C _ M R _ 0 r e g i s t e r v a l u e
* new S D R C _ R F R _ C T R L _ 1 r e g i s t e r c o n t e n t s
* new S D R C _ A C T I M _ C T R L _ A _ 1 r e g i s t e r c o n t e n t s
* new S D R C _ A C T I M _ C T R L _ B _ 1 r e g i s t e r c o n t e n t s
* new S D R C _ M R _ 1 r e g i s t e r v a l u e
2009-06-19 19:08:26 -06:00
*
2009-12-08 16:33:14 -07:00
* If t h e p a r a m S D R C _ R F R _ C T R L _ 1 i s 0 , t h e p a r a m e t e r s a r e n o t p r o g r a m m e d i n t o
* the S D R C C S 1 r e g i s t e r s
*
* NOTE : This c o d e n o l o n g e r a t t e m p t s t o p r o g r a m t h e S D R C A C t i m i n g a n d M R
* registers. T h i s i s b e c a u s e t h e c o d e c u r r e n t l y c a n n o t e n s u r e t h a t a l l
* L3 i n i t i a t o r s ( e . g . , s D M A , I V A , D S S D I S P C , e t c . ) a r e n o t a c c e s s i n g t h e
* SDRAM w h e n t h e r e g i s t e r s a r e w r i t t e n . I f t h e r e g i s t e r s a r e c h a n g e d w h i l e
* an i n i t i a t o r i s a c c e s s i n g S D R A M , m e m o r y c a n b e c o r r u p t e d a n d / o r t h e S D R C
* may e n t e r a n u n p r e d i c t a b l e s t a t e . I n t h e f u t u r e , t h e i n t e n t i s t o
* re- e n a b l e t h i s c o d e i n c a s e s w h e r e w e c a n e n s u r e t h a t n o i n i t i a t o r s a r e
* touching t h e S D R A M . U n t i l t h a t t i m e , u s e r s w h o k n o w t h a t t h e i r u s e c a s e
* can s a t i s f y t h e a b o v e r e q u i r e m e n t c a n e n a b l e t h e C O N F I G _ O M A P 3 _ S D R C _ A C _ T I M I N G
* option.
2010-12-21 21:08:14 -07:00
*
* Richard W o o d r u f f n o t e s t h a t a n y c h a n g e s t o t h i s c o d e m u s t b e c a r e f u l l y
* audited a n d t e s t e d t o e n s u r e t h a t t h e y d o n ' t c a u s e a T L B m i s s w h i l e
* the S D R A M i s i n a c c e s s i b l e . S u c h a s i t u a t i o n w i l l c r a s h t h e s y s t e m
* since i t w i l l c a u s e t h e A R M M M U t o a t t e m p t t o w a l k t h e p a g e t a b l e s .
* These c r a s h e s m a y b e i n t e r m i t t e n t .
2008-10-09 17:51:41 +03:00
* /
2011-02-02 16:38:06 +01:00
.align 3
2008-10-09 17:51:41 +03:00
ENTRY( o m a p3 _ s r a m _ c o n f i g u r e _ c o r e _ d p l l )
stmfd s p ! , { r1 - r12 , l r } @ store regs to stack
2009-07-24 19:43:25 -06:00
@ pull the extra args off the stack
@ and store them in SRAM
2011-03-04 15:33:56 +00:00
/ *
* PC- r e l a t i v e s t o r e s a r e d e p r e c a t e d i n A R M v7 a n d l e a d t o u n d e f i n e d b e h a v i o u r
* in T h u m b - 2 : u s e a r7 a s a b a s e i n s t e a d .
* Be c a r e f u l n o t t o c l o b b e r r7 w h e n m a i n t a i n g t h i s f i l e .
* /
THUMB( a d r r7 , o m a p3 _ s r a m _ c o n f i g u r e _ c o r e _ d p l l )
.macro strtext Rt : req, l a b e l : r e q
ARM( s t r \ R t , \ l a b e l )
THUMB( s t r \ R t , [ r7 , \ l a b e l - o m a p3 _ s r a m _ c o n f i g u r e _ c o r e _ d p l l ] )
.endm
2009-07-24 19:43:25 -06:00
ldr r4 , [ s p , #52 ]
2011-03-04 15:33:56 +00:00
strtext r4 , o m a p _ s d r c _ r f r _ c t r l _ 0 _ v a l
2009-07-24 19:43:25 -06:00
ldr r4 , [ s p , #56 ]
2011-03-04 15:33:56 +00:00
strtext r4 , o m a p _ s d r c _ a c t i m _ c t r l _ a _ 0 _ v a l
2009-07-24 19:43:25 -06:00
ldr r4 , [ s p , #60 ]
2011-03-04 15:33:56 +00:00
strtext r4 , o m a p _ s d r c _ a c t i m _ c t r l _ b _ 0 _ v a l
2009-07-24 19:43:25 -06:00
ldr r4 , [ s p , #64 ]
2011-03-04 15:33:56 +00:00
strtext r4 , o m a p _ s d r c _ m r _ 0 _ v a l
2009-07-24 19:43:25 -06:00
ldr r4 , [ s p , #68 ]
2011-03-04 15:33:56 +00:00
strtext r4 , o m a p _ s d r c _ r f r _ c t r l _ 1 _ v a l
2009-07-24 19:43:25 -06:00
cmp r4 , #0 @ if SDRC_RFR_CTRL_1 is 0,
beq s k i p _ c s1 _ p a r a m s @ do not use cs1 params
ldr r4 , [ s p , #72 ]
2011-03-04 15:33:56 +00:00
strtext r4 , o m a p _ s d r c _ a c t i m _ c t r l _ a _ 1 _ v a l
2009-07-24 19:43:25 -06:00
ldr r4 , [ s p , #76 ]
2011-03-04 15:33:56 +00:00
strtext r4 , o m a p _ s d r c _ a c t i m _ c t r l _ b _ 1 _ v a l
2009-07-24 19:43:25 -06:00
ldr r4 , [ s p , #80 ]
2011-03-04 15:33:56 +00:00
strtext r4 , o m a p _ s d r c _ m r _ 1 _ v a l
2009-07-24 19:43:25 -06:00
skip_cs1_params :
2010-09-27 14:02:59 -06:00
mrc p15 , 0 , r8 , c1 , c0 , 0 @ read ctrl register
bic r10 , r8 , #0x800 @ clear Z-bit, disable branch prediction
mcr p15 , 0 , r10 , c1 , c0 , 0 @ write ctrl register
2009-05-12 17:27:09 -06:00
dsb @ flush buffered writes to interconnect
2010-09-27 14:02:59 -06:00
isb @ prevent speculative exec past here
2009-07-24 19:43:25 -06:00
cmp r3 , #1 @ if increasing SDRC clk rate,
2009-06-19 19:08:29 -06:00
bleq c o n f i g u r e _ s d r c @ program the SDRC regs early (for RFR)
2009-07-24 19:43:25 -06:00
cmp r1 , #S D R C _ U N L O C K _ D L L @ s e t t h e i n t e n d e d D L L s t a t e
2009-05-12 17:26:32 -06:00
bleq u n l o c k _ d l l
2008-10-09 17:51:41 +03:00
blne l o c k _ d l l
2009-06-19 19:08:27 -06:00
bl s d r a m _ i n _ s e l f r e f r e s h @ put SDRAM in self refresh, idle SDRC
bl c o n f i g u r e _ c o r e _ d p l l @ change the DPLL3 M2 divider
2009-07-24 19:44:02 -06:00
mov r12 , r2
bl w a i t _ c l k _ s t a b l e @ wait for SDRC to stabilize
2009-06-19 19:08:27 -06:00
bl e n a b l e _ s d r c @ take SDRC out of idle
2009-07-24 19:43:25 -06:00
cmp r1 , #S D R C _ U N L O C K _ D L L @ w a i t f o r D L L s t a t u s t o c h a n g e
2009-05-12 17:26:32 -06:00
bleq w a i t _ d l l _ u n l o c k
2008-10-09 17:51:41 +03:00
blne w a i t _ d l l _ l o c k
2009-07-24 19:43:25 -06:00
cmp r3 , #1 @ if increasing SDRC clk rate,
2009-06-19 19:08:27 -06:00
beq r e t u r n _ t o _ s d r a m @ return to SDRAM code, otherwise,
bl c o n f i g u r e _ s d r c @ reprogram SDRC regs now
2009-06-19 19:08:26 -06:00
return_to_sdram :
2010-09-27 14:02:59 -06:00
mcr p15 , 0 , r8 , c1 , c0 , 0 @ restore ctrl register
2009-05-12 17:27:09 -06:00
isb @ prevent speculative exec past here
2008-10-09 17:51:41 +03:00
mov r0 , #0 @ return value
ldmfd s p ! , { r1 - r12 , p c } @ restore regs and return
unlock_dll :
2009-05-12 17:27:10 -06:00
ldr r11 , o m a p3 _ s d r c _ d l l a _ c t r l
ldr r12 , [ r11 ]
2009-07-24 19:44:01 -06:00
bic r12 , r12 , #F I X E D D E L A Y _ M A S K
2009-06-19 19:08:29 -06:00
orr r12 , r12 , #F I X E D D E L A Y _ D E F A U L T
2009-06-19 19:08:28 -06:00
orr r12 , r12 , #D L L I D L E _ M A S K
2009-05-12 17:27:10 -06:00
str r12 , [ r11 ] @ (no OCP barrier needed)
2008-10-09 17:51:41 +03:00
bx l r
lock_dll :
2009-05-12 17:27:10 -06:00
ldr r11 , o m a p3 _ s d r c _ d l l a _ c t r l
ldr r12 , [ r11 ]
2009-06-19 19:08:28 -06:00
bic r12 , r12 , #D L L I D L E _ M A S K
2009-05-12 17:27:10 -06:00
str r12 , [ r11 ] @ (no OCP barrier needed)
2008-10-09 17:51:41 +03:00
bx l r
sdram_in_selfrefresh :
2009-05-12 17:27:10 -06:00
ldr r11 , o m a p3 _ s d r c _ p o w e r @ read the SDRC_POWER register
ldr r12 , [ r11 ] @ read the contents of SDRC_POWER
mov r9 , r12 @ keep a copy of SDRC_POWER bits
2009-06-19 19:08:28 -06:00
orr r12 , r12 , #S R F R O N I D L E R E Q _ M A S K @ e n a b l e s e l f r e f r e s h o n i d l e
2009-05-12 17:27:10 -06:00
str r12 , [ r11 ] @ write back to SDRC_POWER register
ldr r12 , [ r11 ] @ posted-write barrier for SDRC
2009-06-19 19:08:27 -06:00
idle_sdrc :
2009-05-12 17:27:10 -06:00
ldr r11 , o m a p3 _ c m _ i c l k e n 1 _ c o r e @ read the CM_ICLKEN1_CORE reg
ldr r12 , [ r11 ]
2009-06-19 19:08:28 -06:00
bic r12 , r12 , #E N _ S D R C _ M A S K @ d i s a b l e i c l k b i t f o r S D R C
2009-05-12 17:27:10 -06:00
str r12 , [ r11 ]
2008-10-09 17:51:41 +03:00
wait_sdrc_idle :
2009-05-12 17:27:10 -06:00
ldr r11 , o m a p3 _ c m _ i d l e s t 1 _ c o r e
ldr r12 , [ r11 ]
2009-06-19 19:08:28 -06:00
and r12 , r12 , #S T _ S D R C _ M A S K @ c h e c k f o r S D R C i d l e
cmp r12 , #S T _ S D R C _ M A S K
2008-10-09 17:51:41 +03:00
bne w a i t _ s d r c _ i d l e
bx l r
configure_core_dpll :
2009-05-12 17:27:10 -06:00
ldr r11 , o m a p3 _ c m _ c l k s e l 1 _ p l l
ldr r12 , [ r11 ]
ldr r10 , c o r e _ m 2 _ m a s k _ v a l @ modify m2 for core dpll
and r12 , r12 , r10
2009-07-24 19:43:25 -06:00
orr r12 , r12 , r0 , l s l #C O R E _ D P L L _ C L K O U T _ D I V _ S H I F T
2009-05-12 17:27:10 -06:00
str r12 , [ r11 ]
ldr r12 , [ r11 ] @ posted-write barrier for CM
2008-10-09 17:51:41 +03:00
bx l r
wait_clk_stable :
2009-05-12 17:27:10 -06:00
subs r12 , r12 , #1
2008-10-09 17:51:41 +03:00
bne w a i t _ c l k _ s t a b l e
bx l r
enable_sdrc :
2009-05-12 17:27:10 -06:00
ldr r11 , o m a p3 _ c m _ i c l k e n 1 _ c o r e
ldr r12 , [ r11 ]
2009-06-19 19:08:28 -06:00
orr r12 , r12 , #E N _ S D R C _ M A S K @ e n a b l e i c l k b i t f o r S D R C
2009-05-12 17:27:10 -06:00
str r12 , [ r11 ]
2008-10-09 17:51:41 +03:00
wait_sdrc_idle1 :
2009-05-12 17:27:10 -06:00
ldr r11 , o m a p3 _ c m _ i d l e s t 1 _ c o r e
ldr r12 , [ r11 ]
2009-06-19 19:08:28 -06:00
and r12 , r12 , #S T _ S D R C _ M A S K
2009-05-12 17:27:10 -06:00
cmp r12 , #0
2008-10-09 17:51:41 +03:00
bne w a i t _ s d r c _ i d l e 1
2009-05-12 17:27:09 -06:00
restore_sdrc_power_val :
2009-05-12 17:27:10 -06:00
ldr r11 , o m a p3 _ s d r c _ p o w e r
str r9 , [ r11 ] @ restore SDRC_POWER, no barrier needed
2008-10-09 17:51:41 +03:00
bx l r
wait_dll_lock :
2009-05-12 17:27:10 -06:00
ldr r11 , o m a p3 _ s d r c _ d l l a _ s t a t u s
ldr r12 , [ r11 ]
2009-06-19 19:08:28 -06:00
and r12 , r12 , #L O C K S T A T U S _ M A S K
cmp r12 , #L O C K S T A T U S _ M A S K
2008-10-09 17:51:41 +03:00
bne w a i t _ d l l _ l o c k
bx l r
wait_dll_unlock :
2009-05-12 17:27:10 -06:00
ldr r11 , o m a p3 _ s d r c _ d l l a _ s t a t u s
ldr r12 , [ r11 ]
2009-06-19 19:08:28 -06:00
and r12 , r12 , #L O C K S T A T U S _ M A S K
2009-05-12 17:27:10 -06:00
cmp r12 , #0x0
2008-10-09 17:51:41 +03:00
bne w a i t _ d l l _ u n l o c k
bx l r
configure_sdrc :
2009-07-24 19:43:25 -06:00
ldr r12 , o m a p _ s d r c _ r f r _ c t r l _ 0 _ v a l @ fetch value from SRAM
ldr r11 , o m a p3 _ s d r c _ r f r _ c t r l _ 0 @ fetch addr from SRAM
str r12 , [ r11 ] @ store
2009-12-08 16:33:14 -07:00
# ifdef C O N F I G _ O M A P 3 _ S D R C _ A C _ T I M I N G
2009-07-24 19:43:25 -06:00
ldr r12 , o m a p _ s d r c _ a c t i m _ c t r l _ a _ 0 _ v a l
ldr r11 , o m a p3 _ s d r c _ a c t i m _ c t r l _ a _ 0
str r12 , [ r11 ]
ldr r12 , o m a p _ s d r c _ a c t i m _ c t r l _ b _ 0 _ v a l
ldr r11 , o m a p3 _ s d r c _ a c t i m _ c t r l _ b _ 0
str r12 , [ r11 ]
ldr r12 , o m a p _ s d r c _ m r _ 0 _ v a l
2009-06-19 19:08:27 -06:00
ldr r11 , o m a p3 _ s d r c _ m r _ 0
2009-07-24 19:43:25 -06:00
str r12 , [ r11 ]
2009-12-08 16:33:14 -07:00
# endif
2009-07-24 19:43:25 -06:00
ldr r12 , o m a p _ s d r c _ r f r _ c t r l _ 1 _ v a l
cmp r12 , #0 @ if SDRC_RFR_CTRL_1 is 0,
beq s k i p _ c s1 _ p r o g @ do not program cs1 params
ldr r11 , o m a p3 _ s d r c _ r f r _ c t r l _ 1
str r12 , [ r11 ]
2009-12-08 16:33:14 -07:00
# ifdef C O N F I G _ O M A P 3 _ S D R C _ A C _ T I M I N G
2009-07-24 19:43:25 -06:00
ldr r12 , o m a p _ s d r c _ a c t i m _ c t r l _ a _ 1 _ v a l
ldr r11 , o m a p3 _ s d r c _ a c t i m _ c t r l _ a _ 1
str r12 , [ r11 ]
ldr r12 , o m a p _ s d r c _ a c t i m _ c t r l _ b _ 1 _ v a l
ldr r11 , o m a p3 _ s d r c _ a c t i m _ c t r l _ b _ 1
str r12 , [ r11 ]
ldr r12 , o m a p _ s d r c _ m r _ 1 _ v a l
ldr r11 , o m a p3 _ s d r c _ m r _ 1
str r12 , [ r11 ]
2009-12-08 16:33:14 -07:00
# endif
2009-07-24 19:43:25 -06:00
skip_cs1_prog :
ldr r12 , [ r11 ] @ posted-write barrier for SDRC
2008-10-09 17:51:41 +03:00
bx l r
2011-03-04 15:33:56 +00:00
.align
2008-10-09 17:51:41 +03:00
omap3_sdrc_power :
.word OMAP3 4 X X _ S D R C _ R E G A D D R ( S D R C _ P O W E R )
omap3_cm_clksel1_pll :
.word OMAP3 4 X X _ C M _ R E G A D D R ( P L L _ M O D , C M _ C L K S E L 1 )
omap3_cm_idlest1_core :
.word OMAP3 4 X X _ C M _ R E G A D D R ( C O R E _ M O D , C M _ I D L E S T )
omap3_cm_iclken1_core :
.word OMAP3 4 X X _ C M _ R E G A D D R ( C O R E _ M O D , C M _ I C L K E N 1 )
2009-07-24 19:43:25 -06:00
omap3_sdrc_rfr_ctrl_0 :
2008-10-09 17:51:41 +03:00
.word OMAP3 4 X X _ S D R C _ R E G A D D R ( S D R C _ R F R _ C T R L _ 0 )
2009-07-24 19:43:25 -06:00
omap3_sdrc_rfr_ctrl_1 :
.word OMAP3 4 X X _ S D R C _ R E G A D D R ( S D R C _ R F R _ C T R L _ 1 )
omap3_sdrc_actim_ctrl_a_0 :
2008-10-09 17:51:41 +03:00
.word OMAP3 4 X X _ S D R C _ R E G A D D R ( S D R C _ A C T I M _ C T R L _ A _ 0 )
2009-07-24 19:43:25 -06:00
omap3_sdrc_actim_ctrl_a_1 :
.word OMAP3 4 X X _ S D R C _ R E G A D D R ( S D R C _ A C T I M _ C T R L _ A _ 1 )
omap3_sdrc_actim_ctrl_b_0 :
2008-10-09 17:51:41 +03:00
.word OMAP3 4 X X _ S D R C _ R E G A D D R ( S D R C _ A C T I M _ C T R L _ B _ 0 )
2009-07-24 19:43:25 -06:00
omap3_sdrc_actim_ctrl_b_1 :
.word OMAP3 4 X X _ S D R C _ R E G A D D R ( S D R C _ A C T I M _ C T R L _ B _ 1 )
2009-06-19 19:08:27 -06:00
omap3_sdrc_mr_0 :
.word OMAP3 4 X X _ S D R C _ R E G A D D R ( S D R C _ M R _ 0 )
2009-07-24 19:43:25 -06:00
omap3_sdrc_mr_1 :
.word OMAP3 4 X X _ S D R C _ R E G A D D R ( S D R C _ M R _ 1 )
omap_sdrc_rfr_ctrl_0_val :
.word 0xDEADBEEF
omap_sdrc_rfr_ctrl_1_val :
.word 0xDEADBEEF
omap_sdrc_actim_ctrl_a_0_val :
.word 0xDEADBEEF
omap_sdrc_actim_ctrl_a_1_val :
.word 0xDEADBEEF
omap_sdrc_actim_ctrl_b_0_val :
.word 0xDEADBEEF
omap_sdrc_actim_ctrl_b_1_val :
.word 0xDEADBEEF
omap_sdrc_mr_0_val :
.word 0xDEADBEEF
omap_sdrc_mr_1_val :
.word 0xDEADBEEF
2008-10-09 17:51:41 +03:00
omap3_sdrc_dlla_status :
.word OMAP3 4 X X _ S D R C _ R E G A D D R ( S D R C _ D L L A _ S T A T U S )
omap3_sdrc_dlla_ctrl :
.word OMAP3 4 X X _ S D R C _ R E G A D D R ( S D R C _ D L L A _ C T R L )
core_m2_mask_val :
.word 0x07FFFFFF
2011-03-04 15:33:56 +00:00
ENDPROC( o m a p3 _ s r a m _ c o n f i g u r e _ c o r e _ d p l l )
2008-10-09 17:51:41 +03:00
ENTRY( o m a p3 _ s r a m _ c o n f i g u r e _ c o r e _ d p l l _ s z )
.word . - omap3 _ s r a m _ c o n f i g u r e _ c o r e _ d p l l
2009-07-24 19:43:25 -06:00