IMX233: make use of register define for bootdata

(the #define is already there, just unused)

Change-Id: I96d5cfe3ffc87a918eb6cd3e1eca8d9f4c91e13f
This commit is contained in:
Sebastian Leonhardt 2025-05-10 17:30:06 +02:00
parent 1ab63c3d92
commit 58ad4ecf54

View file

@ -182,7 +182,7 @@
unsigned imx233_dualboot_get_field(enum imx233_dualboot_field_t field) unsigned imx233_dualboot_get_field(enum imx233_dualboot_field_t field)
{ {
unsigned val = HW_RTC_PERSISTENT5; unsigned val = REG_DUALBOOT;
/* if signature doesn't match, assume everything is 0 */ /* if signature doesn't match, assume everything is 0 */
if((val & MAGIC_MASK) != MAGIC_VALUE) if((val & MAGIC_MASK) != MAGIC_VALUE)
return 0; return 0;
@ -199,7 +199,7 @@ unsigned imx233_dualboot_get_field(enum imx233_dualboot_field_t field)
void imx233_dualboot_set_field(enum imx233_dualboot_field_t field, unsigned fval) void imx233_dualboot_set_field(enum imx233_dualboot_field_t field, unsigned fval)
{ {
unsigned val = HW_RTC_PERSISTENT5; unsigned val = REG_DUALBOOT;
/* if signature doesn't match, create an empty register */ /* if signature doesn't match, create an empty register */
if((val & MAGIC_MASK) != MAGIC_VALUE) if((val & MAGIC_MASK) != MAGIC_VALUE)
val = MAGIC_VALUE; /* all field are 0 */ val = MAGIC_VALUE; /* all field are 0 */
@ -214,7 +214,7 @@ void imx233_dualboot_set_field(enum imx233_dualboot_field_t field, unsigned fval
match(BOOT) match(BOOT)
default: break; default: break;
} }
HW_RTC_PERSISTENT5 = val; REG_DUALBOOT = val;
#undef match #undef match
} }