Add option to add board config to UIC config

This commit is contained in:
GaryOderNichts 2024-06-19 00:35:03 +02:00
parent 4c2d3eef36
commit 6e1bd3b468

14
LVC_.s
View File

@ -4,6 +4,7 @@
; Patches configuration
ADD_UIC_CONFIG_REGION equ 1
ADD_UIC_CONFIG_BOARD_CONFIG equ 1
.if ADD_UIC_CONFIG_REGION
.notice "Adding region to UIC config"
@ -18,4 +19,17 @@ ADD_UIC_CONFIG_REGION equ 1
.d32 0x103 ; eeprom offset
.endif
.if ADD_UIC_CONFIG_BOARD_CONFIG
.notice "Adding board config to UIC config"
; Patch jumptable to make ID 4 valid
.org 0x0003c9c7
.d8 0x30
; Patch config table at offset 4 to insert board config
.org 0x000b28e8
.d32 0x3 ; size
.d32 0x106 ; eeprom offset
.endif
.close