S32K Small Fixes:

- Typos / wrong names in s32k14x_irq.h, s32k1xx_memorymap.h and s32k1xx_pcc.h
- Wrong base address for port input disable register in s32k1xx_pin.c
- up_* still had to be changed to arm_* in some places
This commit is contained in:
Jari van Ewijk 2020-06-30 14:08:59 +02:00 committed by Abdelatif Guettouche
parent b8e5755568
commit 86c151edf1
7 changed files with 9 additions and 8 deletions

View File

@ -168,7 +168,7 @@
#define S32K1XX_IRQ_CAN2_16_31 (112) /* CAN2 OR'ed Message buffer (16-31) */
/* Reserved (113-114) */
#define S32K1XX_IRQ_FTM0_CH0_1 (115) /* FTM0 Channel 0/1 Interrupt */
#define S32K1XX_IRQ_FTM0_CH2_2 (116) /* FTM0 Channel 2/3 Interrupt */
#define S32K1XX_IRQ_FTM0_CH2_3 (116) /* FTM0 Channel 2/3 Interrupt */
#define S32K1XX_IRQ_FTM0_CH4_5 (117) /* FTM0 Channel 4/5 Interrupt */
#define S32K1XX_IRQ_FTM0_CH6_7 (118) /* FTM0 Channel 6/7 Interrupt */
#define S32K1XX_IRQ_FTM0_FAULT (119) /* FTM0 Fault Interrupt */

View File

@ -60,7 +60,7 @@
#define S32K1XX_DMAMUX_BASE 0x40021000 /* DMA Channel Multiplexer */
#define S32K1XX_FLEXCAN0_BASE 0x40024000 /* FlexCAN 0 */
#define S32K1XX_FLEXCAN1_BASE 0x40025000 /* FlexCAN 1 */
#define S32K1XX_FLEXTIMER_BASE 0x40026000 /* FlexTimer */
#define S32K1XX_FTM3_BASE 0x40026000 /* FlexTimer 3 */
#define S32K1XX_ADC1_BASE 0x40027000 /* Analog-to-digital converter 1 */
#define S32K1XX_FLEXCAN2_BASE 0x4002b000 /* FlexCAN 2 */
#define S32K1XX_LPSPI0_BASE 0x4002c000 /* Low Power SPI 0 */

View File

@ -55,7 +55,7 @@
#define S32K1XX_PCC_FLEXCAN1_OFFSET 0x0094 /* PCC FlexCAN1 Register */
#define S32K1XX_PCC_FTM3_OFFSET 0x0098 /* PCC FTM3 Register */
#define S32K1XX_PCC_ADC1_OFFSET 0x009c /* PCC ADC1 Register */
#define S32K1XX_PCC_FLEXCAN_OFFSET 0x00ac /* PCC FlexCAN2 Register */
#define S32K1XX_PCC_FLEXCAN2_OFFSET 0x00ac /* PCC FlexCAN2 Register */
#define S32K1XX_PCC_LPSPI0_OFFSET 0x00b0 /* PCC LPSPI0 Register */
#define S32K1XX_PCC_LPSPI1_OFFSET 0x00b4 /* PCC LPSPI1 Register */
#define S32K1XX_PCC_LPSPI2_OFFSET 0x00b8 /* PCC LPSPI2 Register */
@ -101,7 +101,7 @@
#define S32K1XX_PCC_FLEXCAN1 (S32K1XX_PCC_BASE + S32K1XX_PCC_FLEXCAN1_OFFSET)
#define S32K1XX_PCC_FTM3 (S32K1XX_PCC_BASE + S32K1XX_PCC_FTM3_OFFSET)
#define S32K1XX_PCC_ADC1 (S32K1XX_PCC_BASE + S32K1XX_PCC_ADC1_OFFSET)
#define S32K1XX_PCC_FLEXCAN (S32K1XX_PCC_BASE + S32K1XX_PCC_FLEXCAN_OFFSET)
#define S32K1XX_PCC_FLEXCAN2 (S32K1XX_PCC_BASE + S32K1XX_PCC_FLEXCAN2_OFFSET)
#define S32K1XX_PCC_LPSPI0 (S32K1XX_PCC_BASE + S32K1XX_PCC_LPSPI0_OFFSET)
#define S32K1XX_PCC_LPSPI1 (S32K1XX_PCC_BASE + S32K1XX_PCC_LPSPI1_OFFSET)
#define S32K1XX_PCC_LPSPI2 (S32K1XX_PCC_BASE + S32K1XX_PCC_LPSPI2_OFFSET)

View File

@ -46,7 +46,7 @@
#include <assert.h>
#include <errno.h>
#include "up_arch.h"
#include "arm_arch.h"
#include "hardware/s32k1xx_ftfc.h"
#include "hardware/s32k1xx_sim.h"
@ -54,7 +54,7 @@
#include "s32k1xx_config.h"
#include "s32k1xx_eeeprom.h"
#include "up_internal.h"
#include "arm_internal.h"
#include <arch/board/board.h> /* Include last: has dependencies */

View File

@ -47,7 +47,7 @@
#include <stdint.h>
#include <stdbool.h>
#include "up_internal.h"
#include "arm_internal.h"
#include "s32k1xx_config.h"
/******************************************************************************

View File

@ -161,6 +161,7 @@ int s32k1xx_pinconfig(uint32_t cfgset)
* as an input
*/
base = S32K1XX_GPIO_BASE(port);
regval = getreg32(base + S32K1XX_GPIO_PIDR_OFFSET);
if ((cfgset & PIN_DISABLE_INPUT) != 0)
{

View File

@ -47,7 +47,7 @@
#include <stdint.h>
#include <stdbool.h>
#include "up_internal.h"
#include "arm_internal.h"
#include "s32k1xx_config.h"
/******************************************************************************