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