Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MT25QL flash MTD driver addtion #293

Draft
wants to merge 9 commits into
base: px4_firmware_nuttx-10.3.0+
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions arch/arm/include/stm32/chip.h
Original file line number Diff line number Diff line change
Expand Up @@ -2099,6 +2099,31 @@
# define STM32_NRNG 1 /* Random number generator (RNG) */
# define STM32_NDCMI 1 /* Digital camera interface (DCMI) */

#elif defined(CONFIG_ARCH_CHIP_STM32F427A) /* UBGA169 1024/2048KiB flash 256KiB SRAM */
# define STM32_NFSMC 1 /* FSMC */
# define STM32_NATIM 2 /* Two advanced timers TIM1 and 8 */
# define STM32_NGTIM 4 /* 16-bit general timers TIM3 and 4 with DMA
* 32-bit general timers TIM2 and 5 with DMA */
# define STM32_NGTIMNDMA 6 /* 16-bit general timers TIM9-14 without DMA */
# define STM32_NBTIM 2 /* Two basic timers, TIM6-7 */
# define STM32_NDMA 2 /* DMA1-2 */
# define STM32_NSPI 6 /* SPI1-6 */
# define STM32_NI2S 2 /* I2S1-2 (multiplexed with SPI2-3) */
# define STM32_NUSART 8 /* USART1-3 and 6, UART 4-5 and 7-8 */
# define STM32_NI2C 3 /* I2C1-3 */
# define STM32_NCAN 2 /* CAN1-2 */
# define STM32_NSDIO 1 /* SDIO */
# define STM32_NLCD 0 /* No LCD */
# define STM32_NUSBOTG 1 /* USB OTG FS/HS */
# define STM32_NGPIO 130 /* GPIOA-I */
# define STM32_NADC 3 /* 12-bit ADC1-3, 24 channels */
# define STM32_NDAC 2 /* 12-bit DAC1, 2 channels */
# define STM32_NCAPSENSE 0 /* No capacitive sensing channels */
# define STM32_NCRC 1 /* CRC */
# define STM32_NETHERNET 1 /* 100/100 Ethernet MAC */
# define STM32_NRNG 1 /* Random number generator (RNG) */
# define STM32_NDCMI 1 /* Digital Camera Interface*/

#elif defined(CONFIG_ARCH_CHIP_STM32F429I) /* BGA176; LQFP176 1024/2048KiB flash 256KiB SRAM */
# define STM32_NFSMC 1 /* FSMC */
# define STM32_NATIM 2 /* Two advanced timers TIM1 and 8 */
Expand Down
51 changes: 51 additions & 0 deletions arch/arm/src/stm32/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1061,6 +1061,12 @@ config ARCH_CHIP_STM32F407IG
select STM32_STM32F4XXX
select STM32_STM32F407

config ARCH_CHIP_STM32F427A
bool "STM32F427A"
select STM32_STM32F4XXX
select STM32_STM32F427A
select STM32_STM32F427

config ARCH_CHIP_STM32F427V
bool "STM32F427V"
select STM32_STM32F4XXX
Expand Down Expand Up @@ -1811,6 +1817,51 @@ config STM32_STM32F427
select STM32_HAVE_SPI6
select STM32_HAVE_I2SPLL


config STM32_STM32F427A
bool
default n
select STM32_HAVE_OVERDRIVE
select STM32_HAVE_FMC
select STM32_HAVE_CCM
select STM32_HAVE_USART2
select STM32_HAVE_USART3
select STM32_HAVE_UART4
select STM32_HAVE_UART5
select STM32_HAVE_USART6
select STM32_HAVE_UART7
select STM32_HAVE_UART8
select STM32_HAVE_TIM1
select STM32_HAVE_TIM3
select STM32_HAVE_TIM4
select STM32_HAVE_TIM5
select STM32_HAVE_TIM6
select STM32_HAVE_TIM7
select STM32_HAVE_TIM8
select STM32_HAVE_TIM9
select STM32_HAVE_TIM10
select STM32_HAVE_TIM11
select STM32_HAVE_TIM12
select STM32_HAVE_TIM13
select STM32_HAVE_TIM14
select STM32_HAVE_ADC1
select STM32_HAVE_ADC2
select STM32_HAVE_ADC3
select STM32_HAVE_CAN1
select STM32_HAVE_CAN2
select STM32_HAVE_DAC1
select STM32_HAVE_RNG
select STM32_HAVE_ETHMAC
select STM32_HAVE_SPI2
select STM32_HAVE_SPI3
select STM32_HAVE_SPI4
select STM32_HAVE_SPI5
select STM32_HAVE_I2S3
select STM32_HAVE_I2C3
select STM32_HAVE_OTGFS
select STM32_HAVE_SPI6
select STM32_HAVE_I2SPLL

# This is really 429/439, but we treat the two the same.

config STM32_STM32F429
Expand Down
6 changes: 5 additions & 1 deletion arch/arm/src/stm32/hardware/stm32_memorymap.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@
#elif defined(CONFIG_STM32_STM32F37XX)
# include "hardware/stm32f37xxx_memorymap.h"
#elif defined(CONFIG_STM32_STM32F4XXX)
# include "hardware/stm32f40xxx_memorymap.h"
# if defined (CONFIG_STM32_STM32F427A)
# include "hardware/stm32f427ax_memorymap.h"
# else
# include "hardware/stm32f40xxx_memorymap.h"
# endif
#elif defined(CONFIG_STM32_STM32G4XXX)
# include "hardware/stm32g4xxxx_memorymap.h"
#else
Expand Down
12 changes: 10 additions & 2 deletions arch/arm/src/stm32/hardware/stm32_pinmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,17 @@

#elif defined(CONFIG_STM32_STM32F4XXX)
# if defined(CONFIG_STM32_USE_LEGACY_PINMAP)
# include "hardware/stm32f40xxx_pinmap_legacy.h"
# if defined(CONFIG_STM32_STM32F427A)
# include "hardware/stm32f427ax_pinmap_legacy.h"
# else
# include "hardware/stm32f40xxx_pinmap_legacy.h"
# endif
# else
# include "hardware/stm32f40xxx_pinmap.h"
# if defined(CONFIG_STM32_STM32F427A)
# include "hardware/stm32f427ax_pinmap.h"
# else
# include "hardware/stm32f40xxx_pinmap.h"
# endif
# endif

/* STM32 G4 Family **********************************************************/
Expand Down
Loading