mirror of
https://github.com/Ai-Thinker-Open/Ai-Thinker-Open_RTL8710BX_ALIOS_SDK.git
synced 2025-01-30 17:05:23 +00:00
70 lines
2.5 KiB
C
70 lines
2.5 KiB
C
|
/*
|
||
|
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
|
||
|
*/
|
||
|
|
||
|
#include "hal/soc/soc.h"
|
||
|
#include <aos/kernel.h>
|
||
|
#include <aos/aos.h>
|
||
|
|
||
|
/* Logic partition on flash devices */
|
||
|
const hal_logic_partition_t hal_partitions[] =
|
||
|
{
|
||
|
[HAL_PARTITION_BOOTLOADER] =
|
||
|
{
|
||
|
.partition_owner = HAL_FLASH_EMBEDDED,
|
||
|
.partition_description = "Bootloader",
|
||
|
.partition_start_addr = 0x1000,
|
||
|
.partition_length = 0x7000, //28k bytes
|
||
|
.partition_options = PAR_OPT_READ_EN | PAR_OPT_WRITE_DIS,
|
||
|
},
|
||
|
[HAL_PARTITION_PARAMETER_1] =
|
||
|
{
|
||
|
.partition_owner = HAL_FLASH_EMBEDDED,
|
||
|
.partition_description = "PARAMETER1",
|
||
|
.partition_start_addr = 0x310000,
|
||
|
.partition_length = 0x1000, // 4k bytes
|
||
|
.partition_options = PAR_OPT_READ_EN | PAR_OPT_WRITE_EN,
|
||
|
},
|
||
|
[HAL_PARTITION_PARAMETER_2] =
|
||
|
{
|
||
|
.partition_owner = HAL_FLASH_EMBEDDED,
|
||
|
.partition_description = "PARAMETER2",
|
||
|
.partition_start_addr = 0x311000,
|
||
|
.partition_length = 0x2000, //8k bytes
|
||
|
.partition_options = PAR_OPT_READ_EN | PAR_OPT_WRITE_EN,
|
||
|
},
|
||
|
[HAL_PARTITION_APPLICATION] =
|
||
|
{
|
||
|
.partition_owner = HAL_FLASH_EMBEDDED,
|
||
|
.partition_description = "Application",
|
||
|
.partition_start_addr = 0x10000,
|
||
|
.partition_length = 0x100000, //1MB bytes
|
||
|
.partition_options = PAR_OPT_READ_EN | PAR_OPT_WRITE_EN,
|
||
|
},
|
||
|
[HAL_PARTITION_OTA_TEMP] =
|
||
|
{
|
||
|
.partition_owner = HAL_FLASH_EMBEDDED,
|
||
|
.partition_description = "OTA Storage",
|
||
|
.partition_start_addr = 0x110000,
|
||
|
.partition_length = 0x100000, //1MB bytes
|
||
|
.partition_options = PAR_OPT_READ_EN | PAR_OPT_WRITE_EN,
|
||
|
},
|
||
|
[HAL_PARTITION_PARAMETER_3] =
|
||
|
{
|
||
|
.partition_owner = HAL_FLASH_EMBEDDED,
|
||
|
.partition_description = "PARAMETER3",
|
||
|
.partition_start_addr = 0x313000,
|
||
|
.partition_length = 0x1000, //4k bytes
|
||
|
.partition_options = PAR_OPT_READ_EN | PAR_OPT_WRITE_EN,
|
||
|
},
|
||
|
[HAL_PARTITION_PARAMETER_4] =
|
||
|
{
|
||
|
.partition_owner = HAL_FLASH_EMBEDDED,
|
||
|
.partition_description = "PARAMETER4",
|
||
|
.partition_start_addr = 0x314000,
|
||
|
.partition_length = 0x1000, //4k bytes
|
||
|
.partition_options = PAR_OPT_READ_EN | PAR_OPT_WRITE_EN,
|
||
|
},
|
||
|
};
|
||
|
|