source: svn/newcon3bcm2_21bu/rockford/bsp/bcm97552/common/io_cs_init.s

Last change on this file was 76, checked in by megakiss, 10 years ago

1W 대기전력을 만족시키기 위하여 POWEROFF시 튜너를 Standby 상태로 함

  • Property svn:executable set to *
File size: 1.4 KB
Line 
1/*
2#************************************************************************
3#*     InitEbi: Initializes the EBI for proper chip-select operation    *
4#*                                                                      *
5#*      SYNTAX: void  InitEbi(void);                                    *
6#*     RETURNS:                                                         *
7#*                                                                      *
8#*     Configuration                                                    *
9#*       CS[0] - ROM or flash                           @ 0x1F000000                            *
10#*       CS[1] - Flash if boot from ROM         @ 0x1E000000                            *
11#*                                                                      *
12#************************************************************************
13*/
14
15InitEbi:
16        .set    noreorder
17                li      t1,EBI_ADR_BASE 
18                lw              t0, CS0CNTL(t1)
19                and             t0, t0, EBI_WORD_WIDE
20                bnez    t0, InitEbi_exit                /* if booting from flash, we're done */
21                nop
22
23
24                /* Chip Select # 0 */
25                li              t2,PHYS_CS0_DEV_BASE | EBI_SIZE_16M
26                sw      t2,CS0BASE(t1)        //# CS[0] Base
27
28                /* Chip Select # 1 is for flash */
29                li      t2,PHYS_CS1_DEV_BASE | EBI_SIZE_16M
30                sw      t2,CS1BASE(t1)        //# CS[1] Base
31#ifdef LITTLE_ENDIAN
32                li      t2,SEVENWT|EBI_WORD_WIDE|EBI_ENABLE|EBI_LITTLE_ENDIAN
33#else
34                li      t2,SEVENWT|EBI_WORD_WIDE|EBI_ENABLE
35#endif
36                sw      t2,CS1CNTL(t1)        //# CS[1] Control
37
38InitEbi_exit:
39        .set    reorder
40
Note: See TracBrowser for help on using the repository browser.