Skip to content

Commit 963cdad

Browse files
dgarskedanielinux
authored andcommitted
Peer review fixes
1 parent 6547a74 commit 963cdad

File tree

23 files changed

+28
-29
lines changed

23 files changed

+28
-29
lines changed

IDE/Renesas/e2studio/RZN2L/flash_app/src/Flash_wrappedkey_public.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* wolfBoot is free software; you can redistribute it and/or modify
88
* it under the terms of the GNU General Public License as published by
9-
* the Free Software Foundation; either version 2 of the License, or
9+
* the Free Software Foundation; either version 3 of the License, or
1010
* (at your option) any later version.
1111
*
1212
* wolfBoot is distributed in the hope that it will be useful,

docs/Targets.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -926,11 +926,12 @@ sudo dd if=test-app/image_v1_signed.bin of=/dev/sdc2 bs=512 && sudo cmp test-app
926926

927927
4) Insert SDCARD into PolarFire and let HSS start wolfBoot. You may need to use `boot sdcard` or configure/build HSS to disable MMC / enable SDCARD.
928928

929-
### PolarFire building Yocto-SDK Linux
929+
### PolarFire Building Yocto-SDK Linux
930930

931931
See:
932932
* https://github.com/linux4microchip/meta-mchp/blob/scarthgap/meta-mchp-common/README.md
933933
* https://github.com/linux4microchip/meta-mchp/blob/scarthgap/meta-mchp-polarfire-soc/README.md
934+
* https://github.com/polarfire-soc/polarfire-soc-documentation/blob/master/reference-designs-fpga-and-development-kits/mpfs-video-kit-embedded-software-user-guide.md
934935

935936
Building mchp-base-image Yocto Linux:
936937

@@ -947,7 +948,7 @@ MACHINE=mpfs-video-kit bitbake mchp-base-image-sdk
947948

948949
Build images are output to: `./tmp-glibc/deploy/images/mpfs-video-kit/`
949950

950-
#### Building custom FIT image, signing and coping to SDCard
951+
#### Custom FIT image, signing and coping to SDCard
951952

952953
```sh
953954
# Extract GZIP compressed linux kernel to wolfboot root

hal/armv8m_tz.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* wolfBoot is free software; you can redistribute it and/or modify
88
* it under the terms of the GNU General Public License as published by
9-
* the Free Software Foundation; either version 2 of the License, or
9+
* the Free Software Foundation; either version 3 of the License, or
1010
* (at your option) any later version.
1111
*
1212
* wolfBoot is distributed in the hope that it will be useful,

hal/hifive1.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ void fespi_init(uint32_t cpu_clock, uint32_t flash_freq)
269269
static RAMFUNCTION void fespi_swmode(void)
270270
{
271271
asm volatile("fence");
272-
272+
asm volatile("fence.i");
273273
if (FESPI_REG_FCTRL & FESPI_FCTRL_MODE_SEL)
274274
FESPI_REG_FCTRL &= ~FESPI_FCTRL_MODE_SEL;
275275
}
@@ -280,7 +280,7 @@ static RAMFUNCTION void fespi_hwmode(void)
280280
if ((FESPI_REG_FCTRL & FESPI_FCTRL_MODE_SEL) == 0)
281281
FESPI_REG_FCTRL |= FESPI_FCTRL_MODE_SEL;
282282
asm volatile("fence");
283-
283+
asm volatile("fence.i");
284284
/* Wait two milliseconds for the eSPI device
285285
* to reboot into hw-mapped mode and link to the
286286
* instruction cache
@@ -575,13 +575,11 @@ int RAMFUNCTION hal_flash_erase(uint32_t address, int len)
575575
address -= FLASH_BASE;
576576
end = address + len - 1;
577577

578-
579578
FESPI_REG_TXMARK = 1;
580579
fespi_wait_txwm();
581580
fespi_swmode();
582581
fespi_wait_flash_busy();
583582

584-
585583
for (p = address; p <= end; p += FESPI_FLASH_SECTOR_SIZE) {
586584
fespi_write_enable();
587585
fespi_csmode_hold();

hal/mpfs250.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ int mmc_init(void)
861861
reg |= EMMC_SD_SRS15_DSS_TYPE_B; /* default */
862862
EMMC_SD_SRS15 = reg;
863863

864-
/* eanble high speed */
864+
/* enable high speed */
865865
EMMC_SD_SRS10 |= EMMC_SD_SRS10_HSE;
866866

867867
/* set UHS mode */

hal/mpfs250.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* wolfBoot is free software; you can redistribute it and/or modify
88
* it under the terms of the GNU General Public License as published by
9-
* the Free Software Foundation; either version 2 of the License, or
9+
* the Free Software Foundation; either version 3 of the License, or
1010
* (at your option) any later version.
1111
*
1212
* wolfBoot is distributed in the hope that it will be useful,

hal/mpfs250.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ SECTIONS
5757
}
5858

5959
PROVIDE(_start_heap = _end);
60-
PROVIDE(_end_stack = ORIGIN(RAM_L2_SCRATCH) + (LENGTH(RAM_L2_SCRATCH)) );
60+
PROVIDE(_end_stack = ORIGIN(L2_SCRATCH) + (LENGTH(L2_SCRATCH)) );

hal/nxp_ls1028a.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* wolfBoot is free software; you can redistribute it and/or modify
88
* it under the terms of the GNU General Public License as published by
9-
* the Free Software Foundation; either version 2 of the License, or
9+
* the Free Software Foundation; either version 3 of the License, or
1010
* (at your option) any later version.
1111
*
1212
* wolfBoot is distributed in the hope that it will be useful,

hal/nxp_ls1028a.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* wolfBoot is free software; you can redistribute it and/or modify
88
* it under the terms of the GNU General Public License as published by
9-
* the Free Software Foundation; either version 2 of the License, or
9+
* the Free Software Foundation; either version 3 of the License, or
1010
* (at your option) any later version.
1111
*
1212
* wolfBoot is distributed in the hope that it will be useful,

hal/nxp_p1021.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1564,7 +1564,7 @@ static void hal_irq_init(void)
15641564
set32(PIC_GCR, PIC_GCR_RST);
15651565
while (get32(PIC_GCR) & PIC_GCR_RST);
15661566

1567-
set32(PIC_GCR, PIC_GCR_M); /* eanble mixed-mode */
1567+
set32(PIC_GCR, PIC_GCR_M); /* enable mixed-mode */
15681568
reg = get32(PIC_GCR); /* read back */
15691569
(void)reg;
15701570
}

0 commit comments

Comments
 (0)