Changeset 3237
- Timestamp:
- Aug 29, 2012 2:50:52 AM (9 months ago)
- File:
-
- 1 edited
-
dev/olpc/mmp2camera/ccic.fth (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dev/olpc/mmp2camera/ccic.fth
r3116 r3237 80 80 ; 81 81 82 [ifdef] mmp383 : isp-island-power-on84 \ set ISP regs to the default value85 0 h# 50 pmua!86 0 h# 1fc pmua!87 88 \ Turn on the CCIC/ISP power switch89 h# 200 h# 1fc pmua!90 d# 10 ms91 h# 600 h# 1fc pmua!92 d# 10 ms93 \ Disable isp isolation\n"94 h# 700 h# 1fc pmua!95 96 \ Start memory redundacy repair97 4 h# 224 pmua-set \ PMUA_ISP_CLK_RES_CTRL98 begin d# 10 ms h# 224 pmua@ 4 and 0= until99 100 \ Enable dummy clocks to the SRAMS101 h# 10 h# 1e0 pmua-set \ PMUA_ISLD_CI_PDWN_CTRL102 d# 200 ms103 h# 10 h# 1e0 pmua-clr104 105 \ Enable ISP clocks here if you want to use the ISP106 \ 8 h# 224 pmua-set \ Enable AXI clock in PMUA_ISP_CLK_RES_CTRL107 \ h# f00 h# 200 h# 224 pmua-fld \ Clock divider108 \ h# c0 h# 40 h# 224 pmua-fld \ CLock source109 \ h# 10 h# 224 pmua-set110 111 \ enable CCIC clocks112 h# 8238 h# 50 pmua-set113 114 \ Deassert ISP clocks here if you want to use the ISP115 \ XXX should these be pmua-clr ?116 \ 1 h# 224 pmua-set \ AXI reset117 \ 2 h# 224 pmua-set \ ISP SW reset118 \ h# 10000 h# 50 pmua-set \ CCIC1 AXI Arbiter reset119 120 \ De-assert CCIC Resets121 h# 10107 h# 50 pmua-set \ XXX change to 107122 ;123 [then]124 82 : power-on ( -- ) 125 [ifdef] mmp3 isp-island-power-on [then] 126 127 \ Enable clocks 128 h# 3f h# 28 pmua! \ Clock gating - AHB, Internal PIXCLK, AXI clock always on 129 h# 0003.805b h# 50 pmua! \ PMUA clock config for CCIC - /1, PLL1/16, AXI arb, AXI, perip on 83 my-clock-on 130 84 131 85 \ h# 0000.0002 h# 88 cl! \ Clock select - PIXMCLK, 797/2 (PLL1/16) / 2 -> 24.9 MHz … … 144 98 h# 40 cl@ h# 1000.0000 or h# 40 cl! \ Disable pads 145 99 sensor-power-off 100 101 my-clock-off 146 102 ; 147 103 … … 207 163 ctlr-stop 208 164 interrupts-off 165 free-dma-bufs 209 166 power-off 210 free-dma-bufs211 167 camera-base h# 1000 " map-out" $call-parent 212 168 ;
Note: See TracChangeset
for help on using the changeset viewer.
