Kinetis: Added CHIP_MK60FN1M0VLQ12 chip

This commit is contained in:
Maciej Skrzypek 2017-01-13 08:10:03 -06:00 committed by Gregory Nutt
parent 37e6e6a52e
commit bc1826da63
3 changed files with 853 additions and 807 deletions

View File

@ -1,7 +1,7 @@
/************************************************************************************
* arch/arm/include/kinetis/chip.h
*
* Copyright (C) 2011, 2013, 2015-2016 Gregory Nutt. All rights reserved.
* Copyright (C) 2011, 2013, 2015-2017 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@ -1010,6 +1010,46 @@
# undef KINETIS_NTAMPER /* No tamper detect */
# define KINETIS_NCRC 1 /* CRC */
#elif defined(CONFIG_ARCH_CHIP_MK60FN1M0VLQ12)
# undef KINETIS_K20 /* Not Kinetis K20 family */
# undef KINETIS_K40 /* Not Kinetics K40 family */
# define KINETIS_K60 1 /* Kinetis K60 family */
# undef KINETIS_K64 /* Not Kinetis K64 family */
# define KINETIS_FLASH_SIZE (1024*1024) /* 1Mb */
# define KINETIS_FLEXNVM_SIZE (512*1024) /* 512Kb FlexNVM */
# define KINETIS_FLEXRAM_SIZE (16*1024) /* 16Kb FlexRAM */
# define KINETIS_SRAM_SIZE (128*1024) /* 128Kb */
# define KINETIS_MPU 1 /* Memory protection unit */
# define KINETIS_EXTBUS 1 /* External bus interface */
# define KINETIS_NDMACH 32 /* Up to 32 DMA channels */
# define KINETIS_NENET 1 /* One IEEE 1588 Ethernet controller */
# define KINETIS_NUSBHOST 1 /* One USB host controller */
# define KINETIS_NUSBOTG 1 /* With USB OTG controller */
# define KINETIS_NUSBDEV 1 /* One USB device controller */
# define KINETIS_NSDHC 1 /* SD host controller */
# define KINETIS_NTOUCHIF 1 /* Xtrinsic touch sensing interface */
# define KINETIS_NI2C 3 /* Three I2C modules */
# define KINETIS_NUART 6 /* Five additional UARTs */
# define KINETIS_NSPI 3 /* Three SPI modules */
# define KINETIS_NCAN 2 /* Two CAN controllers */
# define KINETIS_NI2S 2 /* Two I2S modules */
# define KINETIS_NADC16 4 /* Four 16-bit ADC */
# define KINETIS_NADC15 1 /* One 15-channel ADC (ADC0) */
# define KINETIS_NPGA 4 /* Four Programmable Gain Amplifiers */
# define KINETIS_NCMP 4 /* Four analog comparators */
# undef KINETIS_NDAC6 4 /* Four 6-bit DAC */
# define KINETIS_NDAC12 2 /* Twp 12-bit DACs */
# define KINETIS_NVREF 1 /* Voltage reference */
# define KINETIS_NTIMERS8 2 /* Two 8 channel timers */
# define KINETIS_NTIMERS20 4 /* Four 20 channel timers */
# define KINETIS_NTIMERS12 3 /* Three 12 channel timers */
# define KINETIS_NTIMERS2 2 /* Two 2 channel timers */
# define KINETIS_NRTC 1 /* Real time clock */
# define KINETIS_NRNG 1 /* Random number generator */
# define KINETIS_NMMCAU 1 /* Hardware encryption */
# undef KINETIS_NTAMPER /* No tamper detect */
# define KINETIS_NCRC 1 /* CRC */
#elif defined(CONFIG_ARCH_CHIP_MK64FN1M0VLL12)
# undef KINETIS_K20 /* Not Kinetics K20 family */
# undef KINETIS_K40 /* Not Kinetics K40 family */

View File

@ -120,6 +120,12 @@ config ARCH_CHIP_MK60X256VMD100
select KINETIS_HAVE_I2C1
select KINETIS_HAVE_I2C2
config ARCH_CHIP_MK60FN1M0VLQ12
bool "MK60FN1M0VLQ12"
select ARCH_FAMILY_K60
select KINETIS_HAVE_I2C1
select KINETIS_HAVE_I2C2
config ARCH_CHIP_MK64FN1M0VLL12
bool "MK64FN1M0VLL12"
select ARCH_FAMILY_K64

View File

@ -58,7 +58,7 @@
#if defined(CONFIG_ARCH_CHIP_MK60N256VLQ100) || defined(CONFIG_ARCH_CHIP_MK60X256VLQ100) || \
defined(CONFIG_ARCH_CHIP_MK60N512VLQ100) || defined(CONFIG_ARCH_CHIP_MK60N256VMD100) || \
defined(CONFIG_ARCH_CHIP_MK60X256VMD100) || defined(CONFIG_ARCH_CHIP_MK60N512VMD100) || \
defined(CONFIG_ARCH_CHIP_MK60N512VLL100)
defined(CONFIG_ARCH_CHIP_MK60N512VLL100) || defined(CONFIG_ARCH_CHIP_MK60FN1M0VLQ12)
#define PIN_TSI0_CH1 (PIN_ANALOG | PIN_PORTA | PIN0)
#define PIN_UART0_CTS_1 (PIN_ALT2 | PIN_PORTA | PIN0)