xref: /linux/arch/powerpc/platforms/8xx/Kconfig (revision 3a39d672e7f48b8d6b91a09afa4b55352773b4b5)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2df34403dSVitaly Bordugconfig CPM1
3df34403dSVitaly Bordug	bool
4c374e00eSScott Wood	select CPM
5df34403dSVitaly Bordug
614cf11afSPaul Mackerraschoice
714cf11afSPaul Mackerras	prompt "8xx Machine Type"
8c8a55f3dSKumar Gala	depends on PPC_8xx
9df34403dSVitaly Bordug	default MPC885ADS
1014cf11afSPaul Mackerras
1114cf11afSPaul Mackerrasconfig MPC8XXFADS
1214cf11afSPaul Mackerras	bool "FADS"
1314cf11afSPaul Mackerras
1414cf11afSPaul Mackerrasconfig MPC86XADS
1514cf11afSPaul Mackerras	bool "MPC86XADS"
16df34403dSVitaly Bordug	select CPM1
1714cf11afSPaul Mackerras	help
1814cf11afSPaul Mackerras	  MPC86x Application Development System by Freescale Semiconductor.
1914cf11afSPaul Mackerras	  The MPC86xADS is meant to serve as a platform for s/w and h/w
2014cf11afSPaul Mackerras	  development around the MPC86X processor families.
2114cf11afSPaul Mackerras
2214cf11afSPaul Mackerrasconfig MPC885ADS
2314cf11afSPaul Mackerras	bool "MPC885ADS"
24df34403dSVitaly Bordug	select CPM1
250f22dd39SGrant Likely	select OF_DYNAMIC
2614cf11afSPaul Mackerras	help
2714cf11afSPaul Mackerras	  Freescale Semiconductor MPC885 Application Development System (ADS).
2814cf11afSPaul Mackerras	  Also known as DUET.
2914cf11afSPaul Mackerras	  The MPC885ADS is meant to serve as a platform for s/w and h/w
3014cf11afSPaul Mackerras	  development around the MPC885 processor family.
3114cf11afSPaul Mackerras
3211c146ccSScott Woodconfig PPC_EP88XC
3311c146ccSScott Wood	bool "Embedded Planet EP88xC (a.k.a. CWH-PPC-885XN-VE)"
3411c146ccSScott Wood	select CPM1
3511c146ccSScott Wood	help
3611c146ccSScott Wood	  This enables support for the Embedded Planet EP88xC board.
3711c146ccSScott Wood
3811c146ccSScott Wood	  This board is also resold by Freescale as the QUICCStart
3911c146ccSScott Wood	  MPC885 Evaluation System and/or the CWH-PPC-885XN-VE.
4011c146ccSScott Wood
41b09c1644SScott Woodconfig PPC_ADDER875
42b09c1644SScott Wood	bool "Analogue & Micro Adder 875"
43b09c1644SScott Wood	select CPM1
44b09c1644SScott Wood	help
45b09c1644SScott Wood	  This enables support for the Analogue & Micro Adder 875
46b09c1644SScott Wood	  board.
47b09c1644SScott Wood
48c4b6a776SHeiko Schocherconfig TQM8XX
49c4b6a776SHeiko Schocher	bool "TQM8XX"
50c4b6a776SHeiko Schocher	select CPM1
51c4b6a776SHeiko Schocher	help
52c4b6a776SHeiko Schocher	  support for the mpc8xx based boards from TQM.
53c4b6a776SHeiko Schocher
54df34403dSVitaly Bordugendchoice
55df34403dSVitaly Bordug
56df34403dSVitaly Bordugmenu "Freescale Ethernet driver platform-specific options"
57df34403dSVitaly Bordug	depends on (FS_ENET && MPC885ADS)
58df34403dSVitaly Bordug
59df34403dSVitaly Bordug	config MPC8xx_SECOND_ETH
60df34403dSVitaly Bordug	bool "Second Ethernet channel"
61df34403dSVitaly Bordug	depends on MPC885ADS
62df34403dSVitaly Bordug	default y
6314cf11afSPaul Mackerras	help
64df34403dSVitaly Bordug	  This enables support for second Ethernet on MPC885ADS and MPC86xADS boards.
65df34403dSVitaly Bordug	  The latter will use SCC1, for 885ADS you can select it below.
6614cf11afSPaul Mackerras
67df34403dSVitaly Bordug	choice
68df34403dSVitaly Bordug		prompt "Second Ethernet channel"
69df34403dSVitaly Bordug		depends on MPC8xx_SECOND_ETH
70df34403dSVitaly Bordug		default MPC8xx_SECOND_ETH_FEC2
71df34403dSVitaly Bordug
72df34403dSVitaly Bordug		config MPC8xx_SECOND_ETH_FEC2
73df34403dSVitaly Bordug		bool "FEC2"
74df34403dSVitaly Bordug		depends on MPC885ADS
7514cf11afSPaul Mackerras		help
76df34403dSVitaly Bordug		  Enable FEC2 to serve as 2-nd Ethernet channel. Note that SMC2
77df34403dSVitaly Bordug		  (often 2-nd UART) will not work if this is enabled.
7814cf11afSPaul Mackerras
79df34403dSVitaly Bordug		config MPC8xx_SECOND_ETH_SCC3
80df34403dSVitaly Bordug		bool "SCC3"
81df34403dSVitaly Bordug		depends on MPC885ADS
8214cf11afSPaul Mackerras		help
83df34403dSVitaly Bordug		  Enable SCC3 to serve as 2-nd Ethernet channel. Note that SMC1
84df34403dSVitaly Bordug		  (often 1-nd UART) will not work if this is enabled.
8514cf11afSPaul Mackerras
8614cf11afSPaul Mackerras	endchoice
8714cf11afSPaul Mackerras
88df34403dSVitaly Bordugendmenu
89df34403dSVitaly Bordug
9014cf11afSPaul Mackerras#
9114cf11afSPaul Mackerras# MPC8xx Communication options
9214cf11afSPaul Mackerras#
9314cf11afSPaul Mackerras
9414cf11afSPaul Mackerrasmenu "MPC8xx CPM Options"
95ab2675d6SChristophe Leroy	depends on PPC_8xx
9614cf11afSPaul Mackerras
9714cf11afSPaul Mackerras# This doesn't really belong here, but it is convenient to ask
9814cf11afSPaul Mackerras# 8xx specific questions.
9914cf11afSPaul Mackerrascomment "Generic MPC8xx Options"
10014cf11afSPaul Mackerras
101dc2380ecSJochen Friedrichconfig 8xx_GPIO
102dc2380ecSJochen Friedrich	bool "GPIO API Support"
10386c55af4SLinus Walleij	select GPIOLIB
104a99cc668SArnd Bergmann	select OF_GPIO_MM_GPIOCHIP
105dc2380ecSJochen Friedrich	help
106dc2380ecSJochen Friedrich	  Saying Y here will cause the ports on an MPC8xx processor to be used
107dc2380ecSJochen Friedrich	  with the GPIO API.  If you say N here, the kernel needs less memory.
108dc2380ecSJochen Friedrich
109dc2380ecSJochen Friedrich	  If in doubt, say Y here.
110dc2380ecSJochen Friedrich
11174016852SScott Woodconfig 8xx_CPU15
11274016852SScott Wood	bool "CPU15 Silicon Errata"
1134b914286SChristophe Leroy	depends on !HUGETLB_PAGE
11474016852SScott Wood	default y
11574016852SScott Wood	help
11674016852SScott Wood	  This enables a workaround for erratum CPU15 on MPC8xx chips.
11774016852SScott Wood	  This bug can cause incorrect code execution under certain
11874016852SScott Wood	  circumstances.  This workaround adds some overhead (a TLB miss
11974016852SScott Wood	  every time execution crosses a page boundary), and you may wish
12074016852SScott Wood	  to disable it if you have worked around the bug in the compiler
12174016852SScott Wood	  (by not placing conditional branches or branches to LR or CTR
12274016852SScott Wood	  in the last word of a page, with a target of the last cache
12374016852SScott Wood	  line in the next page), or if you have used some other
12474016852SScott Wood	  workaround.
12574016852SScott Wood
12674016852SScott Wood	  If in doubt, say Y here.
12774016852SScott Wood
12814cf11afSPaul Mackerraschoice
12914cf11afSPaul Mackerras	prompt "Microcode patch selection"
13014cf11afSPaul Mackerras	default NO_UCODE_PATCH
13114cf11afSPaul Mackerras	help
13214cf11afSPaul Mackerras	  Help not implemented yet, coming soon.
13314cf11afSPaul Mackerras
13414cf11afSPaul Mackerrasconfig NO_UCODE_PATCH
13514cf11afSPaul Mackerras	bool "None"
13614cf11afSPaul Mackerras
13714cf11afSPaul Mackerrasconfig USB_SOF_UCODE_PATCH
13814cf11afSPaul Mackerras	bool "USB SOF patch"
13914cf11afSPaul Mackerras	help
14014cf11afSPaul Mackerras	  Help not implemented yet, coming soon.
14114cf11afSPaul Mackerras
14214cf11afSPaul Mackerrasconfig I2C_SPI_UCODE_PATCH
14314cf11afSPaul Mackerras	bool "I2C/SPI relocation patch"
14414cf11afSPaul Mackerras	help
14514cf11afSPaul Mackerras	  Help not implemented yet, coming soon.
14614cf11afSPaul Mackerras
14714cf11afSPaul Mackerrasconfig I2C_SPI_SMC1_UCODE_PATCH
14814cf11afSPaul Mackerras	bool "I2C/SPI/SMC1 relocation patch"
14914cf11afSPaul Mackerras	help
15014cf11afSPaul Mackerras	  Help not implemented yet, coming soon.
15114cf11afSPaul Mackerras
15243db76f4SChristophe Leroyconfig SMC_UCODE_PATCH
15343db76f4SChristophe Leroy	bool "SMC relocation patch"
15443db76f4SChristophe Leroy	help
15543db76f4SChristophe Leroy	  This microcode relocates SMC1 and SMC2 parameter RAMs at
15643db76f4SChristophe Leroy	  offset 0x1ec0 and 0x1fc0 to allow extended parameter RAM
15743db76f4SChristophe Leroy	  for SCC3 and SCC4.
15843db76f4SChristophe Leroy
15914cf11afSPaul Mackerrasendchoice
16014cf11afSPaul Mackerras
16114cf11afSPaul Mackerrasconfig UCODE_PATCH
16214cf11afSPaul Mackerras	bool
16314cf11afSPaul Mackerras	default y
16414cf11afSPaul Mackerras	depends on !NO_UCODE_PATCH
16514cf11afSPaul Mackerras
1665d465669SChristophe Leroymenu "8xx advanced setup"
1675d465669SChristophe Leroy	depends on PPC_8xx
1685d465669SChristophe Leroy
1695d465669SChristophe Leroyconfig PIN_TLB
1705d465669SChristophe Leroy	bool "Pinned Kernel TLBs"
171fcdafd10SChristophe Leroy	depends on ADVANCED_OPTIONS
1725d465669SChristophe Leroy	help
1735d465669SChristophe Leroy	  On the 8xx, we have 32 instruction TLBs and 32 data TLBs. In each
1745d465669SChristophe Leroy	  table 4 TLBs can be pinned.
1755d465669SChristophe Leroy
1765d465669SChristophe Leroy	  It reduces the amount of usable TLBs to 28 (ie by 12%). That's the
1775d465669SChristophe Leroy	  reason why we make it selectable.
1785d465669SChristophe Leroy
1795d465669SChristophe Leroy	  This option does nothing, it just activate the selection of what
1805d465669SChristophe Leroy	  to pin.
1815d465669SChristophe Leroy
1825d465669SChristophe Leroyconfig PIN_TLB_DATA
1835d465669SChristophe Leroy	bool "Pinned TLB for DATA"
1845d465669SChristophe Leroy	depends on PIN_TLB
1855d465669SChristophe Leroy	default y
1865d465669SChristophe Leroy	help
1875d465669SChristophe Leroy	  This pins the first 32 Mbytes of memory with 8M pages.
1885d465669SChristophe Leroy
1895d465669SChristophe Leroyconfig PIN_TLB_IMMR
1905d465669SChristophe Leroy	bool "Pinned TLB for IMMR"
191136a9a0fSChristophe Leroy	depends on PIN_TLB
1925d465669SChristophe Leroy	default y
1935d465669SChristophe Leroy	help
1945d465669SChristophe Leroy	  This pins the IMMR area with a 512kbytes page. In case
1955d465669SChristophe Leroy	  CONFIG_PIN_TLB_DATA is also selected, it will reduce
1965d465669SChristophe Leroy	  CONFIG_PIN_TLB_DATA to 24 Mbytes.
1975d465669SChristophe Leroy
198*1a736d98SChristophe Leroyconfig PIN_TLB_TEXT
199*1a736d98SChristophe Leroy	bool "Pinned TLB for TEXT"
200*1a736d98SChristophe Leroy	depends on PIN_TLB
201*1a736d98SChristophe Leroy	default y
202*1a736d98SChristophe Leroy	help
203*1a736d98SChristophe Leroy	  This pins kernel text with 8M pages.
204*1a736d98SChristophe Leroy
2055d465669SChristophe Leroyendmenu
2065d465669SChristophe Leroy
20714cf11afSPaul Mackerrasendmenu
208