menuconfig ION
	bool "Ion Memory Manager"
	depends on HAVE_MEMBLOCK
	select GENERIC_ALLOCATOR
	select DMA_SHARED_BUFFER
	---help---
	  Chose this option to enable the ION Memory Manager,
	  used by Android to efficiently allocate buffers
	  from userspace that can be shared between drivers.
	  If you're not using Android its probably safe to
	  say N here.

config ION_TEST
	tristate "Ion Test Device"
	depends on ION
	help
	  Choose this option to create a device that can be used to test the
	  kernel and device side ION functions.

config ION_DUMMY
	bool "Dummy Ion driver"
	depends on ION
	help
	  Provides a dummy ION driver that registers the
	  /dev/ion device and some basic heaps. This can
	  be used for testing the ION infrastructure if
	  one doesn't have access to hardware drivers that
	  use ION.

config ION_TEGRA
	tristate "Ion for Tegra"
	depends on ARCH_TEGRA && ION
	help
	  Choose this option if you wish to use ion on an nVidia Tegra.

config ION_ROCKCHIP
	tristate "Ion for Rockchip"
	depends on ARCH_ROCKCHIP && ION
	select ARM_HAS_SG_CHAIN
	help
	  Choose this option if you wish to use ion on an Rockchip.

if ION_ROCKCHIP

config ION_CMA_HIGHMEM
	bool "CMA Support HighMem Zone"
	depends on ION_ROCKCHIP && CMA
	help
	  Choose this option to support CMA regions placed in highmem zone.
	  This will allocate memory from CMA regions without mapping.

config ION_ROCKCHIP_SNAPSHOT
	bool "Snapshot for rockchip ion"
	depends on ION_ROCKCHIP
	help
	  Provide ion snapshot for debug

config ION_SNAPSHOT_BUF_SHIFT
	int "ION snapshot buffer size (18 => 256KB, 19 => 512KB)"
	depends on ION_ROCKCHIP_SNAPSHOT
	range 12 21
	default 18
	help
	  Select ION snapshot buffer size as a power of 2

endif
