diff options
author | John Crispin <blogic@openwrt.org> | 2007-12-22 00:17:22 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2007-12-22 00:17:22 +0000 |
commit | 51214d11d0a062ff04b411fa23f68af255d5aa8d (patch) | |
tree | 5cbccb18ba7f7e69ebb39b38b2e2fc0ce2b907ed /target/linux/ifxmips/files/drivers/mtd/maps/danube.c | |
parent | 7ff22aaceefd070419e603227ec56e51f2e40200 (diff) | |
download | master-187ad058-51214d11d0a062ff04b411fa23f68af255d5aa8d.tar.gz master-187ad058-51214d11d0a062ff04b411fa23f68af255d5aa8d.tar.bz2 master-187ad058-51214d11d0a062ff04b411fa23f68af255d5aa8d.zip |
change danube 2 ifxmips
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9821 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ifxmips/files/drivers/mtd/maps/danube.c')
-rw-r--r-- | target/linux/ifxmips/files/drivers/mtd/maps/danube.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/target/linux/ifxmips/files/drivers/mtd/maps/danube.c b/target/linux/ifxmips/files/drivers/mtd/maps/danube.c index 25e9df3de8..46ab528948 100644 --- a/target/linux/ifxmips/files/drivers/mtd/maps/danube.c +++ b/target/linux/ifxmips/files/drivers/mtd/maps/danube.c @@ -1,5 +1,5 @@ /* - * Driver for DANUBE flashmap + * Driver for IFXMIPS flashmap * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -34,7 +34,7 @@ static struct map_info danube_map = { - .name = "DANUBE_FLASH", + .name = "IFXMIPS_FLASH", .bankwidth = 2, .size = 0x400000, }; @@ -108,8 +108,8 @@ danube_partitions[4] = { }, }; -#define DANUBE_FLASH_START 0x10000000 -#define DANUBE_FLASH_MAX 0x2000000 +#define IFXMIPS_FLASH_START 0x10000000 +#define IFXMIPS_FLASH_MAX 0x2000000 int find_uImage_size (unsigned long start_offset){ @@ -136,16 +136,16 @@ init_danube_mtd (void) struct mtd_partition *parts = NULL; unsigned long uimage_size; - writel(0x1d7ff, DANUBE_EBU_BUSCON0); + writel(0x1d7ff, IFXMIPS_EBU_BUSCON0); danube_map.read = danube_read16; danube_map.write = danube_write16; danube_map.copy_from = danube_copy_from; danube_map.copy_to = danube_copy_to; - danube_map.phys = DANUBE_FLASH_START; - danube_map.virt = ioremap_nocache(DANUBE_FLASH_START, DANUBE_FLASH_MAX); - danube_map.size = DANUBE_FLASH_MAX; + danube_map.phys = IFXMIPS_FLASH_START; + danube_map.virt = ioremap_nocache(IFXMIPS_FLASH_START, IFXMIPS_FLASH_MAX); + danube_map.size = IFXMIPS_FLASH_MAX; if (!danube_map.virt) { printk(KERN_WARNING "Failed to ioremap!\n"); return -EIO; @@ -191,4 +191,4 @@ module_exit (cleanup_danube_mtd); MODULE_LICENSE ("GPL"); MODULE_AUTHOR ("John Crispin <blogic@openwrt.org>"); -MODULE_DESCRIPTION ("MTD map driver for DANUBE boards"); +MODULE_DESCRIPTION ("MTD map driver for IFXMIPS boards"); |