2017-04-27 00:52:42 +08:00
|
|
|
# Kconfig - Atmel SAM3X MCU series
|
2016-01-21 13:10:59 +08:00
|
|
|
#
|
2017-04-26 00:06:07 +08:00
|
|
|
# Copyright (c) 2017 Justin Watson
|
2016-01-21 13:10:59 +08:00
|
|
|
# Copyright (c) 2016 Intel Corporation.
|
|
|
|
# Copyright (c) 2014-2015 Wind River Systems, Inc.
|
|
|
|
#
|
2017-01-19 09:01:01 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2016-01-21 13:10:59 +08:00
|
|
|
#
|
|
|
|
|
2017-04-26 00:06:07 +08:00
|
|
|
choice
|
2017-04-27 00:52:42 +08:00
|
|
|
prompt "Atmel SAM3X MCU Selection"
|
|
|
|
depends on SOC_SERIES_SAM3X
|
2017-04-26 00:06:07 +08:00
|
|
|
|
|
|
|
config SOC_PART_NUMBER_SAM3X8E
|
|
|
|
bool "SAM3X8E"
|
|
|
|
endchoice
|
2016-01-21 13:10:59 +08:00
|
|
|
|
2017-05-02 05:57:26 +08:00
|
|
|
if SOC_SERIES_SAM3X
|
2016-01-21 13:10:59 +08:00
|
|
|
|
2017-04-27 00:52:42 +08:00
|
|
|
config SOC_ATMEL_SAM3X_EXT_SLCK
|
2016-01-21 13:10:59 +08:00
|
|
|
bool "Atmel SAM3 to use external crystal oscillator for slow clock"
|
|
|
|
help
|
2018-02-15 21:36:16 +08:00
|
|
|
Says y if you want to use external 32 kHz crystal
|
|
|
|
oscillator to drive the slow clock. Note that this
|
|
|
|
adds a few seconds to boot time, as the crystal
|
|
|
|
needs to stabilize after power-up.
|
2016-01-21 13:10:59 +08:00
|
|
|
|
2018-02-15 21:36:16 +08:00
|
|
|
Says n if you do not need accurate and precise timers.
|
|
|
|
The slow clock will be driven by the internal fast
|
|
|
|
RC oscillator running at 32 kHz.
|
2016-01-21 13:10:59 +08:00
|
|
|
|
2017-04-27 00:52:42 +08:00
|
|
|
config SOC_ATMEL_SAM3X_EXT_MAINCK
|
2016-01-21 13:10:59 +08:00
|
|
|
bool "Atmel SAM3 to use external crystal oscillator for main clock"
|
|
|
|
help
|
2018-02-15 21:36:16 +08:00
|
|
|
The main clock is being used to drive the PLL, and
|
|
|
|
thus driving the processor clock.
|
2016-01-21 13:10:59 +08:00
|
|
|
|
2018-02-15 21:36:16 +08:00
|
|
|
Says y if you want to use external crystal oscillator
|
|
|
|
to drive the main clock. Note that this adds about
|
|
|
|
a second to boot time, as the crystal needs to
|
|
|
|
stabilize after power-up.
|
2016-01-21 13:10:59 +08:00
|
|
|
|
2018-02-15 21:36:16 +08:00
|
|
|
The crystal used here can be from 3 to 20 MHz.
|
2016-01-21 13:10:59 +08:00
|
|
|
|
2018-02-15 21:36:16 +08:00
|
|
|
Says n here will use the internal fast RC oscillator
|
|
|
|
running at 12 MHz.
|
2016-01-21 13:10:59 +08:00
|
|
|
|
2017-04-27 00:52:42 +08:00
|
|
|
config SOC_ATMEL_SAM3X_PLLA_MULA
|
2016-01-21 13:10:59 +08:00
|
|
|
hex
|
|
|
|
default 0x06
|
|
|
|
help
|
2018-02-15 21:36:16 +08:00
|
|
|
This is the multiplier (MULA) used by the PLL.
|
|
|
|
The processor clock is (MAINCK * (MULA + 1) / DIVA).
|
2016-01-21 13:10:59 +08:00
|
|
|
|
2018-02-15 21:36:16 +08:00
|
|
|
Board config file can override this settings
|
|
|
|
for a particular board.
|
2016-01-21 13:10:59 +08:00
|
|
|
|
2018-02-15 21:36:16 +08:00
|
|
|
With default of MULA == 6, and DIVA == 1,
|
|
|
|
PLL is running at 7 times of main clock.
|
2016-01-21 13:10:59 +08:00
|
|
|
|
2017-04-27 00:52:42 +08:00
|
|
|
config SOC_ATMEL_SAM3X_PLLA_DIVA
|
2016-01-21 13:10:59 +08:00
|
|
|
hex
|
|
|
|
default 0x01
|
|
|
|
help
|
2018-02-15 21:36:16 +08:00
|
|
|
This is the divider (DIVA) used by the PLL.
|
|
|
|
The processor clock is (MAINCK * (MULA + 1) / DIVA).
|
2016-01-21 13:10:59 +08:00
|
|
|
|
2018-02-15 21:36:16 +08:00
|
|
|
Board config file can override this settings
|
|
|
|
for a particular board.
|
2016-01-21 13:10:59 +08:00
|
|
|
|
2018-02-15 21:36:16 +08:00
|
|
|
With default of MULA == 6, and DIVA == 1,
|
|
|
|
PLL is running at 7 times of main clock.
|
2016-01-21 13:10:59 +08:00
|
|
|
|
2017-04-27 00:52:42 +08:00
|
|
|
config SOC_ATMEL_SAM3X_WAIT_MODE
|
2016-06-07 05:50:31 +08:00
|
|
|
bool "Atmel SAM3 goes to Wait mode instead of Sleep mode"
|
2017-05-02 05:57:26 +08:00
|
|
|
depends on SOC_ATMEL_SAM3X_EXT_MAINCK
|
2016-06-07 05:50:31 +08:00
|
|
|
default y if DEBUG
|
|
|
|
help
|
2018-02-15 21:36:16 +08:00
|
|
|
For JTAG debugging CPU clock (HCLK) should not stop. In order
|
|
|
|
to achieve this, make CPU go to Wait mode instead of Sleep
|
|
|
|
mode while using external crystal oscillator for main clock.
|
2016-06-07 05:50:31 +08:00
|
|
|
|
2017-04-27 00:52:42 +08:00
|
|
|
endif # SOC_SERIES_SAM3X
|