Update doc

This commit is contained in:
Lee Lup Yuen 2023-12-05 09:20:08 +08:00
parent 15a9e29ad7
commit c1b8727c4d

View file

@ -3652,6 +3652,82 @@ test_interrupt_priority: before1=0, before2=0, after1=1, after2=0
jh7110_mm_init: Enable MMU
```
# Compare Ox64 BL808 UART Registers
TODO: Let's compare the [UART Registers from NuttX](https://gist.github.com/lupyuen/5d16f536133c0c3b5a30a50950a1ee75) vs [U-Boot Bootloader](https://gist.github.com/lupyuen/e0d13fb888a490fbf3dfcb01bbdd86fc)
UART Registers from [NuttX UART Driver](https://gist.github.com/lupyuen/5d16f536133c0c3b5a30a50950a1ee75)...
```bash
// From UART Registers from NuttX
bl602_receive: rxdata=-1
bl602_receive: rxdata=0x0
UART Registers (0x30002000):
0000 05 17 00 00 | 01 07 00 00 | 13 00 13 00 | 00 00 00 00 ................
0010 70 00 9f 00 | 6f 00 00 00 | 0f 00 00 00 | 00 00 00 00 p...o...........
0020 [94 00 00 00]|[f5 0f 00 00]| 00 00 00 00 | ff 0f 00 00 ................
0030 01 00 00 00 | 00 00 00 00 | 00 00 00 00 | 00 00 00 00 ................
0040 00 00 00 00 | 00 00 00 00 | 03 00 00 00 | 00 00 00 00 ................
0050 [ff ff 1c 00]| 02 00 00 00 | 00 00 00 00 | 00 00 00 00 ................
0060 00 00 00 00 | 00 00 00 00 | 00 00 00 00 | 00 00 00 00 ...............
0070 00 00 00 00 | 00 00 00 00 | 00 00 00 00 | 00 00 00 00 ................
0080 [80 00 00 00]|[18 00 07 07]| 0a 00 00 00 |[00 00 00 00] ................
0090 00 00 00 00 | 00 00 00 00 | 00 00 00 00 | 00 00 00 00 ................
00a0 00 00 00 00 | 00 00 00 00 | 00 00 00 00 | 00 00 00 00 ................
00b0 00 00 00 00 | 00 00 00 00 | 00 00 00 00 | 00 00 00 00 ................
00c0 00 00 00 00 | 00 00 00 00 | 00 00 00 00 | 00 00 00 00 ................
00d0 00 00 00 00 | 00 00 00 00 | | ........
```
UART Registers from [U-Boot Bootloader](https://gist.github.com/lupyuen/e0d13fb888a490fbf3dfcb01bbdd86fc)...
```bash
## UART Registers from U-Boot
=> md 0x30002000 0x36
30002000: 00001705 00000701 00130013 00000000 ................
30002010: 009f0070 0000006f 0000000f 00000000 p...o..........
30002020:[00000012] [00000fff] 00000000 00000fff ................
30002030: 00000001 00000000 00000000 00000000 ................
30002040: 00000000 00000000 00000003 00000000 ................
30002050:[0026ffff] 00000002 00000000 00000000 ..&.............
30002060: 00000000 00000000 00000000 00000000 ................
30002070: 00000000 00000000 00000000 00000000 ................
30002080: [00000000] [07070000] 0000000a [00000078] ............x...
30002090: 00000000 00000000 00000000 00000000 ................
300020a0: 00000000 00000000 00000000 00000000 ................
300020b0: 00000000 00000000 00000000 00000000 ................
300020c0: 00000000 00000000 00000000 00000000 ................
300020d0: 00000000 00000000 ........
```
Here are the differences...
```text
20: uart_int_sts
00000094
00000012
24: uart_int_mask
00000ff5
00000fff
50: urx_bcr_int_cfg
001cffff
0026ffff
80: uart_fifo_config_0
00000080
00000000
84: uart_fifo_config_1
07070018
07070000
8c: uart_fifo_rdata
00000000
00000078
```
# Documentation for Ox64 BL808
![Pine64 Ox64 64-bit RISC-V SBC (Sorry for my substandard soldering)](https://lupyuen.github.io/images/ox64-solder.jpg)