blob: 2a97268ab5eaab0450fe3be6efb4da17349013f7 [file] [log] [blame]
Andrew Boie91c23f22017-03-15 10:15:25 -07001/*
2 * Copyright (c) 2017 Intel Corporation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/**
18 * @file
19 * @brief Bootloader device specific configuration.
20 */
21
22/*
23 * NOTE: This flash layout is a simple one for demonstration purposes.
Carles Cufi90eda802018-01-29 18:33:20 +010024 * It assumes we are building MCUboot as a 3rd-stage loader, leaving the
Andrew Boie91c23f22017-03-15 10:15:25 -070025 * stock bootloaders on the Arduino 101 untouched.
26 *
Carles Cufi90eda802018-01-29 18:33:20 +010027 * In this configuration MCUboot will live at 0x40010000
Andrew Boie91c23f22017-03-15 10:15:25 -070028 */
29
30#define FLASH_DRIVER_NAME CONFIG_SOC_FLASH_QMSI_DEV_NAME
31#define FLASH_ALIGN 4
32#define FLASH_AREA_IMAGE_0_OFFSET 0x40020000
33#define FLASH_AREA_IMAGE_0_SIZE 0x10000
34#define FLASH_AREA_IMAGE_1_OFFSET 0x40030000
35#define FLASH_AREA_IMAGE_1_SIZE 0x10000
36#define FLASH_AREA_IMAGE_SCRATCH_OFFSET 0x40040000
37#define FLASH_AREA_IMAGE_SCRATCH_SIZE 0x10000