|
|
@ -220,6 +220,24 @@ void stm32mp_print_cpuinfo(void) |
|
|
|
case STM32MP151A_PART_NB: |
|
|
|
cpu_s = "151A"; |
|
|
|
break; |
|
|
|
case STM32MP157F_PART_NB: |
|
|
|
cpu_s = "157F"; |
|
|
|
break; |
|
|
|
case STM32MP157D_PART_NB: |
|
|
|
cpu_s = "157D"; |
|
|
|
break; |
|
|
|
case STM32MP153F_PART_NB: |
|
|
|
cpu_s = "153F"; |
|
|
|
break; |
|
|
|
case STM32MP153D_PART_NB: |
|
|
|
cpu_s = "153D"; |
|
|
|
break; |
|
|
|
case STM32MP151F_PART_NB: |
|
|
|
cpu_s = "151F"; |
|
|
|
break; |
|
|
|
case STM32MP151D_PART_NB: |
|
|
|
cpu_s = "151D"; |
|
|
|
break; |
|
|
|
default: |
|
|
|
cpu_s = "????"; |
|
|
|
break; |
|
|
@ -323,7 +341,6 @@ void stm32mp_print_boardinfo(void) |
|
|
|
bool stm32mp_is_single_core(void) |
|
|
|
{ |
|
|
|
uint32_t part_number; |
|
|
|
bool ret = false; |
|
|
|
|
|
|
|
if (get_part_number(&part_number) < 0) { |
|
|
|
ERROR("Invalid part number, assume single core chip"); |
|
|
@ -333,14 +350,13 @@ bool stm32mp_is_single_core(void) |
|
|
|
switch (part_number) { |
|
|
|
case STM32MP151A_PART_NB: |
|
|
|
case STM32MP151C_PART_NB: |
|
|
|
ret = true; |
|
|
|
break; |
|
|
|
case STM32MP151D_PART_NB: |
|
|
|
case STM32MP151F_PART_NB: |
|
|
|
return true; |
|
|
|
|
|
|
|
default: |
|
|
|
break; |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
return ret; |
|
|
|
} |
|
|
|
|
|
|
|
/* Return true when device is in closed state */ |
|
|
|