Changeset 32946


Ignore:
Timestamp:
2012-08-02T11:54:41+02:00 (6 years ago)
Author:
juhosg
Message:

ar71xx: image: stop the switch from the lzma-loader on the TL-WR1043ND

Location:
trunk/target/linux/ar71xx/image/lzma-loader/src
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/image/lzma-loader/src/board.c

    r29443 r32946  
    1111#include <stddef.h> 
    1212#include "config.h" 
     13#include "ar71xx_regs.h" 
    1314 
    1415#define READREG(r)      *(volatile unsigned int *)(r) 
    1516#define WRITEREG(r,v)   *(volatile unsigned int *)(r) = v 
     17 
     18#define KSEG1ADDR(_x)   (((_x) & 0x1fffffff) | 0xa0000000) 
    1619 
    1720#define UART_BASE       0xb8020000 
     
    3235} 
    3336 
     37#ifdef CONFIG_BOARD_TL_WR1043ND_V1 
     38static void tlwr1043nd_init(void) 
     39{ 
     40        unsigned int reg = KSEG1ADDR(AR71XX_RESET_BASE); 
     41        unsigned int t; 
     42 
     43        t = READREG(reg + AR913X_RESET_REG_RESET_MODULE); 
     44        t |= AR71XX_RESET_GE0_PHY; 
     45        WRITEREG(reg + AR913X_RESET_REG_RESET_MODULE, t); 
     46        /* flush write */ 
     47        t = READREG(reg + AR913X_RESET_REG_RESET_MODULE); 
     48} 
     49#else 
     50static inline void tlwr1043nd_init(void) {} 
     51#endif 
     52 
    3453void board_init(void) 
    3554{ 
     55        tlwr1043nd_init(); 
    3656} 
Note: See TracChangeset for help on using the changeset viewer.