Commit 75261c55 authored by Alexander Potashev's avatar Alexander Potashev

RT106080. stm32f2_gpio: Add support for GPIO ports J and K on STM32F7

parent 9997b75e
......@@ -45,6 +45,8 @@ DECLARE_GLOBAL_DATA_PTR;
#define STM32F2_GPIOG_BASE (STM32_AHB1PERIPH_BASE + 0x1800)
#define STM32F2_GPIOH_BASE (STM32_AHB1PERIPH_BASE + 0x1C00)
#define STM32F2_GPIOI_BASE (STM32_AHB1PERIPH_BASE + 0x2000)
#define STM32F4_GPIOJ_BASE (STM32_AHB1PERIPH_BASE + 0x2400)
#define STM32F4_GPIOK_BASE (STM32_AHB1PERIPH_BASE + 0x2800)
/*
* GPIO configuration mode
......@@ -120,7 +122,8 @@ struct stm32f2_gpio_regs {
static const unsigned long io_base[] = {
STM32F2_GPIOA_BASE, STM32F2_GPIOB_BASE, STM32F2_GPIOC_BASE,
STM32F2_GPIOD_BASE, STM32F2_GPIOE_BASE, STM32F2_GPIOF_BASE,
STM32F2_GPIOG_BASE, STM32F2_GPIOH_BASE, STM32F2_GPIOI_BASE
STM32F2_GPIOG_BASE, STM32F2_GPIOH_BASE, STM32F2_GPIOI_BASE,
STM32F4_GPIOJ_BASE, STM32F4_GPIOK_BASE,
};
/*
......
......@@ -34,7 +34,9 @@ enum stm32f2_gpio_port {
STM32F2_GPIO_PORT_F,
STM32F2_GPIO_PORT_G,
STM32F2_GPIO_PORT_H,
STM32F2_GPIO_PORT_I
STM32F2_GPIO_PORT_I,
STM32F2_GPIO_PORT_J,
STM32F2_GPIO_PORT_K
};
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment