Changeset 8790


Ignore:
Timestamp:
2007-09-16T12:57:29+02:00 (10 years ago)
Author:
florian
Message:

Add support for the D-Link DIR-450, thanks to Macpaul Lin !

Location:
trunk/target/linux/rdc
Files:
4 added
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/rdc/files/drivers/mtd/maps/rdc3210.c

    r8378 r8790  
    4646#endif 
    4747        { name: "bootldr", offset:  0x001F0000, size: 0x00010000 }, 
     48 
     49#elif CONFIG_MTD_RDC3210_SIZE == 0x800000 
     50        { name: "linux",   offset:  0,          size: 0x001F0000 },     /* 1984 KB */ 
     51        { name: "config",  offset:  0x001F0000, size: 0x00010000 },     /*   64 KB */ 
     52        { name: "romfs",   offset:  0x00200000, size: 0x005D0000 },     /* 5952 KB */ 
     53#ifdef CONFIG_MTD_RDC3210_FACTORY_PRESENT 
     54        { name: "factory", offset:  0x007D0000, size: 0x00010000 },     /*   64 KB */ 
     55#endif 
     56        { name: "bootldr", offset:  0x007E0000, size: 0x00010000 },     /*   64 KB */ 
    4857#else 
    4958#error Unsupported configuration! 
     
    190199        rdc3210_map.phys = -rdc3210_map.size; 
    191200        printk(KERN_NOTICE "flash device: %x at %x\n", rdc3210_map.size, rdc3210_map.phys); 
     201 
     202#if CONFIG_MTD_RDC3210_SIZE == 0x800000 
     203        simple_map_init(&rdc3210_map); 
     204#endif 
    192205         
    193206        rdc3210_map.map_priv_1 = (unsigned long)(rdc3210_map.virt = ioremap_nocache(rdc3210_map.phys, rdc3210_map.size)); 
     
    202215        if (rdc3210_mtd)  
    203216        { 
    204                 rdc3210_mtd->module = THIS_MODULE; 
     217                rdc3210_mtd->owner = THIS_MODULE; 
    205218                add_mtd_partitions(rdc3210_mtd, rdc3210_parts, sizeof(rdc3210_parts)/sizeof(rdc3210_parts[0])); 
    206219                return 0; 
Note: See TracChangeset for help on using the changeset viewer.