Changeset 9134


Ignore:
Timestamp:
2007-10-05T12:38:33+02:00 (10 years ago)
Author:
florian
Message:

Backport the routerboad detection to 7.09

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/kamikaze_7.09/target/linux/rb532-2.6/files/arch/mips/rb500/prom.c

    r7273 r9134  
    4343unsigned int idt_cpu_freq = 132000000; 
    4444EXPORT_SYMBOL(idt_cpu_freq); 
    45 unsigned int board_type = 500; 
     45char board_type[11]; 
    4646EXPORT_SYMBOL(board_type); 
    4747unsigned int gpio_bootup_state = 0; 
     
    104104} 
    105105 
    106 void prom_free_prom_memory(void) 
     106void __init prom_free_prom_memory(void) 
    107107{ 
    108         /* FIXME: STUB */ 
     108        /* No prom memory to free */ 
    109109} 
    110110 
     
    136136#endif 
    137137                if (i>0) *(cp++) = ' '; 
     138 
    138139                if (strncmp(prom_argv[i], BOARD_TAG, sizeof(BOARD_TAG) - 1) == 0) { 
    139                         board_type =  simple_strtoul(prom_argv[i] + sizeof(BOARD_TAG) - 1, 0, 10); 
     140                        strcpy(board_type, prom_argv[i] + sizeof(BOARD_TAG) -1); 
    140141                } 
    141142                if (strncmp(prom_argv[i], GPIO_TAG, sizeof(GPIO_TAG) - 1) == 0) { 
Note: See TracChangeset for help on using the changeset viewer.