};
static struct platform_device device_nand = {
- .name = "rk30xxnand",
+ .name = "rk29xxnand",
.id = -1,
.resource = resources_nand,
.num_resources = ARRAY_SIZE(resources_nand),
RK NAND Device Support \r
if MTD_RKNAND \r
\r
-config MTD_NAND_RK\r
+config MTD_NAND_RK29XX \r
tristate "RK on-chip NAND Flash Controller driver with FTL" \r
depends on MTD_RKNAND \r
default y \r
default n\r
help \r
\r
-config MTD_NAND_RK_DEBUG \r
+config MTD_NAND_RK29XX_DEBUG \r
tristate "RK Nand driver debug enables"\r
depends on MTD_RKNAND \r
default n \r
help \r
\r
-config MTD_NAND_RK_DEBUG_VERBOSE \r
+config MTD_NAND_RK29XX_DEBUG_VERBOSE \r
int "Debugging verbosity (0 = quiet, 3 = noisy)" \r
depends on MTD_NAND_RK29XX_DEBUG \r
default "0" \r
#\r
# $Id: Makefile,v 1.3 2011/01/21 10:12:56 Administrator Exp $\r
#\r
-obj-$(CONFIG_MTD_NAND_RK) += rknand_base_ko.o \r
+obj-$(CONFIG_MTD_NAND_RK29XX) += rknand_base_ko.o \r
#obj-$(CONFIG_MTD_RKNAND_BUFFER) += rk30xxnand_ko.o\r
\r
\r
//#include "api_flash.h"\r
#include "rknand_base.h"\r
\r
-#ifdef CONFIG_ARCH_RK30\r
-#define DRIVER_NAME "rk30xxnand"\r
-#endif\r
-\r
-#ifdef CONFIG_ARCH_RK29\r
#define DRIVER_NAME "rk29xxnand"\r
-#endif\r
\r
const char rknand_base_version[] = "rknand_base.c version: 4.32 20120103";\r
#define NAND_DEBUG_LEVEL0 0\r
struct mtd_partition *rknand_parts;\r
struct rknand_info * gpNandInfo;\r
\r
-#ifdef CONFIG_MTD_NAND_RK_DEBUG\r
-static int s_debug = CONFIG_MTD_NAND_RK_DEBUG_VERBOSE;\r
+#ifdef CONFIG_MTD_NAND_RK29XX_DEBUG\r
+static int s_debug = CONFIG_MTD_NAND_RK29XX_DEBUG_VERBOSE;\r
#undef NAND_DEBUG\r
#define NAND_DEBUG(n, format, arg...) \\r
if (n <= s_debug) { \\r