Commit d036dc79 authored by Michael Ellerman's avatar Michael Ellerman
Browse files

powerpc: Add generic PAGE_SIZE config symbols



Other arches (sh, mips, hexagon) use standard names for PAGE_SIZE
related config symbols.

Add matching symbols for powerpc, which are enabled by default but
depend on our architecture specific PAGE_SIZE symbols.

This allows generic/driver code to express dependencies on the PAGE_SIZE
without needing to refer to architecture specific config symbols.

Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220505125123.2088143-1-mpe@ellerman.id.au
parent 657ac633
Loading
Loading
Loading
Loading
+16 −0
Original line number Original line Diff line number Diff line
@@ -759,6 +759,22 @@ config PPC_256K_PAGES


endchoice
endchoice


config PAGE_SIZE_4KB
	def_bool y
	depends on PPC_4K_PAGES

config PAGE_SIZE_16KB
	def_bool y
	depends on PPC_16K_PAGES

config PAGE_SIZE_64KB
	def_bool y
	depends on PPC_64K_PAGES

config PAGE_SIZE_256KB
	def_bool y
	depends on PPC_256K_PAGES

config PPC_PAGE_SHIFT
config PPC_PAGE_SHIFT
	int
	int
	default 18 if PPC_256K_PAGES
	default 18 if PPC_256K_PAGES