Changeset 18671


Ignore:
Timestamp:
2009-12-06T10:08:03+01:00 (7 years ago)
Author:
florian
Message:

[rdc] correct flash size and detection for sitecom targets (#6278), patch from rtz

Location:
trunk/target/linux/rdc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/rdc/files-2.6.30/arch/x86/mach-rdc321x/platform.c

    r18347 r18671  
    162162        ROOT_DEV = 0; 
    163163        rdc_map_info.name = rdc_flash_device.name; 
    164         rdc_map_info.phys = 0xff000000; 
    165         rdc_map_info.size = 0x1000000; 
     164        rdc_map_info.size = 0x800000;   //8MB 
     165        rdc_map_info.phys = (u32) -rdc_map_info.size; 
    166166        rdc_map_info.bankwidth = 2; 
    167167        rdc_map_info.set_vpp = NULL; 
    168168        simple_map_init(&rdc_map_info); 
    169169        while (probe_flash_start(&rdc_map_info)) { 
    170                 rdc_map_info.phys++; 
    171                 if (--rdc_map_info.size) 
     170                if (rdc_map_info.size /= 2 < 0x100000)  //1MB 
    172171                        panic("Could not find start of flash!"); 
     172                rdc_map_info.phys = (u32) -rdc_map_info.size; 
    173173        } 
    174174        rdc_flash_resource.start = rdc_map_info.phys; 
  • trunk/target/linux/rdc/sitecom/config-2.6.30

    r18576 r18671  
    1 # CONFIG_MTD_PHYSMAP is not set 
    21# CONFIG_MTD_R8610 is not set 
    32# CONFIG_MTD_RDC3210 is not set 
Note: See TracChangeset for help on using the changeset viewer.