ARM: at91: Move CONFIG_AT91FAMILY option to Kconfig
authorWenyou Yang <wenyou.yang@atmel.com>
Thu, 14 Sep 2017 03:07:40 +0000 (11:07 +0800)
committerTom Rini <trini@konsulko.com>
Thu, 14 Sep 2017 20:02:46 +0000 (16:02 -0400)
Move the CONFIG_AT91FAMILY option from include/mach/<soc>.h header
file to Kconfig.

Signed-off-by: Wenyou Yang <wenyou.yang@microchip.com>
arch/arm/mach-at91/Kconfig
arch/arm/mach-at91/include/mach/at91rm9200.h
arch/arm/mach-at91/include/mach/at91sam9260.h
arch/arm/mach-at91/include/mach/at91sam9261.h
arch/arm/mach-at91/include/mach/at91sam9263.h
arch/arm/mach-at91/include/mach/at91sam9g45.h
arch/arm/mach-at91/include/mach/at91sam9rl.h
arch/arm/mach-at91/include/mach/at91sam9x5.h
arch/arm/mach-at91/include/mach/sama5d2.h
arch/arm/mach-at91/include/mach/sama5d3.h
arch/arm/mach-at91/include/mach/sama5d4.h

index a70b956..513963c 100644 (file)
@@ -1,5 +1,8 @@
 if ARCH_AT91
 
+config AT91FAMILY
+       def_bool y
+
 choice
        prompt "Atmel AT91 board select"
        optional
index d177bdc..d15fb7a 100644 (file)
@@ -6,7 +6,6 @@
 #ifndef __AT91RM9200_H__
 #define __AT91RM9200_H__
 
-#define CONFIG_AT91FAMILY      /* it's a member of AT91 family */
 #define CONFIG_ARCH_CPU_INIT   /* we need arch_cpu_init() for hw timers */
 #define CONFIG_AT91_GPIO       /* and require always gpio features */
 
index 1a4e84b..24d5dbd 100644 (file)
 #define AT91SAM9260_H
 
 /*
- * defines to be used in other places
- */
-#define CONFIG_AT91FAMILY      /* it's a member of AT91 */
-
-/*
  * Peripheral identifiers/interrupts.
  */
 #define ATMEL_ID_FIQ   0       /* Advanced Interrupt Controller (FIQ) */
index 914a3b0..06403ce 100644 (file)
 #define AT91SAM9261_H
 
 /*
- * defines to be used in other places
- */
-#define CONFIG_AT91FAMILY      /* it's a member of AT91 */
-
-/*
  * Peripheral identifiers/interrupts.
  */
 #define ATMEL_ID_FIQ   0       /* Advanced Interrupt Controller (FIQ) */
index 71675ab..be9a665 100644 (file)
 #define AT91SAM9263_H
 
 /*
- * defines to be used in other places
- */
-#define CONFIG_AT91FAMILY      /* it's a member of AT91 */
-
-/*
  * Peripheral identifiers/interrupts.
  */
 #define ATMEL_ID_FIQ   0       /* Advanced Interrupt Controller (FIQ) */
index 5c32e24..96922c4 100644 (file)
 #define AT91SAM9G45_H
 
 /*
- * defines to be used in other places
- */
-#define CONFIG_AT91FAMILY      /* it's a member of AT91 */
-
-/*
  * Peripheral identifiers/interrupts.
  */
 #define ATMEL_ID_FIQ   0       /* Advanced Interrupt Controller (FIQ) */
index 70bbf4e..8f9155c 100644 (file)
 #define AT91SAM9RL_H
 
 /*
- * defines to be used in other places
- */
-#define CONFIG_AT91FAMILY      /* it's a member of AT91 */
-
-/*
  * Peripheral identifiers/interrupts.
  */
 #define ATMEL_ID_FIQ   0       /* Advanced Interrupt Controller (FIQ) */
index e7224e4..f9710a1 100644 (file)
@@ -12,8 +12,6 @@
 #ifndef __AT91SAM9X5_H__
 #define __AT91SAM9X5_H__
 
-#define CONFIG_AT91FAMILY      /* it's a member of AT91 family */
-
 /*
  * Peripheral identifiers/interrupts.
  */
index 49283ed..a4ec0aa 100644 (file)
 #define __SAMA5D2_H
 
 /*
- * definitions to be used in other places
- */
-#define CONFIG_AT91FAMILY      /* It's a member of AT91 */
-
-/*
  * Peripheral identifiers/interrupts.
  */
 #define ATMEL_ID_FIQ           0       /* FIQ Interrupt ID */
index d558f95..0d32e39 100644 (file)
 #define SAMA5D3_H
 
 /*
- * defines to be used in other places
- */
-#define CONFIG_AT91FAMILY      /* it's a member of AT91 */
-
-/*
  * Peripheral identifiers/interrupts.
  */
 #define ATMEL_ID_FIQ   0       /* Advanced Interrupt Controller (FIQ) */
index 78cc2a7..7e2657f 100644 (file)
 #define __SAMA5D4_H
 
 /*
- * defines to be used in other places
- */
-#define CONFIG_AT91FAMILY      /* It's a member of AT91 */
-
-/*
  * Peripheral identifiers/interrupts.
  */
 #define ATMEL_ID_FIQ   0       /* FIQ Interrupt */