Ricardo Salveti | 3a2c124 | 2017-01-19 10:22:35 -0200 | [diff] [blame] | 1 | /* |
| 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 Scott | 72559a4 | 2017-02-07 14:42:48 -0500 | [diff] [blame] | 22 | /* TEMP: maintain compatibility with old STM flash driver */ |
| 23 | #ifndef CONFIG_SOC_FLASH_STM32_DEV_NAME |
Ricardo Salveti | 3a2c124 | 2017-01-19 10:22:35 -0200 | [diff] [blame] | 24 | #define FLASH_DRIVER_NAME "STM32F4_FLASH" |
Michael Scott | 72559a4 | 2017-02-07 14:42:48 -0500 | [diff] [blame] | 25 | #else |
| 26 | #define FLASH_DRIVER_NAME CONFIG_SOC_FLASH_STM32_DEV_NAME |
| 27 | #endif |
Ricardo Salveti | 3a2c124 | 2017-01-19 10:22:35 -0200 | [diff] [blame] | 28 | #define FLASH_ALIGN 1 |
Marti Bolivar | 29d3a77 | 2017-03-20 10:44:25 -0400 | [diff] [blame] | 29 | |
Marti Bolivar | c868990 | 2017-06-16 11:35:14 -0400 | [diff] [blame] | 30 | /* |
| 31 | * Though sectors have variable size on this part, we require Zephyr |
| 32 | * to choose image and flash sectors with uniform size, each one |
| 33 | * sector in size. |
| 34 | */ |
Marti Bolivar | 29d3a77 | 2017-03-20 10:44:25 -0400 | [diff] [blame] | 35 | #define FLASH_AREA_IMAGE_SECTOR_SIZE 0x20000 |