您好,
DP159 + Xilinx DP IP
步骤:
初始化DP159
2.初始化DP IP
3.TP1中断处理程序
4.READ_CSR (0x00) 是0x63或0xe3,PLL解锁,DP IP始终发送TP1 中断。使用示波器测量AUX_SRCp/n引脚的频率,频率有时为300MHz,有时约为 50MHz。
我的问题在哪里?我不知道DP159在什么地方工作,我接下来应该怎么做?
以下是我的初始化Dp159寄存器配置
谢谢!!!
//dp159配置
//初始
/i2capp /dev/i2c-0 w 0x5e 0xFF 0x00
/i2capp /dev/i2c-0 w 0x5e 0x09 0x36
./i2capp /dev/i2c-0 w 0x5e 0x0A 0x7B
/i2capp /dev/i2c-0 w 0x5e 0x0D 0x80
/i2capp /dev/i2c-0 w 0x5e 0x0C 0x6D
/i2capp /dev/i2c-0 w 0x5e 0x10 0x00
/i2capp /dev/i2c-0 w 0x5e 0x16 0xF1
/i2capp /dev/i2c-0 w 0x5e 0xFF 0x01
/i2capp /dev/i2c-0 w 0x5e 0x00 0x02
/i2capp /dev/i2c-0 w 0x5e 0x04 0x80
/i2capp /dev/i2c-0 w 0x5e 0x05 0x00
/i2capp /dev/i2c-0 w 0x5e 0x08 0x00
/i2capp /dev/i2c-0 w 0x5e 0x0D 0x02
/i2capp /dev/i2c-0 w 0x5e 0x0E 0x03 //readback 0x01
/i2capp /dev/i2c-0 w 0x5e 0x01 0x01
/i2capp /dev/i2c-0 w 0x5e 0x02 0x3F // cp_current
/i2capp /dev/i2c-0 w 0x5e 0x0B 0x33
/i2capp /dev/i2c-0 w 0x5e 0xA1 0x02
/i2capp /dev/i2c-0 w 0x5e 0xA4 0x02
/i2capp /dev/i2c-0 w 0x5e 0x10 0xF0
/i2capp /dev/i2c-0 w 0x5e 0x11 0x30
/i2capp /dev/i2c-0 w 0x5e 0x14 0x00
/i2capp /dev/i2c-0 w 0x5e 0x12 0x03
/i2capp /dev/i2c-0 w 0x5e 0x13 0xFF
/i2capp /dev/i2c-0 w 0x5e 0x13 0x00
/i2capp /dev/i2c-0 w 0x5e 0x30 0xE0 //禁用除lane 0之外的接收器
/i2capp /dev/i2c-0 w 0x5e 0x32 0x00
/i2capp /dev/i2c-0 w 0x5e 0x31 0x00
/i2capp /dev/i2c-0 w 0x5e 0x4D 0x08
/i2capp /dev/i2c-0 w 0x5e 0x4C 0x01 //readback 0x3
/i2capp /dev/i2c-0 w 0x5e 0x34 0x01
/i2capp /dev/i2c-0 w 0x5e 0x32 0xF0
/i2capp /dev/i2c-0 w 0x5e 0x32 0x00
/i2capp /dev/i2c-0 w 0x5e 0x33 0xF0
/i2capp /dev/i2c-0 w 0x5e 0xFF 0x00
./i2capp /dev/i2c-0 w 0x5e 0x0A 0x3B
/i2capp /dev/i2c-0 w 0x5e 0xFF 0x01
// TP1中断处理程序
/i2capp /dev/i2c-0 w 0x5e 0x00 0x02
/i2capp /dev/i2c-0 w 0x5e 0x01 0x01
/i2capp /dev/i2c-0 w 0x5e 0x0B 0x33
/i2capp /dev/i2c-0 w 0x5e 0x02 0x3F
./i2capp /dev/i2c-0 w 0x5e 0x30 0x0F //1lane 0xE1;2LANE = 0xC3;4lane = 0x0F
/i2capp /dev/i2c-0 w 0x5e 0x00 0x03
/i2capp /dev/i2c-0 w 0x5e 0x4C 0x01
/i2capp /dev/i2c-0 w 0x5e 0x4D 0x18 // hBR= 0x18 hbr2 = 0x08 RBR= 0x28
./i2capp /dev/i2c-0 w 0x5e 0x10 0x0F //1lane 0xE1;2LANE = 0xC3;4lane = 0x0F
/i2capp /dev/i2c-0 w 0x5e 0x00 0x23
./i2capp /dev/i2c-0 r 0x5e 0x00 //读取时钟恢复
/i2capp /dev/i2c-0 w 0x5e 0x02 0x27 //HBR= 0x27 hbr2=0x5F RBR 0x1f
/i2capp /dev/i2c-0 w 0x5e 0x0B 0x30
/i2capp /dev/i2c-0 w 0x5e 0x01 0x02
/i2capp /dev/i2c-0 w 0x5e 0xFF 0x00
./i2capp /dev/i2c-0 w 0x5e 0x16 0xF1 // 1lane=0x11;2lane=0x31;4lane=0xF1
/i2capp /dev/i2c-0 w 0x5e 0x10 0x00
/i2capp /dev/i2c-0 w 0x5e 0xFF 0x01
//TP2中断处理程序
/i2capp /dev/i2c-0 w 0x5e 0x4C 0x03
/i2capp /dev/i2c-0 w 0x5e 0xFF 0x00
/i2capp /dev/i2c-0 w 0x5e 0x15 0x18
/i2capp /dev/i2c-0 r 0x5e 0x18 //读取内核Bert计数器[7:0]
/i2capp /dev/i2c-0 r 0x5e 0x19
/i2capp /dev/i2c-0 w 0x5e 0xFF 0x01
//拔下
/i2capp /dev/i2c-0 w 0x5e 0x00 0x02
/i2capp /dev/i2c-0 w 0x5e 0x34 0x01
/i2capp /dev/i2c-0 w 0x5e 0x02 0x3F
/i2capp /dev/i2c-0 w 0x5e 0x01 0x01
/i2capp /dev/i2c-0 w 0x5e 0x0B 0x33
/i2capp /dev/i2c-0 w 0x5e 0x4D 0x08
/i2capp /dev/i2c-0 w 0x5e 0x4C 0x01
/i2capp /dev/i2c-0 w 0x5e 0x33 0xF0
/i2capp /dev/i2c-0 w 0x5e 0x10 0xF0
/i2capp /dev/i2c-0 w 0x5e 0x30 0xE0