#ifndef _mach_avm_h_ #define _mach_avm_h_ #include #include #if !defined(CONFIG_SOC_GRX500_BOOTCORE) #include #endif /*------------------------------------------------------------------------------------------*\ * VIRIAN VIRIAN VIRIAN VIRIAN VIRIAN VIRIAN VIRIAN VIRIAN VIRIAN VIRIAN VIRIAN VIRIAN VIRIAN \*------------------------------------------------------------------------------------------*/ #if defined(CONFIG_SOC_AR724X) || defined(CONFIG_SOC_AR934X) || defined(CONFIG_SOC_QCA955X) || defined(CONFIG_SOC_QCA953X) || defined(CONFIG_SOC_QCA956X) || defined(CONFIG_SOC_QCN550X) #include #define avm_gpio_init ath_avm_gpio_init /*--- init ath_avm_gpio_init(void) ---*/ #define avm_gpio_ctrl ath_avm_gpio_ctrl /*--- int ath_avm_gpio_ctrl(unsigned int gpio_pin, enum _hw_gpio_function pin_mode, enum _hw_gpio_direction pin_dir) ---*/ #define avm_gpio_out_bit ath_avm_gpio_out_bit /*--- int ath_avm_gpio_out_bit(unsigned int gpio_pin, int value) ---*/ #define avm_gpio_in_bit ath_avm_gpio_in_bit /*--- int ath_avm_gpio_in_bit(unsigned int gpio_pin) ---*/ #define avm_gpio_in_value ath_avm_gpio_in_value /*--- unsigned int ath_avm_gpio_in_value(void) ---*/ #define avm_gpio_set_bitmask ath_avm_gpio_set_bitmask /*--- void ath_avm_gpio_set_bitmask(unsigned int mask, unsigned int value) ---*/ #define avm_gpio_request_irq ath_avm_gpio_request_irq #define avm_gpio_enable_irq ath_avm_gpio_enable_irq #define avm_gpio_disable_irq ath_avm_gpio_disable_irq /*------------------------------------------------------------------------------------------*\ \*------------------------------------------------------------------------------------------*/ enum _avm_clock_id { avm_clock_id_non = 0x00, avm_clock_id_cpu = 0x01, avm_clock_id_ddr = 0x02, avm_clock_id_ahb = 0x04, avm_clock_id_ref = 0x08, avm_clock_id_peripheral = 0x10, /*--- Uart ---*/ avm_clock_id_wdt = 0x20 }; extern unsigned int ath79_get_clock(enum _avm_clock_id id); #define avm_get_cycles() get_cycles() #define avm_get_cyclefreq() (avm_get_clock(avm_clock_id_cpu) / 2 ) #define avm_cycles_cpuclock_depend() (1) #define avm_get_clock ath79_get_clock extern void ath_avm_gpio_dump_registers(const char *prefix); /*------------------------------------------------------------------------------------------*\ \*------------------------------------------------------------------------------------------*/ #if defined(CONFIG_SOC_AR934X) || defined(CONFIG_SOC_QCA955X) void ath79_set_boot_mdio_regs(unsigned int num_vals, uint16_t *vals); #endif /*------------------------------------------------------------------------------------------*\ * 240-254 char LOCAL/EXPERIMENTAL USE * 240-254 block LOCAL/EXPERIMENTAL USE * Allocated for local/experimental use. For devices not * assigned official numbers, these ranges should be * used in order to avoid conflicting with future assignments. \*------------------------------------------------------------------------------------------*/ #define AVM_DECT_IO_MAJOR 227 #define AVM_USERMAN_MAJOR 228 #define KDSLD_USERMAN_MAJOR 229 #define AVM_TIATM_MAJOR 230 #define AVM_EVENT_MAJOR 241 #define WATCHDOG_MAJOR 242 #define KDSLD_MAJOR 243 #define KDSLDPTRACE_MAJOR 244 #define UBIK_MAJOR 245 #define DEBUG_TRACE_MAJOR 246 #define AVM_LED_MAJOR 247 #define AVM_I2C_MAJOR 248 #define YAFFS 249 #define AVM_AUDIO_MAJOR 250 #define AVM_NEW_LED_MAJOR 251 #define AVM_POWER_MAJOR 252 #define AVM_NET_TRACE_MAJOR 255 #define AVM_VINAX_MAJOR 253 #define AVM_HSK_MAJOR 254 #define AVM_ATH_EEPROM 239 #endif /*--- #if defined(CONFIG_SOC_AR724X) || defined(CONFIG_SOC_AR934X) || defined(CONFIG_SOC_QCA955X) ---*/ /*------------------------------------------------------------------------------------------*\ * zusaetzlich folgende: * * 207 char Compaq ProLiant health feature indicate * 220 char Myricom Myrinet "GM" board * 224 char A2232 serial card * 225 char A2232 serial card (alternate devices) * 227 char IBM 3270 terminal Unix tty access * 228 char IBM 3270 terminal block-mode access * 229 char IBM iSeries virtual console * 230 char IBM iSeries virtual tape * \*------------------------------------------------------------------------------------------*/ #endif /*--- #ifndef _mach_avm_h_ ---*/