mirror of
https://github.com/GaryOderNichts/drc-fw-patches.git
synced 2024-11-21 17:59:18 +01:00
Add option to add board config to UIC config
This commit is contained in:
parent
4c2d3eef36
commit
6e1bd3b468
14
LVC_.s
14
LVC_.s
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
; Patches configuration
|
; Patches configuration
|
||||||
ADD_UIC_CONFIG_REGION equ 1
|
ADD_UIC_CONFIG_REGION equ 1
|
||||||
|
ADD_UIC_CONFIG_BOARD_CONFIG equ 1
|
||||||
|
|
||||||
.if ADD_UIC_CONFIG_REGION
|
.if ADD_UIC_CONFIG_REGION
|
||||||
.notice "Adding region to UIC config"
|
.notice "Adding region to UIC config"
|
||||||
@ -18,4 +19,17 @@ ADD_UIC_CONFIG_REGION equ 1
|
|||||||
.d32 0x103 ; eeprom offset
|
.d32 0x103 ; eeprom offset
|
||||||
.endif
|
.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
|
.close
|
||||||
|
Loading…
Reference in New Issue
Block a user