ldube opened a new pull request, #19505:
URL: https://github.com/apache/nuttx/pull/19505
## Summary
Add EHCI and OHCI USB host drivers for the Ingenic JZ4780 SoC, derived from
the existing sama5 implementation.
Additionally, introduce the display controller driver using code ported from
FreeBSD under its original license terms. Note that this driver lacks EDID
support and is currently hardcoded to 1360x768.
Update the linker script memory layout to utilize the full 256 MiB RAM,
excluding the 8 MiB reserved at the top of memory for the framebuffer.
## Testing
Used MIPS CI20 board.
Connected mouse directly to the CI20 port to force OHCI use.
Used tc command to verify that mouse works.
nsh> tc
tc_main: nsamples: 0
tc_main: Opening /dev/mouse0
Sample :
buttons : 00
x : 677
y : 381
Sample :
buttons : 00
x : 659
y : 373
Repeated the same test with mouse connected through a hub to test EHCI
controller.
Keyboard test using a standalone numeric keypad
nsh> hidkbd
Opening device /dev/kbda
Device /dev/kbda opened
11526923359*586
752563456
Tested usb stick using
NuttShell (NSH) NuttX-13.0.0
nsh> mount -t vfat /dev/sda /mnt/
nsh> ls -l /mnt
/mnt:
-rw-rw-rw- 6028459 m.ogg
-rw-rw-rw- 25 test.txt
-rw-rw-rw- 25 a.txt
-rw-rw-rw- 25 b.txt
nsh>
nsh> cat /mnt/test.txt
This is a text test file
nsh>
Framebuffer test:
nsh> fb
VideoInfo:
fmt: 11
xres: 1360
yres: 768
nplanes: 1
PlaneInfo (plane 0):
fbmem: 0xaf800000
fblen: 2088960
stride: 2720
display: 0
bpp: 16
Mapped FB: 0xaf800000
0: ( 0, 0) (1360,768)
1: (123, 69) (1114,630)
2: (246,138) (868,492)
3: (369,207) (622,354)
4: (492,276) (376,216)
5: (615,345) (130, 78)
Test finished
nsh>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]