Skip to content

Commit

Permalink
fixup! fixup! feat(core): add support for STM32U5A9J-DK board
Browse files Browse the repository at this point in the history
  • Loading branch information
TychoVrahe committed Nov 13, 2023
1 parent 0f7e397 commit 7c6a6b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions core/embed/firmware/memory_DISC2.ld
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,16 @@ SECTIONS {
} >SRAM2 AT>FLASH

.fb1 : ALIGN(4) {
__fb_start = .;
*(.fb1*);
*(.gfxmmu_table*);
*(.framebuffer_select*);
. = ALIGN(4);
} >SRAM3

.fb2 : ALIGN(4) {
*(.fb2*);
__fb_end = .;
. = ALIGN(4);
} >SRAM5
}
4 changes: 2 additions & 2 deletions core/embed/trezorhal/stm32u5/displays/dsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ ALIGN_32BYTES(uint32_t PhysFrameBuffer0[184320]);
__attribute__((section(".fb2")))
ALIGN_32BYTES(uint32_t PhysFrameBuffer1[184320]);

__attribute__((section(".fb1"))) uint32_t gfxmmu_lut[2 * GFXMMU_LUT_SIZE];
__attribute__((section(".fb1"))) uint32_t act_frame_buffer = 0;
__attribute__((section(".gfxmmu_table"))) uint32_t gfxmmu_lut[2 * GFXMMU_LUT_SIZE];
__attribute__((section(".framebuffer_select"))) uint32_t act_frame_buffer = 0;

#if (USE_HAL_GFXMMU_REGISTER_CALLBACKS == 1)
static uint32_t LcdGfxmmu_IsMspCbValid[LCD_INSTANCES_NBR] = {0};
Expand Down

0 comments on commit 7c6a6b7

Please sign in to comment.