avr: Reorder Kconfig entries so that atmega2560 at 16mhz is default

Reorder the MCU list so that newer chips are at the top of the list.
This causes the very popular atmega2560 to be the default chip
selected.

Reorder the frequency list so that higher frequencies are at the top
of the list.  Restrict the 20Mhz frequency to only chips that support
that speed.  This causes the popular 16Mhz frequency to be the default
speed on AVR.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2017-05-28 09:59:51 -04:00
parent d4bed025ed
commit 7e3d7e071f
1 changed files with 13 additions and 12 deletions

View File

@ -16,16 +16,16 @@ config BOARD_DIRECTORY
choice choice
prompt "Processor model" prompt "Processor model"
config MACH_atmega168
bool "atmega168"
config MACH_atmega644p
bool "atmega644p"
config MACH_at90usb1286
bool "at90usb1286"
config MACH_atmega1280
bool "atmega1280"
config MACH_atmega2560 config MACH_atmega2560
bool "atmega2560" bool "atmega2560"
config MACH_atmega1280
bool "atmega1280"
config MACH_at90usb1286
bool "at90usb1286"
config MACH_atmega644p
bool "atmega644p"
config MACH_atmega168
bool "atmega168"
endchoice endchoice
config MCU config MCU
@ -38,12 +38,13 @@ config MCU
choice choice
prompt "Processor speed" prompt "Processor speed"
config AVR_FREQ_8000000
bool "8Mhz"
config AVR_FREQ_16000000
bool "16Mhz"
config AVR_FREQ_20000000 config AVR_FREQ_20000000
bool "20Mhz" bool "20Mhz"
depends on MACH_atmega168 || MACH_atmega644p
config AVR_FREQ_16000000
bool "16Mhz"
config AVR_FREQ_8000000
bool "8Mhz"
endchoice endchoice
config CLOCK_FREQ config CLOCK_FREQ