SSブログ

Beagle Bone Blackのシリアルデバッグポート(UART0)まわり (u-bootの実装調べる)


■BBBのシリアルデバッグポート
BBB_SRM.pdfを読むと、AM3359A のUART0につながっている。

---
5.6 Serial Debug Port
Serial debug is provided via UART0 on the processor via a single 1x6 pin header. In order to use the interface a USB to TTL adapter will be required. The header is compatible with the one provided by FTDI and can be purchased for about $12 to $20 from various sources. Signals supported are TX and RX. None of the handshake signals are supported.
—-

■AM3359AのUART0のアドレス
アドレスは、0x44e0_9000

これはu-bootのソースでも指定されていた。

am335x_evm.h :
/* NS16550 Configuration */
#define CONFIG_SYS_NS16550_COM1 0x44e09000 /* Base EVM has UART0 */
#define CONFIG_SYS_NS16550_COM2 0x48022000 /* UART1 */
#define CONFIG_SYS_NS16550_COM3 0x48024000 /* UART2 */
#define CONFIG_SYS_NS16550_COM4 0x481a6000 /* UART3 */
#define CONFIG_SYS_NS16550_COM5 0x481a8000 /* UART4 */
#define CONFIG_SYS_NS16550_COM6 0x481aa000 /* UART5 */

■U-Bootのシリアルドライバの実装
BBB向けのu-bootはtargetは am335x_evm でビルドするが、これはどうやら、
ns16550 関連のドライバで実装されているようだ。

それにしても、U-Bootって結構でかいな。ドライバ自体はそれほどでもないが、
実装が階層化され過ぎてて読みにくい。いろんなボードに対応してるからしょうがないのだろうけど。



nice!(0)  コメント(0)  トラックバック(0) 

nice! 0

コメント 0

コメントを書く

お名前:
URL:
コメント:
画像認証:
下の画像に表示されている文字を入力してください。

トラックバック 0

Beagle Bone Back でμS..BBB(am335x) のROM exc.. ブログトップ

この広告は前回の更新から一定期間経過したブログに表示されています。更新すると自動で解除されます。