blob: adc50922c8f562d9572f2cc0b78cd5ba596c28de [file] [log] [blame]
Masahiro Yamadae604ef92014-08-31 07:11:01 +09001if ARCH_DAVINCI
2
3choice
4 prompt "DaVinci board select"
Joe Hershbergerf0699602015-05-12 14:46:23 -05005 optional
Masahiro Yamadae604ef92014-08-31 07:11:01 +09006
Masahiro Yamadae604ef92014-08-31 07:11:01 +09007config TARGET_DA850EVM
8 bool "DA850 EVM board"
Adam Fordd1f15a12018-01-11 08:20:27 -06009 select MACH_DAVINCI_DA850_EVM
10 select SOC_DA850
Masahiro Yamada6e0971b2014-10-20 17:45:56 +090011 select SUPPORT_SPL
Masahiro Yamadae604ef92014-08-31 07:11:01 +090012
Simon Glassa6664e92015-08-30 19:18:59 -060013config TARGET_OMAPL138_LCDK
14 bool "OMAPL138 LCDK"
Tom Rinid97ca592018-01-31 15:34:49 -050015 select SOC_DA8XX
Simon Glassa6664e92015-08-30 19:18:59 -060016 select SUPPORT_SPL
Masahiro Yamadae604ef92014-08-31 07:11:01 +090017
David Lechnera67f16f2016-02-26 00:46:07 -060018config TARGET_LEGOEV3
19 bool "LEGO MINDSTORMS EV3"
Adam Fordd1f15a12018-01-11 08:20:27 -060020 select MACH_DAVINCI_DA850_EVM
21 select SOC_DA850
David Lechnera67f16f2016-02-26 00:46:07 -060022
Masahiro Yamadae604ef92014-08-31 07:11:01 +090023endchoice
24
Masahiro Yamadae604ef92014-08-31 07:11:01 +090025config SYS_SOC
Masahiro Yamadae604ef92014-08-31 07:11:01 +090026 default "davinci"
27
Adam Fordd1f15a12018-01-11 08:20:27 -060028config DA850_LOWLEVEL
29 bool "Enable Lowlevel DA850 initialization"
30 depends on SOC_DA850
31
Fabien Parentb1bd48b2016-11-29 14:23:36 +010032config SYS_DA850_PLL_INIT
33 bool
34
Fabien Parent06372b62016-11-29 14:23:37 +010035config SYS_DA850_DDR_INIT
36 bool
37
Adam Fordd1f15a12018-01-11 08:20:27 -060038config SOC_DA850
39 bool
40 select SOC_DA8XX
Adam Fordd1f15a12018-01-11 08:20:27 -060041
42config SOC_DA8XX
43 bool
Lokesh Vutlabcb8d282018-03-16 14:22:12 +053044 select SYS_DA850_DDR_INIT if SUPPORT_SPL || DA850_LOWLEVEL
Michal Simek7e7ba3b2018-07-23 15:55:15 +020045 select SYS_DA850_PLL_INIT if SUPPORT_SPL || DA850_LOWLEVEL
Adam Fordd1f15a12018-01-11 08:20:27 -060046
47config MACH_DAVINCI_DA850_EVM
48 bool
49
Adam Ford71750ee2018-01-23 04:04:28 -060050if SYS_DA850_PLL_INIT
51comment "DA850 PLL Initialization Parameters"
52
53config SYS_DV_CLKMODE
54 int "PLLCTL Clock Mode"
Tom Rinid97ca592018-01-31 15:34:49 -050055 default 0
Adam Ford71750ee2018-01-23 04:04:28 -060056 help
57 Set PLLCTL Clock Mode bit as External Clock or On Chip oscillator
58
59config SYS_DA850_PLL0_POSTDIV
60 int "PLLC0 PLL Post-Divider"
Tom Rinid97ca592018-01-31 15:34:49 -050061 default 1
Adam Ford71750ee2018-01-23 04:04:28 -060062 help
63 Value written to PLLC0 PLL Post-Divider Control Register
64
65config SYS_DA850_PLL0_PLLDIV1
66 hex "PLLC0 Divider 1"
Tom Rinid97ca592018-01-31 15:34:49 -050067 default 0x8000
Adam Ford71750ee2018-01-23 04:04:28 -060068 help
69 Value written to PLLC0 Divider 1 register
70
71config SYS_DA850_PLL0_PLLDIV2
72 hex "PLLC0 Divider 2"
Tom Rinid97ca592018-01-31 15:34:49 -050073 default 0x8001
Adam Ford71750ee2018-01-23 04:04:28 -060074 help
75 Value written to PLLC0 Divider 2 register
76
77config SYS_DA850_PLL0_PLLDIV3
78 hex "PLLC0 Divider 3"
Tom Rinid97ca592018-01-31 15:34:49 -050079 default 0x8002
Adam Ford71750ee2018-01-23 04:04:28 -060080 help
81 Value written to PLLC0 Divider 3 register
82
83config SYS_DA850_PLL0_PLLDIV4
84 hex "PLLC0 Divider 4"
Tom Rinid97ca592018-01-31 15:34:49 -050085 default 0x8003
Adam Ford71750ee2018-01-23 04:04:28 -060086 help
87 Value written to PLLC0 Divider 4 register
88
89config SYS_DA850_PLL0_PLLDIV5
90 hex "PLLC0 Divider 5"
Tom Rinid97ca592018-01-31 15:34:49 -050091 default 0x8002
Adam Ford71750ee2018-01-23 04:04:28 -060092 help
93 Value written to PLLC0 Divider 5 register
94
95config SYS_DA850_PLL0_PLLDIV6
96 hex "PLLC0 Divider 6"
Tom Rinid97ca592018-01-31 15:34:49 -050097 default 0x8000
Adam Ford71750ee2018-01-23 04:04:28 -060098 help
99 Value written to PLLC0 Divider 6 register
100
101config SYS_DA850_PLL0_PLLDIV7
102 hex "PLLC0 Divider 7"
Tom Rinid97ca592018-01-31 15:34:49 -0500103 default 0x8005
Adam Ford71750ee2018-01-23 04:04:28 -0600104 help
105 Value written to PLLC0 Divider 7 register
106
107config SYS_DA850_PLL1_POSTDIV
108 hex "PLLC1 PLL Post-Divider"
Tom Rinid97ca592018-01-31 15:34:49 -0500109 default 1
Adam Ford71750ee2018-01-23 04:04:28 -0600110 help
111 Value written to PLLC1 PLL Post-Divider Control Register
112
113config SYS_DA850_PLL1_PLLDIV1
114 hex "PLLC1 Divider 2"
Tom Rinid97ca592018-01-31 15:34:49 -0500115 default 0x8000
Adam Ford71750ee2018-01-23 04:04:28 -0600116 help
117 Value written to PLLC1 Divider 1 register
118
119config SYS_DA850_PLL1_PLLDIV2
120 hex "PLLC1 Divider 2"
Tom Rinid97ca592018-01-31 15:34:49 -0500121 default 0x8001
Adam Ford71750ee2018-01-23 04:04:28 -0600122 help
123 Value written to PLLC1 Divider 2 register
124
125config SYS_DA850_PLL1_PLLDIV3
126 hex "PLLC1 Divider 3"
Tom Rinid97ca592018-01-31 15:34:49 -0500127 default 0x8002
Adam Ford71750ee2018-01-23 04:04:28 -0600128 help
129 Value written to PLLC1 Divider 3 register
130
131endif
132
Masahiro Yamadae604ef92014-08-31 07:11:01 +0900133source "board/davinci/da8xxevm/Kconfig"
David Lechnera67f16f2016-02-26 00:46:07 -0600134source "board/lego/ev3/Kconfig"
Masahiro Yamadae604ef92014-08-31 07:11:01 +0900135
Philipp Tomsich2d6a0cc2017-08-03 23:23:55 +0200136config SPL_LDSCRIPT
Philipp Tomsich2d6a0cc2017-08-03 23:23:55 +0200137 default "board/$(BOARDDIR)/u-boot-spl-da850evm.lds"
138
Masahiro Yamadae604ef92014-08-31 07:11:01 +0900139endif