Commit c868990e authored by Marti Bolivar's avatar Marti Bolivar Committed by David Brown
Browse files

zephyr: 96b_carbon: use flash defines from DTS

parent 04cc4d7d
Loading
Loading
Loading
Loading
+5 −8
Changes for boot/zephyr/targets/96b_carbon.h: 5 added lines, 8 removed lines.
Original line number Diff line number Diff line
@@ -26,13 +26,10 @@
#define FLASH_DRIVER_NAME		CONFIG_SOC_FLASH_STM32_DEV_NAME
#endif
#define FLASH_ALIGN			1
#define FLASH_AREA_IMAGE_0_OFFSET	0x20000
#define FLASH_AREA_IMAGE_0_SIZE		0x20000
#define FLASH_AREA_IMAGE_1_OFFSET	0x40000
#define FLASH_AREA_IMAGE_1_SIZE		0x20000
#define FLASH_AREA_IMAGE_SCRATCH_OFFSET	0x60000
#define FLASH_AREA_IMAGE_SCRATCH_SIZE	0x20000

/* Though sectors have variable size on this part, we've chosen
 * three sectors with uniform size here. */
/*
 * Though sectors have variable size on this part, we require Zephyr
 * to choose image and flash sectors with uniform size, each one
 * sector in size.
 */
#define FLASH_AREA_IMAGE_SECTOR_SIZE	0x20000