blob: 8fa2660a0cdcc786ea01ffb54d20adb0836ab28a [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
Adam Ford389ee8d2024-05-01 04:57:50 -050012 imply OF_UPSTREAM
Masahiro Yamadae604ef92014-08-31 07:11:01 +090013
Simon Glassa6664e92015-08-30 19:18:59 -060014config TARGET_OMAPL138_LCDK
15 bool "OMAPL138 LCDK"
Tom Rinid97ca592018-01-31 15:34:49 -050016 select SOC_DA8XX
Simon Glassa6664e92015-08-30 19:18:59 -060017 select SUPPORT_SPL
Bartosz Golaszewskif1412ef2019-11-14 16:10:30 +010018 select SPL_BOARD_INIT
Masahiro Yamadae604ef92014-08-31 07:11:01 +090019
David Lechnera67f16f2016-02-26 00:46:07 -060020config TARGET_LEGOEV3
21 bool "LEGO MINDSTORMS EV3"
Adam Fordd1f15a12018-01-11 08:20:27 -060022 select MACH_DAVINCI_DA850_EVM
23 select SOC_DA850
David Lechnera67f16f2016-02-26 00:46:07 -060024
Masahiro Yamadae604ef92014-08-31 07:11:01 +090025endchoice
26
Masahiro Yamadae604ef92014-08-31 07:11:01 +090027config SYS_SOC
Masahiro Yamadae604ef92014-08-31 07:11:01 +090028 default "davinci"
29
Adam Fordd1f15a12018-01-11 08:20:27 -060030config DA850_LOWLEVEL
31 bool "Enable Lowlevel DA850 initialization"
32 depends on SOC_DA850
33
Fabien Parentb1bd48b2016-11-29 14:23:36 +010034config SYS_DA850_PLL_INIT
35 bool
36
Fabien Parent06372b62016-11-29 14:23:37 +010037config SYS_DA850_DDR_INIT
38 bool
39
Adam Fordd1f15a12018-01-11 08:20:27 -060040config SOC_DA850
41 bool
42 select SOC_DA8XX
Adam Fordd1f15a12018-01-11 08:20:27 -060043
44config SOC_DA8XX
45 bool
Lokesh Vutlabcb8d282018-03-16 14:22:12 +053046 select SYS_DA850_DDR_INIT if SUPPORT_SPL || DA850_LOWLEVEL
Michal Simek7e7ba3b2018-07-23 15:55:15 +020047 select SYS_DA850_PLL_INIT if SUPPORT_SPL || DA850_LOWLEVEL
Adam Fordd1f15a12018-01-11 08:20:27 -060048
49config MACH_DAVINCI_DA850_EVM
50 bool
51
Adam Ford71750ee2018-01-23 04:04:28 -060052if SYS_DA850_PLL_INIT
53comment "DA850 PLL Initialization Parameters"
54
55config SYS_DV_CLKMODE
56 int "PLLCTL Clock Mode"
Tom Rinid97ca592018-01-31 15:34:49 -050057 default 0
Adam Ford71750ee2018-01-23 04:04:28 -060058 help
59 Set PLLCTL Clock Mode bit as External Clock or On Chip oscillator
60
61config SYS_DA850_PLL0_POSTDIV
62 int "PLLC0 PLL Post-Divider"
Tom Rinid97ca592018-01-31 15:34:49 -050063 default 1
Adam Ford71750ee2018-01-23 04:04:28 -060064 help
65 Value written to PLLC0 PLL Post-Divider Control Register
66
67config SYS_DA850_PLL0_PLLDIV1
68 hex "PLLC0 Divider 1"
Tom Rinid97ca592018-01-31 15:34:49 -050069 default 0x8000
Adam Ford71750ee2018-01-23 04:04:28 -060070 help
71 Value written to PLLC0 Divider 1 register
72
73config SYS_DA850_PLL0_PLLDIV2
74 hex "PLLC0 Divider 2"
Tom Rinid97ca592018-01-31 15:34:49 -050075 default 0x8001
Adam Ford71750ee2018-01-23 04:04:28 -060076 help
77 Value written to PLLC0 Divider 2 register
78
79config SYS_DA850_PLL0_PLLDIV3
80 hex "PLLC0 Divider 3"
Tom Rinid97ca592018-01-31 15:34:49 -050081 default 0x8002
Adam Ford71750ee2018-01-23 04:04:28 -060082 help
83 Value written to PLLC0 Divider 3 register
84
85config SYS_DA850_PLL0_PLLDIV4
86 hex "PLLC0 Divider 4"
Tom Rinid97ca592018-01-31 15:34:49 -050087 default 0x8003
Adam Ford71750ee2018-01-23 04:04:28 -060088 help
89 Value written to PLLC0 Divider 4 register
90
91config SYS_DA850_PLL0_PLLDIV5
92 hex "PLLC0 Divider 5"
Tom Rinid97ca592018-01-31 15:34:49 -050093 default 0x8002
Adam Ford71750ee2018-01-23 04:04:28 -060094 help
95 Value written to PLLC0 Divider 5 register
96
97config SYS_DA850_PLL0_PLLDIV6
98 hex "PLLC0 Divider 6"
Tom Rinid97ca592018-01-31 15:34:49 -050099 default 0x8000
Adam Ford71750ee2018-01-23 04:04:28 -0600100 help
101 Value written to PLLC0 Divider 6 register
102
103config SYS_DA850_PLL0_PLLDIV7
104 hex "PLLC0 Divider 7"
Tom Rinid97ca592018-01-31 15:34:49 -0500105 default 0x8005
Adam Ford71750ee2018-01-23 04:04:28 -0600106 help
107 Value written to PLLC0 Divider 7 register
108
109config SYS_DA850_PLL1_POSTDIV
110 hex "PLLC1 PLL Post-Divider"
Tom Rinid97ca592018-01-31 15:34:49 -0500111 default 1
Adam Ford71750ee2018-01-23 04:04:28 -0600112 help
113 Value written to PLLC1 PLL Post-Divider Control Register
114
115config SYS_DA850_PLL1_PLLDIV1
116 hex "PLLC1 Divider 2"
Tom Rinid97ca592018-01-31 15:34:49 -0500117 default 0x8000
Adam Ford71750ee2018-01-23 04:04:28 -0600118 help
119 Value written to PLLC1 Divider 1 register
120
121config SYS_DA850_PLL1_PLLDIV2
122 hex "PLLC1 Divider 2"
Tom Rinid97ca592018-01-31 15:34:49 -0500123 default 0x8001
Adam Ford71750ee2018-01-23 04:04:28 -0600124 help
125 Value written to PLLC1 Divider 2 register
126
127config SYS_DA850_PLL1_PLLDIV3
128 hex "PLLC1 Divider 3"
Tom Rinid97ca592018-01-31 15:34:49 -0500129 default 0x8002
Adam Ford71750ee2018-01-23 04:04:28 -0600130 help
131 Value written to PLLC1 Divider 3 register
132
133endif
134
Masahiro Yamadae604ef92014-08-31 07:11:01 +0900135source "board/davinci/da8xxevm/Kconfig"
David Lechnera67f16f2016-02-26 00:46:07 -0600136source "board/lego/ev3/Kconfig"
Masahiro Yamadae604ef92014-08-31 07:11:01 +0900137
Masahiro Yamadae604ef92014-08-31 07:11:01 +0900138endif