test rk3568 uart

This commit is contained in:
TXuian
2024-06-03 15:02:22 +08:00
parent d05754a98e
commit bac3958eae
8 changed files with 355 additions and 79 deletions
@@ -34,10 +34,10 @@ Modification:
#define ARCH_BIT 64
/* A72 physical memory layout */
#define PHY_MEM_BASE (0x0000000040000000ULL)
#define PHY_USER_FREEMEM_BASE (0x0000000046000000ULL)
#define PHY_USER_FREEMEM_TOP (0x0000000048000000ULL)
#define PHY_MEM_STOP (0x0000000048000000ULL)
#define PHY_MEM_BASE (0x0000000000A00000ULL)
#define PHY_USER_FREEMEM_BASE (0x0000000001A00000ULL)
#define PHY_USER_FREEMEM_TOP (0x0000000001A00000ULL)
#define PHY_MEM_STOP (0x0000000002000000ULL)
/* PTE-PAGE_SIZE */
#define LEVEL4_PTE_SHIFT 12
@@ -61,9 +61,9 @@ Modification:
#define MAX_NR_FREE_PAGES ((PHY_MEM_STOP - PHY_MEM_BASE) >> LEVEL4_PTE_SHIFT)
/* Deivce memory layout */
#define DEV_PHYMEM_BASE (0x0000000000000000ULL)
#define DEV_PHYMEM_BASE (0x00000000C0000000ULL)
#define DEV_VRTMEM_BASE (0x0000004000000000ULL)
#define DEV_MEM_SZ (0x0000000010000000ULL)
#define DEV_MEM_SZ (0x0000000040000000ULL)
/* User memory layout */
#define USER_STACK_SIZE PAGE_SIZE