|
@@ -68,12 +68,14 @@ static void board_id_init(void)
|
|
|
|
|
|
|
|
|
gw_info.hw_submodel = id;
|
|
|
- if (id > 1)
|
|
|
+ if (id > 2)
|
|
|
early_fatal(2);
|
|
|
}
|
|
|
|
|
|
static void clock_init(void)
|
|
|
{
|
|
|
+ unsigned int hse = (gw_info.hw_submodel == F7SM_ultra730) ? 16 : 8;
|
|
|
+
|
|
|
|
|
|
* Over-drive mode (see note in RM0431, p102). We still need access to RAM
|
|
|
* and to the power interface itself. */
|
|
@@ -87,8 +89,8 @@ static void clock_init(void)
|
|
|
cpu_relax();
|
|
|
|
|
|
|
|
|
- rcc->pllcfgr = (RCC_PLLCFGR_PLLSRC_HSE |
|
|
|
- RCC_PLLCFGR_PLLM(4) |
|
|
|
+ rcc->pllcfgr = (RCC_PLLCFGR_PLLSRC_HSE |
|
|
|
+ RCC_PLLCFGR_PLLM(hse/2) |
|
|
|
RCC_PLLCFGR_PLLN(216) |
|
|
|
RCC_PLLCFGR_PLLP(0) |
|
|
|
RCC_PLLCFGR_PLLQ(9));
|