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