1 /* $NetBSD: imx51var.h,v 1.2 2010/11/30 13:05:27 bsh Exp $ */ 2 3 #ifndef _ARM_IMX_IMX51VAR_H 4 #define _ARM_IMX_IMX51VAR_H 5 6 extern struct bus_space imx_bs_tag; 7 extern struct arm32_bus_dma_tag imx_bus_dma_tag; 8 9 void gpio_set_direction(uint32_t, uint32_t); 10 void gpio_data_write(uint32_t, uint32_t); 11 bool gpio_data_read(uint32_t); 12 13 struct axi_attach_args { 14 const char *aa_name; 15 bus_space_tag_t aa_iot; 16 bus_dma_tag_t aa_dmat; 17 bus_addr_t aa_addr; 18 bus_size_t aa_size; 19 int aa_irq; 20 int aa_irqbase; 21 }; 22 23 24 /* iomux utility functions */ 25 struct iomux_conf { 26 u_int pin; 27 #define IOMUX_CONF_EOT ((u_int)(-1)) 28 u_short mux; 29 u_short pad; 30 }; 31 32 void iomux_set_function(u_int, u_int); 33 void iomux_set_pad(u_int, u_int); 34 //void iomux_set_input(u_int, u_int); 35 void iomux_mux_config(const struct iomux_conf *); 36 37 #endif /* _ARM_IMX_IMX51VAR_H */ 38