blob: 9982ec0ade19272889dbaaef5c429f087820a789 [file] [log] [blame]
Ricardo Salveti88303ff2017-01-17 23:16:21 -02001/*
2 * Copyright (c) 2017 Linaro
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
Michael Scott72559a42017-02-07 14:42:48 -050022#define FLASH_DRIVER_NAME CONFIG_SOC_FLASH_NRF5_DEV_NAME
Marti Bolivar5e6a1a62017-01-31 19:35:06 -050023#define FLASH_ALIGN 4
Ricardo Salveti88303ff2017-01-17 23:16:21 -020024#define FLASH_AREA_IMAGE_0_OFFSET 0x08000
25#define FLASH_AREA_IMAGE_0_SIZE 0x3A000
26#define FLASH_AREA_IMAGE_1_OFFSET 0x42000
27#define FLASH_AREA_IMAGE_1_SIZE 0x3A000
28#define FLASH_AREA_IMAGE_SCRATCH_OFFSET 0x7c000
29#define FLASH_AREA_IMAGE_SCRATCH_SIZE 0x01000