Adding RSB

This commit is contained in:
Lee Lup Yuen 2022-12-20 18:13:13 +08:00
parent b98829a7a1
commit 264521ae97
5 changed files with 10 additions and 1 deletions

View file

@ -6,6 +6,8 @@ void modreg32(
unsigned long addr // Address to modify
);
uint8_t getreg8(unsigned long addr);
uint32_t getreg32(unsigned long addr);
void putreg32(uint32_t data, unsigned long addr);

View file

@ -1,3 +1,5 @@
#define _err printf
#define _info printf
#define gerr printf
#define ginfo printf
#define ginfodumpbuffer(msg, buf, len) dump_buffer(buf, len)

View file

@ -15,6 +15,7 @@ gcc \
../../nuttx/arch/arm64/src/a64/a64_de.c \
../../nuttx/arch/arm64/src/a64/a64_mipi_dphy.c \
../../nuttx/arch/arm64/src/a64/a64_mipi_dsi.c \
../../nuttx/arch/arm64/src/a64/a64_rsb.c \
../../nuttx/arch/arm64/src/a64/a64_tcon0.c \
../../nuttx/arch/arm64/src/a64/mipi_dsi.c

View file

@ -173,6 +173,11 @@ const unsigned long log_start[PREV_ADDR_LEN] = {
};
static bool log_enabled = true;
uint8_t getreg8(unsigned long addr)
{
return 0;
}
uint32_t getreg32(unsigned long addr)
{
if (addr == PLL_DE_CTRL_REG)

View file

@ -107,7 +107,6 @@ int render_graphics(void)
DEBUGASSERT(ret == OK);
#ifndef __NuttX__
#warning Local Testing Only
// For Local Testing: Only 32-bit addresses allowed
planeInfo.fbmem = (void *)0x12345678;
overlayInfo[0].fbmem = (void *)0x23456789;