aboutsummaryrefslogtreecommitdiffstats
path: root/src/lpc176x/Kconfig
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-05-07 21:32:27 -0400
committerKevin O'Connor <kevin@koconnor.net>2018-05-25 11:52:13 -0400
commit970831ee0d3b91897196e92270d98b2a3067427f (patch)
tree441c2b329ea669ff5e996a617d7b6bc2c315fa0d /src/lpc176x/Kconfig
parent5ae22a5e51872fd3e6130a3acce68f598bee9ff0 (diff)
downloadkutter-970831ee0d3b91897196e92270d98b2a3067427f.tar.gz
kutter-970831ee0d3b91897196e92270d98b2a3067427f.tar.xz
kutter-970831ee0d3b91897196e92270d98b2a3067427f.zip
lpc176x: Add initial support for LPC176x processors
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/lpc176x/Kconfig')
-rw-r--r--src/lpc176x/Kconfig34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/lpc176x/Kconfig b/src/lpc176x/Kconfig
new file mode 100644
index 00000000..d9f15dd1
--- /dev/null
+++ b/src/lpc176x/Kconfig
@@ -0,0 +1,34 @@
+# Kconfig settings for LPC176x processors
+
+if MACH_LPC176X
+
+config LPC_SELECT
+ bool
+ default y
+
+config BOARD_DIRECTORY
+ string
+ default "lpc176x"
+
+choice
+ prompt "Processor model"
+ config MACH_LPC1768
+ bool "lpc1768 (100 Mhz)"
+ config MACH_LPC1769
+ bool "lpc1769 (120 Mhz)"
+endchoice
+
+config CLOCK_FREQ
+ int
+ default 25000000 if MACH_LPC1768 # 100000000 / 4
+ default 30000000 if MACH_LPC1769 # 120000000 / 4
+
+config SERIAL
+ bool
+ default y
+config SERIAL_BAUD
+ depends on SERIAL
+ int "Baud rate for serial port"
+ default 250000
+
+endif