完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
kernel/arch/arm/mach-rockchip/rk_fiq_debugger.c
搜索:static int debug_port_init(struct platform_device *pdev) 将该函数内容替换为以下即可: int dll = 0, dlm = 0; struct rk_fiq_debugger *t; t = container_of(dev_get_platdata(&pdev-》dev), typeof(*t), pdata); if (rk_fiq_read(t, UART_LSR) & UART_LSR_DR) (void)rk_fiq_read(t, UART_RX); //switch (t-》baudrate) { //case 1500000: //dll = 0x1; //break; //case 115200: //default: dll = 0xd; //break; //} rk_fiq_write(t, 0x83, UART_LCR); /* set baud rate */ rk_fiq_write(t, dll, UART_DLL); rk_fiq_write(t, dlm, UART_DLM); rk_fiq_write(t, 0x03, UART_LCR); /* enable rx and lsr interrupt */ rk_fiq_write(t, UART_IER_RLSI | UART_IER_RDI, UART_IER); /* interrupt on every character when receive,but we can enable fifo for TX I found that if we enable the RX fifo, some problem may vanish such as when you continuously input characters in the command line the uart irq may be disable because of the uart irq is served when CPU is at IRQ exception,but it is found unregistered, so it is disable. hhb@rock-chips.com */ rk_fiq_write(t, 0xc1, UART_FCR); return 0; rk3288.dtsi里fiq_debugger改成以下: fiq_debugger: fiq-debugger { compatible = “rockchip,fiq-debugger”; rockchip,serial-id = 《3》; rockchip,signal-irq = 《182》; //无论是哪一个口,都不用修改该数值 rockchip,wake-irq = 《0》; rockchip,irq-mode-enable = 《1》; /* If enable uart uses irq instead of fiq */ rockchip,baudrate = 《1500000》; / *Only 115200 and 1500000 */ pinctrl-names = “default”; pinctrl-0 = 《&uart1_xfer》; }; rk3288-popmetal.dts里需要添加: &uart_gps{ status = “okay”; dma-names = “!tx”, “!rx”; pinctrl-0 = 《&uart3_xfer &uart3_cts》; }; |
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
1567 浏览 1 评论
synopsys 的design ware:DW_fpv_div,浮点数除法器,默认32位下,想提升覆盖率(TMAX),如果用功能case去提升覆盖率呢?
1790 浏览 1 评论
RK3588 GStreamer调试四路鱼眼摄像头四宫格显示报错
4465 浏览 1 评论
【飞凌嵌入式OK3576-C开发板体验】RKNN神经网络-YOLO图像识别
254 浏览 0 评论
【飞凌嵌入式OK3576-C开发板体验】SSH远程登录网络配置及CAN通讯
1336 浏览 0 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-10 16:06 , Processed in 0.337942 second(s), Total 41, Slave 34 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号