xref: /openbmc/linux/arch/arm/mach-ixp4xx/Kconfig (revision c8f59a1f)
1# SPDX-License-Identifier: GPL-2.0-only
2if ARCH_IXP4XX
3
4menu "Intel IXP4xx Implementation Options"
5
6comment "IXP4xx Platforms"
7
8config MACH_IXP4XX_OF
9	bool
10	prompt "Device Tree IXP4xx boards"
11	default y
12	select ARM_APPENDED_DTB # Old Redboot bootloaders deployed
13	select I2C
14	select I2C_IOP3XX
15	select PCI
16	select USE_OF
17	help
18	  Say 'Y' here to support Device Tree-based IXP4xx platforms.
19
20config MACH_GORAMO_MLR
21	bool "GORAMO Multi Link Router"
22	depends on IXP4XX_PCI_LEGACY
23	help
24	  Say 'Y' here if you want your kernel to support GORAMO
25	  MultiLink router.
26
27config ARCH_PRPMC1100
28	bool "PrPMC1100"
29	help
30	  Say 'Y' here if you want your kernel to support the Motorola
31	  PrPCM1100 Processor Mezanine Module. For more information on
32	  this platform, see <file:Documentation/arm/ixp4xx.rst>.
33
34comment "IXP4xx Options"
35
36config IXP4XX_PCI_LEGACY
37	bool "IXP4xx legacy PCI driver support"
38	depends on PCI
39	help
40	  Selects legacy PCI driver.
41	  Not recommended for new development.
42
43config IXP4XX_INDIRECT_PCI
44	bool "Use indirect PCI memory access"
45	depends on IXP4XX_PCI_LEGACY
46	help
47          IXP4xx provides two methods of accessing PCI memory space:
48
49          1) A direct mapped window from 0x48000000 to 0x4BFFFFFF (64MB).
50             To access PCI via this space, we simply ioremap() the BAR
51             into the kernel and we can use the standard read[bwl]/write[bwl]
52             macros. This is the preferred method due to speed but it
53             limits the system to just 64MB of PCI memory. This can be
54             problematic if using video cards and other memory-heavy devices.
55
56	  2) If > 64MB of memory space is required, the IXP4xx can be
57	     configured to use indirect registers to access the whole PCI
58	     memory space. This currently allows for up to 1 GB (0x10000000
59	     to 0x4FFFFFFF) of memory on the bus. The disadvantage of this
60	     is that every PCI access requires three local register accesses
61	     plus a spinlock, but in some cases the performance hit is
62	     acceptable. In addition, you cannot mmap() PCI devices in this
63	     case due to the indirect nature of the PCI window.
64
65	  By default, the direct method is used. Choose this option if you
66	  need to use the indirect method instead. If you don't know
67	  what you need, leave this option unselected.
68
69endmenu
70
71endif
72