Changeset 34565


Ignore:
Timestamp:
2012-12-06T23:41:09+01:00 (5 years ago)
Author:
florian
Message:

[adm8668] remove the now deprecated /proc/adm8668 interface

Proper gpiolib support is hooked instead.

Signed-off-by: Florian Fainelli <florian@…>

Location:
trunk/target/linux/adm8668/files/arch/mips
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/adm8668/files/arch/mips/adm8668/Makefile

    r34557 r34565  
    33# 
    44 
    5 obj-y           := irq.o prom.o platform.o proc.o \ 
     5obj-y           := irq.o prom.o platform.o gpio.o \ 
    66                   setup.o clock.o time.o early_printk.o \ 
  • trunk/target/linux/adm8668/files/arch/mips/include/asm/mach-adm8668/adm8668.h

    r34561 r34565  
    4747 
    4848/* register access macros */ 
    49 #define ADM8668_LAN_REG(_reg)           \ 
    50         (*((volatile unsigned int *)(KSEG1ADDR(ADM8668_LAN_BASE + (_reg))))) 
    51 #define ADM8668_WAN_REG(_reg)           \ 
    52         (*((volatile unsigned int *)(KSEG1ADDR(ADM8668_WAN_BASE + (_reg))))) 
    53 #define ADM8668_WLAN_REG(_reg)          \ 
    54         (*((volatile unsigned int *)(KSEG1ADDR(ADM8668_WLAN_BASE + (_reg))))) 
    5549#define ADM8668_CONFIG_REG(_reg)        \ 
    5650        (*((volatile unsigned int *)(KSEG1ADDR(ADM8668_CONFIG_BASE + (_reg))))) 
     
    7064#define GPIO_REG                0x5C    /* on WLAN */ 
    7165#define CRGPIO_REG              0x20    /* on CPU */ 
    72 #define GPIO0_OUTPUT_ENABLE     0x1000 
    73 #define GPIO1_OUTPUT_ENABLE     0x2000 
    74 #define GPIO2_OUTPUT_ENABLE     0x4000 
    75 #define GPIO_OUTPUT_ENABLE_ALL  0x7000 
    76 #define GPIO0_OUTPUT_1          0x40 
    77 #define GPIO1_OUTPUT_1          0x80 
    78 #define GPIO2_OUTPUT_1          0x100 
    79 #define GPIO0_INPUT_1           0x1 
    80 #define GPIO1_INPUT_1           0x2 
    81 #define GPIO2_INPUT_1           0x4 
    82  
    83 #define GPIO_SET_HI(num)        \ 
    84         ADM8668_WLAN_REG(GPIO_REG) |= (1 << (6 + num)) 
    85  
    86 #define GPIO_SET_LOW(num)       \ 
    87         ADM8668_WLAN_REG(GPIO_REG) &= ~(1 << (6 + num)) 
    88  
    89 #define GPIO_TOGGLE(num)        \ 
    90         ADM8668_WLAN_REG(GPIO_REG) ^= (1 << (6 + num)) 
    91  
    92 #define CRGPIO_SET_HI(num)      \ 
    93         ADM8668_CONFIG_REG(CRGPIO_REG) |= (1 << (6 + num)) 
    94  
    95 #define CRGPIO_SET_LOW(num)     \ 
    96         ADM8668_CONFIG_REG(CRGPIO_REG) &= ~(1 << (6 + num)) 
    97  
    98 #define CRGPIO_TOGGLE(num)      \ 
    99         ADM8668_CONFIG_REG(CRGPIO_REG) ^= (1 << (6 + num)) 
    10066 
    10167void adm8668_init_clocks(void); 
Note: See TracChangeset for help on using the changeset viewer.