-
Notifications
You must be signed in to change notification settings - Fork 76
/
Makefile.vars.sam9x60
executable file
·130 lines (121 loc) · 3.03 KB
/
Makefile.vars.sam9x60
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
SAM9X60_TARGETS = sam9x60-generic \
sam9x60-ek sam9x60-curiosity
ifneq ($(strip $(foreach board,$(SAM9X60_TARGETS),$(if $(call eq,$(TARGET),$(board)),$(board)))),)
ifeq ($(TARGET),sam9x60-curiosity)
COMPATIBLE_VARIANTS = sram ddram
else
COMPATIBLE_VARIANTS = sram ddram qspi0
endif
CONFIG_ARCH_ARMV5TE = y
CONFIG_SOC_SAM9X60 = y
CONFIG_HAVE_ADC_LOW_RES = y
CONFIG_HAVE_AES = y
CONFIG_HAVE_AES_GCM = y
CONFIG_HAVE_AES_XTS = y
CONFIG_HAVE_AIC5 = y
CONFIG_HAVE_CAN = y
CONFIG_HAVE_DBGU = y
CONFIG_HAVE_DWDT = y
CONFIG_HAVE_FLEXCOM = y
CONFIG_HAVE_ISI = y
CONFIG_HAVE_MPDDRC = y
CONFIG_HAVE_SDRAMC = y
CONFIG_HAVE_MPDDRC_DDR2 = y
CONFIG_HAVE_MPDDRC_DATA_PATH = y
CONFIG_HAVE_MPDDRC_IO_CALIBRATION = y
CONFIG_HAVE_LCDC = y
CONFIG_HAVE_LCDC_OVR1 = y
CONFIG_HAVE_LCDC_OVR2 = y
CONFIG_HAVE_OTPC = y
CONFIG_HAVE_OTPC_SAM9X60_FIXUP = y
CONFIG_HAVE_PIO3 = y
CONFIG_HAVE_PMC_GENERATED_CLOCKS = y
CONFIG_HAVE_PMC_FAST_STARTUP = y
CONFIG_HAVE_NFD0_ON_D16 = y
CONFIG_HAVE_PMECC = y
CONFIG_HAVE_PIT = y
CONFIG_HAVE_QSPI = y
CONFIG_HAVE_QSPI_DMA = y
CONFIG_HAVE_RSTC_EXTERNAL_RESET = y
CONFIG_HAVE_RSTC_INDEPENDENT_RESET = y
CONFIG_HAVE_RTT = y
CONFIG_HAVE_SHA = y
CONFIG_HAVE_SHA_HMAC = y
CONFIG_HAVE_SPI = y
CONFIG_HAVE_PWMC = y
CONFIG_HAVE_TDES = y
CONFIG_HAVE_TRNG = y
CONFIG_HAVE_SCKC = y
CONFIG_HAVE_SDMMC = y
CONFIG_HAVE_SMC = y
CONFIG_HAVE_SSC = y
CONFIG_HAVE_SHDWC = y
CONFIG_HAVE_TWI = y
CONFIG_HAVE_TWI_FIFO = y
CONFIG_HAVE_UDPHS = y
CONFIG_HAVE_USART = y
CONFIG_HAVE_USART_ISO7816_4 = y
CONFIG_HAVE_USART_LIN = y
CONFIG_HAVE_USART_FIFO = y
CONFIG_HAVE_XDMAC = y
CONFIG_HAVE_XDMAC_TC_CP = y
ifeq ($(TARGET),sam9x60-generic)
CONFIG_CHIP_SAM9X60 = y
CONFIG_BOARD_SAM9X60_GENERIC = y
# allow choosing any supported serial driver at runtime
CONFIG_SERIALD_DBGU = y
CONFIG_SERIALD_UART = y
CONFIG_SERIALD_USART = y
# allow choosing any supported ddram type at runtime
CONFIG_HAVE_DDR2_W972GG6KB = y
CONFIG_HAVE_DDR2_MT47H64M16 = y
# support SAM9X60-SDR-SIP-EB
CONFIG_HAVE_SDRAM_W9864G6KH = y
# support SAM9x60-DDR2-SiP-EB
CONFIG_HAVE_DDR2_W971GG6SB = y
CONFIG_HAVE_DDR2_W9751G6KB = y
CONFIG_HAVE_AUDIO = y
CONFIG_HAVE_CLASSD = y
endif
ifeq ($(TARGET),sam9x60-ek)
CONFIG_CHIP_SAM9X60 = y
CONFIG_BOARD_SAM9X60_EK = y
CONFIG_HAVE_LED = y
CONFIG_HAVE_AUDIO = y
CONFIG_HAVE_CLASSD = y
ifeq ($(CONFIG_CAN),y)
CONFIG_SERIALD_USART = y
else
CONFIG_SERIALD_DBGU = y
endif
CONFIG_HAVE_DDR2_W972GG6KB = y
CONFIG_HAVE_SPI_AT25 = y
CONFIG_HAVE_TWI_AT24 = y
CONFIG_HAVE_NAND_FLASH = y
CONFIG_HAVE_IMAGE_SENSOR = y
endif
ifeq ($(TARGET),sam9x60-curiosity)
CONFIG_CHIP_SAM9X60 = y
CONFIG_BOARD_SAM9X60_CURIOSITY = y
CONFIG_HAVE_LED = y
ifeq ($(CONFIG_CAN),y)
CONFIG_SERIALD_USART = y
else
CONFIG_SERIALD_DBGU = y
endif
CONFIG_HAVE_DDR2_W972GG6KB = y
CONFIG_HAVE_TWI_AT24 = y
CONFIG_HAVE_NAND_FLASH = y
endif
# features that are different between chips
ifeq ($(CONFIG_CHIP_SAM9X60),y)
CONFIG_HAVE_LCDC = y
CONFIG_HAVE_LCDC_OVR1 = y
CONFIG_HAVE_EMAC = y
endif
ifeq ($(CROSS_COMPILE),xc32-)
CFLAGS_CPU += -mprocessor=ATSAM9X60
else
CFLAGS_CPU += -mcpu=arm926ej-s -mfloat-abi=soft
endif
endif