avr: Clean up serial port register aliases

Define unique register aliases for all of the hardware serial port
definitions.  This makes it easier to deal with the AVR chips that use
different register names.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2018-04-25 10:13:07 -04:00
parent 22c49a7c3f
commit cf475a9a39
2 changed files with 38 additions and 31 deletions

View File

@@ -110,6 +110,10 @@ config SERIAL_BAUD_U2X
depends on AVR_SERIAL && !SIMULAVR
bool
default y
config SERIAL_PORT
int
default 1 if MACH_at90usb1286 || MACH_at90usb646
default 0
config SIMULAVR
depends on MACH_atmega168 || MACH_atmega328 || MACH_atmega644p || MACH_atmega1284p