mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-03 12:00:59 +00:00
refactor(core): move model specific norcow config to model header
[no changelog]
This commit is contained in:
parent
33fc64b629
commit
bd0b0b2d15
@ -26,15 +26,6 @@
|
|||||||
#define NORCOW_HEADER_LEN 0
|
#define NORCOW_HEADER_LEN 0
|
||||||
#define NORCOW_SECTOR_COUNT 2
|
#define NORCOW_SECTOR_COUNT 2
|
||||||
|
|
||||||
#if defined TREZOR_MODEL_T || defined TREZOR_MODEL_R || \
|
|
||||||
defined TREZOR_MODEL_DISC1
|
|
||||||
#define NORCOW_SECTOR_SIZE (64 * 1024)
|
|
||||||
#elif defined TREZOR_MODEL_1
|
|
||||||
#define NORCOW_SECTOR_SIZE (16 * 1024)
|
|
||||||
#else
|
|
||||||
#error Unknown Trezor model
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Current storage version.
|
* Current storage version.
|
||||||
*/
|
*/
|
||||||
|
@ -24,5 +24,6 @@
|
|||||||
|
|
||||||
#define BOOTLOADER_IMAGE_MAXSIZE (128 * 1024 * 1) // 128 KB
|
#define BOOTLOADER_IMAGE_MAXSIZE (128 * 1024 * 1) // 128 KB
|
||||||
#define FIRMWARE_IMAGE_MAXSIZE (128 * 1024 * 13) // 1664 KB
|
#define FIRMWARE_IMAGE_MAXSIZE (128 * 1024 * 13) // 1664 KB
|
||||||
|
#define NORCOW_SECTOR_SIZE (64 * 1024)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -12,5 +12,6 @@
|
|||||||
|
|
||||||
#define BOOTLOADER_IMAGE_MAXSIZE (32 * 1024 * 1) // 32 KB
|
#define BOOTLOADER_IMAGE_MAXSIZE (32 * 1024 * 1) // 32 KB
|
||||||
#define FIRMWARE_IMAGE_MAXSIZE (64 * 1024 * 15) // 960 KB
|
#define FIRMWARE_IMAGE_MAXSIZE (64 * 1024 * 15) // 960 KB
|
||||||
|
#define NORCOW_SECTOR_SIZE (16 * 1024)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -24,5 +24,6 @@
|
|||||||
|
|
||||||
#define BOOTLOADER_IMAGE_MAXSIZE (128 * 1024 * 1) // 128 KB
|
#define BOOTLOADER_IMAGE_MAXSIZE (128 * 1024 * 1) // 128 KB
|
||||||
#define FIRMWARE_IMAGE_MAXSIZE (128 * 1024 * 13) // 1664 KB
|
#define FIRMWARE_IMAGE_MAXSIZE (128 * 1024 * 13) // 1664 KB
|
||||||
|
#define NORCOW_SECTOR_SIZE (64 * 1024)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -24,5 +24,6 @@
|
|||||||
|
|
||||||
#define BOOTLOADER_IMAGE_MAXSIZE (128 * 1024 * 1) // 128 KB
|
#define BOOTLOADER_IMAGE_MAXSIZE (128 * 1024 * 1) // 128 KB
|
||||||
#define FIRMWARE_IMAGE_MAXSIZE (128 * 1024 * 13) // 1664 KB
|
#define FIRMWARE_IMAGE_MAXSIZE (128 * 1024 * 13) // 1664 KB
|
||||||
|
#define NORCOW_SECTOR_SIZE (64 * 1024)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user