-
Notifications
You must be signed in to change notification settings - Fork 76
/
Makefile.vars.sama5d3
146 lines (134 loc) · 3.4 KB
/
Makefile.vars.sama5d3
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
ifeq ("y",$(TARGET:sama5d3-%="y"))
COMPATIBLE_VARIANTS = sram ddram
CONFIG_ARCH_ARMV7A = y
CONFIG_SOC_SAMA5D3 = y
CONFIG_HAVE_HSMCI = y
CONFIG_HAVE_AES = y
CONFIG_HAVE_AIC5 = y
CONFIG_HAVE_ADC_SEQ_R2 = y
CONFIG_HAVE_ADC_SETTLING_TIME = y
CONFIG_HAVE_ADC_DIFF_INPUT = y
CONFIG_HAVE_ADC_INPUT_OFFSET = y
CONFIG_HAVE_DBGU = y
CONFIG_HAVE_ISI = y
CONFIG_HAVE_PIO3 = y
CONFIG_HAVE_PIT = y
CONFIG_HAVE_PMC_PLLADIV2 = y
CONFIG_HAVE_PMC_PLLA_CHARGE_PUMP = y
CONFIG_HAVE_PMC_UPLL_BIAS = y
CONFIG_HAVE_PMC_PERIPH_DIV = y
CONFIG_HAVE_PMECC = y
CONFIG_HAVE_PWMC = y
CONFIG_HAVE_PWMC_CMP_UNIT = y
CONFIG_HAVE_PWMC_DTIME = y
CONFIG_HAVE_PWMC_ELINE = y
CONFIG_HAVE_PWMC_FMODE = y
CONFIG_HAVE_PWMC_OOV = y
CONFIG_HAVE_PWMC_STEPPER_MOTOR = y
CONFIG_HAVE_PWMC_SYNC_MODE = y
CONFIG_HAVE_PWMC_WP = y
CONFIG_HAVE_SCKC = y
CONFIG_HAVE_SMC = y
CONFIG_HAVE_SMC_SCRAMBLING = y
CONFIG_HAVE_SPI = y
CONFIG_HAVE_SHA = y
CONFIG_HAVE_TDES = y
CONFIG_HAVE_TRNG = y
CONFIG_HAVE_TWI = y
CONFIG_HAVE_MPDDRC = y
CONFIG_HAVE_MPDDRC_IO_CALIBRATION = y
CONFIG_HAVE_MPDDRC_DDR2 = y
CONFIG_HAVE_MPDDRC_LPDDR2 = y
CONFIG_HAVE_NFC = y
CONFIG_HAVE_RSTC_EXTERNAL_RESET = y
CONFIG_HAVE_RSTC_INDEPENDENT_RESET = y
CONFIG_HAVE_TC_FAULT_MODE = y
CONFIG_HAVE_SMD = y
CONFIG_HAVE_DMAC = y
CONFIG_HAVE_DMAC_DATA_WIDTH_DWORD = y
CONFIG_HAVE_SHDWC = y
CONFIG_HAVE_UDPHS = y
CONFIG_HAVE_USART = y
CONFIG_HAVE_USART_ISO7816_4 = y
ifeq ("y",$(TARGET:%-ek="y"))
CONFIG_CHIP_SAMA5D36 = y
CONFIG_BOARD_SAMA5D3_EK = y
CONFIG_HAVE_LED = y
CONFIG_SERIALD_DBGU = y
CONFIG_HAVE_DDR2_MT47H128M16 = y
CONFIG_HAVE_SSC = y
CONFIG_HAVE_AUDIO = y
CONFIG_HAVE_AUDIO_WM8904 = y
CONFIG_HAVE_SPI_AT25 = y
CONFIG_HAVE_IMAGE_SENSOR = y
CONFIG_HAVE_NAND_FLASH = y
endif
ifeq ("y",$(TARGET:%-generic="y"))
CONFIG_CHIP_SAMA5D36 = y
CONFIG_BOARD_SAMA5D3_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_MT47H128M8 = y
CONFIG_HAVE_DDR2_MT47H64M16 = y
CONFIG_HAVE_DDR2_MT47H128M16 = y
CONFIG_HAVE_DDR2_W971GG6SB = y
CONFIG_HAVE_DDR2_W972GG6KB = y
CONFIG_HAVE_LPDDR2_MT42L128M16 = y
endif
ifeq ("y",$(TARGET:%-xplained="y"))
CONFIG_CHIP_SAMA5D36 = y
CONFIG_BOARD_SAMA5D3_XPLAINED = y
CONFIG_HAVE_LED = y
CONFIG_SERIALD_DBGU = y
# allow choosing any supported ddram type
CONFIG_HAVE_DDR2_MT47H128M16 = y
CONFIG_HAVE_DDR2_MT47H64M16 = y
CONFIG_HAVE_PMIC_ACT8865 = y
CONFIG_HAVE_SPI_AT25 = y
CONFIG_HAVE_NAND_FLASH = y
endif
ifeq ($(CONFIG_CHIP_SAMA5D31),y)
CONFIG_HAVE_EMAC = y
CONFIG_HAVE_LCDC = y
CONFIG_HAVE_LCDC_OVR1 = y
CONFIG_HAVE_LCDC_OVR2 = y
CONFIG_HAVE_LCDC_PP = y
CONFIG_HAVE_UART = y
endif
ifeq ($(CONFIG_CHIP_SAMA5D33),y)
CONFIG_HAVE_GMAC = y
CONFIG_HAVE_LCDC = y
CONFIG_HAVE_LCDC_OVR1 = y
CONFIG_HAVE_LCDC_OVR2 = y
CONFIG_HAVE_LCDC_PP = y
endif
ifeq ($(CONFIG_CHIP_SAMA5D34),y)
CONFIG_HAVE_CAN = y
CONFIG_HAVE_EMAC = y
CONFIG_HAVE_GMAC = y
CONFIG_HAVE_LCDC = y
CONFIG_HAVE_LCDC_OVR1 = y
CONFIG_HAVE_LCDC_OVR2 = y
CONFIG_HAVE_LCDC_PP = y
endif
ifeq ($(CONFIG_CHIP_SAMA5D35),y)
CONFIG_HAVE_CAN = y
CONFIG_HAVE_EMAC = y
CONFIG_HAVE_GMAC = y
CONFIG_HAVE_UART = y
endif
ifeq ($(CONFIG_CHIP_SAMA5D36),y)
CONFIG_HAVE_CAN = y
CONFIG_HAVE_EMAC = y
CONFIG_HAVE_GMAC = y
CONFIG_HAVE_LCDC = y
CONFIG_HAVE_LCDC_OVR1 = y
CONFIG_HAVE_LCDC_OVR2 = y
CONFIG_HAVE_LCDC_PP = y
CONFIG_HAVE_UART = y
endif
CFLAGS_CPU += -mcpu=cortex-a5 -mfpu=vfpv4-d16 -mfloat-abi=hard
endif