mirror of
https://github.com/lupyuen/pinephone-nuttx.git
synced 2025-01-12 20:58:34 +08:00
Adding RSB
This commit is contained in:
parent
b98829a7a1
commit
264521ae97
5 changed files with 10 additions and 1 deletions
|
@ -6,6 +6,8 @@ void modreg32(
|
||||||
unsigned long addr // Address to modify
|
unsigned long addr // Address to modify
|
||||||
);
|
);
|
||||||
|
|
||||||
|
uint8_t getreg8(unsigned long addr);
|
||||||
|
|
||||||
uint32_t getreg32(unsigned long addr);
|
uint32_t getreg32(unsigned long addr);
|
||||||
|
|
||||||
void putreg32(uint32_t data, unsigned long addr);
|
void putreg32(uint32_t data, unsigned long addr);
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#define _err printf
|
||||||
|
#define _info printf
|
||||||
#define gerr printf
|
#define gerr printf
|
||||||
#define ginfo printf
|
#define ginfo printf
|
||||||
#define ginfodumpbuffer(msg, buf, len) dump_buffer(buf, len)
|
#define ginfodumpbuffer(msg, buf, len) dump_buffer(buf, len)
|
||||||
|
|
|
@ -15,6 +15,7 @@ gcc \
|
||||||
../../nuttx/arch/arm64/src/a64/a64_de.c \
|
../../nuttx/arch/arm64/src/a64/a64_de.c \
|
||||||
../../nuttx/arch/arm64/src/a64/a64_mipi_dphy.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_mipi_dsi.c \
|
||||||
|
../../nuttx/arch/arm64/src/a64/a64_rsb.c \
|
||||||
../../nuttx/arch/arm64/src/a64/a64_tcon0.c \
|
../../nuttx/arch/arm64/src/a64/a64_tcon0.c \
|
||||||
../../nuttx/arch/arm64/src/a64/mipi_dsi.c
|
../../nuttx/arch/arm64/src/a64/mipi_dsi.c
|
||||||
|
|
||||||
|
|
|
@ -173,6 +173,11 @@ const unsigned long log_start[PREV_ADDR_LEN] = {
|
||||||
};
|
};
|
||||||
static bool log_enabled = true;
|
static bool log_enabled = true;
|
||||||
|
|
||||||
|
uint8_t getreg8(unsigned long addr)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
uint32_t getreg32(unsigned long addr)
|
uint32_t getreg32(unsigned long addr)
|
||||||
{
|
{
|
||||||
if (addr == PLL_DE_CTRL_REG)
|
if (addr == PLL_DE_CTRL_REG)
|
||||||
|
|
|
@ -107,7 +107,6 @@ int render_graphics(void)
|
||||||
DEBUGASSERT(ret == OK);
|
DEBUGASSERT(ret == OK);
|
||||||
|
|
||||||
#ifndef __NuttX__
|
#ifndef __NuttX__
|
||||||
#warning Local Testing Only
|
|
||||||
// For Local Testing: Only 32-bit addresses allowed
|
// For Local Testing: Only 32-bit addresses allowed
|
||||||
planeInfo.fbmem = (void *)0x12345678;
|
planeInfo.fbmem = (void *)0x12345678;
|
||||||
overlayInfo[0].fbmem = (void *)0x23456789;
|
overlayInfo[0].fbmem = (void *)0x23456789;
|
||||||
|
|
Loading…
Reference in a new issue