[Armadillo:05976] Re: Armadillo-420のSPI動作

Takenoshita Koyo email@hidden
2010年 10月 25日 (月) 17:50:10 JST


$BC]G72<$G$9!#(B

> $B-!(BSPI$B$N%^%9%?!<F0:n;~$NF14|%/%m%C%/!J(BCSPI3_SCK$B!K$N<~GH?t$r65$($F$/$@$5$$!#(B
$B$3$l$O!"8D!9$email@hidden$G$-$^$9!#(B
$B4](B3 $B$email@hidden@$7$^$9!#(B

> $B-"I8=`E*$J(BSPI$B$N?.9f$O(BMOSI$B!"(BMISO$B!"(BSCK$B!"(BSS$B$N(B4$BK\$@$H;W$&$N$G$9$,!"(BRDY$B$H$O(B
> $B!!$I$N$h$&$J>l9g$K;HMQ$9$k$N$G$7$g$&$+(B
Armadillo(i.MX25)$B$r(BSPI$B%^%9%?!<$K$7$?$H$-$K!"%P!<%9%HE>Aw$9$k>l9g$K;HMQ$7$^$9!#(B
SPI_RDY$B?.9f$r;HMQ$7$?$H$-$N5sF0$O!"(Bi.MX25 Multimedia Applications Processor
Reference Manual[1]$B$N(B 18.4.3.1.1 Master Mode with SPI_RDY $B$K5-=R$,$"$j$^$9!#(B

> $B-#(BSPI$B$email@hidden$r(Bmake menuconfig$B$G9T$C$F$*$j$^$9$,!"%=%U%H%&%'%"%^%K%e%"%k$N(B
> $B!!(B8.15.SPI$B$K$"$k(B/linux-2.6.26-at/arch/arm/mach-mc25/armadillo400.c $B$N(B
> $B!!(Bstatic struct spi_board_info armadillo400_spi3_board_info[] __initdata = { };
> $B!!$KF~$l$k(Bstruct spi_board_info$B$NFbMF$,J,$+$j$^$;$s$N$G!"$465<x$$$?$@$1$J$$(B
> $B!!$G$7$g$+(B

$B2<5-$N%a!<%k$N$d$j$H$j$,;29M$K$J$k$H;W$$$^$9!#(B
http://lists.atmark-techno.com/pipermail/armadillo/2010-August/005590.html

modalias: $B%G%P%$%9%I%i%$%P$NL>A0(B
max_speed_hz: $BF0:n<~GH?t(B
bus_num: $B;HMQ$9$k%P%9$NHV9f(B(SPI3$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V(BArmadillo $B<BA)3+H/%,%$%I!W(B
$B$email@hidden@$,$"$j$^$9(B[4]$B$N$G!"$=$A$i$b;2>H$7$F$_$F$/$@$5$$!#(B

$B0J>e!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B

[1] http://cache.freescale.com/files/dsp/doc/ref_manual/IMX25RM.pdf?fpsp=1
[2] linux-2.6.26-at/drivers/spi/at25.c
[3] linux-2.6.26-at/drivers/mtd/devices/m25p80.c
[4] http://manual.atmark-techno.com/armadillo-guide/armadillo-guide-2_ja-1.0.0/ch06.html#sec_using_serial_port
    PDF$BHG(B http://armadillo.atmark-techno.com/files/downloads/armadillo-guide/document/armadillo-guide-2_ja-1.0.0.pdf

isoma$B!J0k4V!!>OM:!K(B $B$5$s$O=q$-$^$7$?(B:
> Armadillo-420$B$N(BSPI$BF0:n!"(BUART$B$N;HMQJ}K!<ALd;v9`$r2<5-$K<($7$^$9!#(B
> 
> $B-!(BSPI$B$N%^%9%?!<F0:n;~$NF14|%/%m%C%/!J(BCSPI3_SCK$B!K$N<~GH?t$r65$($F$/$@$5$$!#(B
> 
> $B-"I8=`E*$J(BSPI$B$N?.9f$O(BMOSI$B!"(BMISO$B!"(BSCK$B!"(BSS$B$N(B4$BK\$@$H;W$&$N$G$9$,!"(BRDY$B$H$O(B
> $B!!$I$N$h$&$J>l9g$K;HMQ$9$k$N$G$7$g$&$+(B
> 
> $B-#(BSPI$B$email@hidden$r(Bmake menuconfig$B$G9T$C$F$*$j$^$9$,!"%=%U%H%&%'%"%^%K%e%"%k$N(B
> $B!!(B8.15.SPI$B$K$"$k(B/linux-2.6.26-at/arch/arm/mach-mc25/armadillo400.c $B$N(B
> $B!!(Bstatic struct spi_board_info armadillo400_spi3_board_info[] __initdata = { };
> $B!!$KF~$l$k(Bstruct spi_board_info$B$NFbMF$,J,$+$j$^$;$s$N$G!"$465<x$$$?$@$1$J$$(B
> $B!!$G$7$g$+(B
> 
> $B!!(Bmake menuconfig$B$email@hidden$7$F$$$kFbMF$O2<5-$NDL$j$G$9!#(B
> $B!!(B// make menuconfig$B$NFbMF(B
> $B!!!|(BDevice option
> $B!!(B-*- Enable SPI3 module 
> 
> $B!!!|(BArmadillo-400 Board options
> $B!!(B* Enable SPI3_at CON9
> $B!!(B* Enable SPI3_SS2 at CON9_15
> 
> $B!!!|(BDevice Drivers
> $B!!(B* SPI support
> $B!!(B-*- Bitbanging SPI master
> $B!!(B* MXC CSPI controller as SPI Master
> $B!!(B* User mode SPI device driver support
> 
> $B-$(BArmadillo$B$r%^%9%?!<!"@\B35!4o$r%9%l!<%V$H$7$?>l9g!"(BSPI$BDL?.$r9T$&$K$O!"(B
> $B!!$I$N$h$&$K@)8f$7$?$i$h$$$N$G$7$g$&$+!#(B
> $B!!(B/dev$BG[2<$K(BSPI$B$N%G%P%$%9%U%!%$%k$,=PMh$F!"$=$3$K%G!<%?$r=q$-9~$`!"$H(B
> $B!!$$$C$?J}K!$J$N$G$7$g$&$+!#(B
> 
> $B-%(BUART3$B$r;H$C$?DL?.$O!"%G%P%$%9%U%!%$%k(B/dev/ttymxc2$B$rFI$_=q$-$9$k!"$H$$$&(B
> $B!!J}K!$G$h$$$N$G$7$g$&$+!#(B
> $B!!(BArmadillo$B$H(BPC$B$H$r@\B3$7!"(BArmadillo$B>e$G(B/dev/ttmxc2$B$r(Bcat($B<u?.(B)$B!"(Becho($BAw?.(B)
> $B!!$GDL?.$,=PMh$F$$$k$3$H$r3NG'$7$F$*$j$^$9$,!"$3$l$email@hidden,$N<j=g$J$N$+$r3NG'$7(B
> $B!!$?$$$?$a!"$4<ALd$5$;$F$$$?$@$-$^$9!#(B
> 
> $B0J>e59$7$/$*4j$$$7$^$9(B
> 
> 
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> armadillo mailing list
> email@hidden
> http://lists.atmark-techno.com/cgi-bin/mailman/listinfo/armadillo


-- 
Koyo Takenoshita




armadillo メーリングリストの案内