drivers: rk_nand: move inline function from asm code to c code

move inline function "copy_from_user" and "copy_to_user" from
rk_ftl_arm_v8.S to rk_nand_base.c

Change-Id: Ibac121c2ef04357d1abb35c4dd225bd424503e02
Signed-off-by: Zhaoyifeng <zyf@rock-chips.com>
This commit is contained in:
Zhaoyifeng
2016-09-12 16:35:32 +08:00
committed by Huang, Tao
parent 8cbb943c4c
commit b7360d18c3
2 changed files with 3511 additions and 3650 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -17,6 +17,7 @@
#include <asm/cacheflush.h>
#include <linux/platform_device.h>
#include <linux/clk.h>
#include <linux/uaccess.h>
#ifdef CONFIG_OF
#include <linux/of.h>
#endif
@@ -129,6 +130,18 @@ int rknand_get_boot_media(void)
}
EXPORT_SYMBOL(rknand_get_boot_media);
unsigned long rk_copy_from_user(void *to, const void __user *from,
unsigned long n)
{
return copy_from_user(to, from, n);
}
unsigned long rk_copy_to_user(void __user *to, const void *from,
unsigned long n)
{
return copy_to_user(to, from, n);
}
int rk_nand_schedule_enable_config(int en)
{
int tmp = rk_nand_wait_busy_schedule;