Changeset 27488


Ignore:
Timestamp:
2011-07-06T12:36:47+02:00 (7 years ago)
Author:
blogic
Message:

add support for gigaset SX76X to uboot-lantiq

Location:
trunk/package/uboot-lantiq
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/uboot-lantiq/Makefile

    r27487 r27488  
    4545DDR_CONFIG_easy50712_DDR166M_ramboot:=easy50712_DDR166M 
    4646DDR_CONFIG_easy50812_DDR166M_ramboot:=easy50812 
     47 
     48#Siemens 
     49Package/uboot-lantiq-gigaSX76X_DDRsamsung166=$(call Package/uboot-lantiq-template,gigaSX76X_DDRsamsung166,NOR) 
    4750 
    4851#Arcadyan 
     
    138141$(eval $(call BuildPackage,uboot-lantiq-easy50812_DDR166M)) 
    139142$(eval $(call BuildPackage,uboot-lantiq-easy50812_DDR166M_ramboot)) 
     143$(eval $(call BuildPackage,uboot-lantiq-gigaSX76X_DDRsamsung166)) 
    140144#$(eval $(call BuildPackage,uboot-lantiq-arv3527P_flash)) 
    141145#$(eval $(call BuildPackage,uboot-lantiq-arv3527P_brnboot)) 
  • trunk/package/uboot-lantiq/files/board/infineon/easy50712/danube.c

    r20610 r27488  
    181181        { 
    182182        case 0x129: 
     183        case 0x12B: 
    183184        case 0x12D: 
    184185                puts("Danube/Twinpass/Vinax-VE "); 
     
    234235        static char * const name = "lq_cpe_eth"; 
    235236 
     237#ifdef CONFIG_SWITCH_PORT0 
     238        *DANUBE_GPIO_P0_ALTSEL0 &= ~(1<<CONFIG_SWITCH_PIN); 
     239        *DANUBE_GPIO_P0_ALTSEL1 &= ~(1<<CONFIG_SWITCH_PIN); 
     240        *DANUBE_GPIO_P0_OD |= (1<<CONFIG_SWITCH_PIN); 
     241        *DANUBE_GPIO_P0_DIR |= (1<<CONFIG_SWITCH_PIN); 
     242        *DANUBE_GPIO_P0_OUT |= (1<<CONFIG_SWITCH_PIN); 
     243#elif defined(CONFIG_SWITCH_PORT1) 
     244        *DANUBE_GPIO_P1_ALTSEL0 &= ~(1<<CONFIG_SWITCH_PIN); 
     245        *DANUBE_GPIO_P1_ALTSEL1 &= ~(1<<CONFIG_SWITCH_PIN); 
     246        *DANUBE_GPIO_P1_OD |= (1<<CONFIG_SWITCH_PIN); 
     247        *DANUBE_GPIO_P1_DIR |= (1<<CONFIG_SWITCH_PIN); 
     248        *DANUBE_GPIO_P1_OUT |= (1<<CONFIG_SWITCH_PIN); 
     249#endif 
    236250#ifdef CLK_OUT2_25MHZ 
    237251        *DANUBE_GPIO_P0_DIR=0x0000ae78; 
     
    246260        udelay(100000); 
    247261 
    248         debug("\nsearching for Samurai switch ... "); 
     262        printf("\nsearching for Samurai switch ... "); 
    249263        if ( (miiphy_read(name, PHYADDR(SAMURAI_ID_REG0), &chipid0)==0) && 
    250264             (miiphy_read(name, PHYADDR(SAMURAI_ID_REG1), &chipid1)==0) ) { 
    251265                if (((chipid0 & 0xFFF0) == ID_SAMURAI_0) && 
    252266                    ((chipid1 & 0x000F) == ID_SAMURAI_1)) { 
    253                         debug("found"); 
     267                        printf("found"); 
    254268 
    255269                        /* enable "Crossover Auto Detect" + defaults */ 
     
    275289        } 
    276290 
    277         debug("\nsearching for TANTOS switch ... "); 
     291        printf("%04X %04x\n", chipid0, chipid1); 
     292        printf("\nsearching for TANTOS switch ... "); 
    278293        if (miiphy_read(name, PHYADDR(0x101), &chipid0) == 0) { 
    279294                if (chipid0 == ID_TANTOS) { 
    280                         debug("found"); 
     295                        printf("found"); 
    281296 
    282297                        /* P5 Basic Control: Force Link Up */ 
     
    316331#endif /* CONFIG_EXTRA_SWITCH */ 
    317332 
     333int board_gpio_init(void) 
     334{ 
     335#ifdef CONFIG_BUTTON_PORT0 
     336        *DANUBE_GPIO_P0_ALTSEL0 &= ~(1<<CONFIG_BUTTON_PIN); 
     337        *DANUBE_GPIO_P0_ALTSEL1 &= ~(1<<CONFIG_BUTTON_PIN); 
     338        *DANUBE_GPIO_P0_DIR &= ~(1<<CONFIG_BUTTON_PIN); 
     339        if(!!(*DANUBE_GPIO_P0_IN & (1<<CONFIG_BUTTON_PIN)) == CONFIG_BUTTON_LEVEL) 
     340        { 
     341                printf("button is pressed\n"); 
     342                setenv("bootdelay", "0"); 
     343                setenv("bootcmd", "httpd"); 
     344        } 
     345#elif defined(CONFIG_BUTTON_PORT1) 
     346        *DANUBE_GPIO_P1_ALTSEL0 &= ~(1<<CONFIG_BUTTON_PIN); 
     347        *DANUBE_GPIO_P1_ALTSEL1 &= ~(1<<CONFIG_BUTTON_PIN); 
     348        *DANUBE_GPIO_P1_DIR &= ~(1<<CONFIG_BUTTON_PIN); 
     349        if(!!(*DANUBE_GPIO_P1_IN & (1<<CONFIG_BUTTON_PIN)) == CONFIG_BUTTON_LEVEL) 
     350        { 
     351                printf("button is pressed\n"); 
     352                setenv("bootdelay", "0"); 
     353                setenv("bootcmd", "httpd"); 
     354        } 
     355#endif 
     356} 
     357 
    318358int board_eth_init(bd_t *bis) 
    319359{ 
     360 
     361        board_gpio_init(); 
     362 
    320363#if defined(CONFIG_IFX_ETOP) 
    321364 
  • trunk/package/uboot-lantiq/files/include/configs/ifx-common.h

    r27487 r27488  
    187187#define CONFIG_SKIP_LOWLEVEL_INIT 
    188188#define CONFIG_BOOTSTRAP_LZMA 
    189 #define CONFIG_BOOTSTRAP_SERIAL 
     189//#define CONFIG_BOOTSTRAP_SERIAL 
    190190#endif 
    191191 
Note: See TracChangeset for help on using the changeset viewer.