kernel: add random-omap rng for omap
authorAlexander Couzens <lynxis@fe80.eu>
Thu, 30 Jun 2016 21:49:59 +0000 (23:49 +0200)
committerZoltan HERPAI <wigyori@uid0.hu>
Thu, 30 Jun 2016 21:49:59 +0000 (23:49 +0200)
Kernel module for the OMAP Random Number Generator
found on OMAP16xx, OMAP2/3/4/5 and AM33xx/AM43xx
multimedia processors.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
package/kernel/linux/modules/other.mk

index 528d32f0b782baad4b4fd9eb4723221d84164e89..ef0fbce09a81d2cabc9627e6578cb941eef31aae 100644 (file)
@@ -891,6 +891,21 @@ endef
 
 $(eval $(call KernelPackage,random-core))
 
+define KernelPackage/random-omap
+  SUBMENU:=$(OTHER_MENU)
+  TITLE:=Hardware Random Number Generator OMAP support
+  KCONFIG:=CONFIG_HW_RANDOM_OMAP
+  FILES:=$(LINUX_DIR)/drivers/char/hw_random/omap-rng.ko
+  DEPENDS:=@(TARGET_omap24xx||TARGET_omap) +kmod-random-core
+  AUTOLOAD:=$(call AutoProbe,random-omap)
+endef
+
+define KernelPackage/random-omap/description
+ Kernel module for the OMAP Random Number Generator
+ found on OMAP16xx, OMAP2/3/4/5 and AM33xx/AM43xx multimedia processors.
+endef
+
+$(eval $(call KernelPackage,random-omap))
 
 define KernelPackage/thermal
   SUBMENU:=$(OTHER_MENU)