炳哥的Linux博客chenxibing.blog.chinaunix.net
chenxibing008
全部博文(479)
Shell编程(9)
2014年(1)
2013年(1)
2012年(1)
2011年(95)
2010年(177)
2009年(167)
2008年(16)
2007年(21)
HYYLINUX
fuwang54
psvoldem
dabenxio
augustin
ruananch
Peter_Le
dragoner
Microchi
zzbok
sslc
wjydlut
chenlian
格伯纳
cynthia
Bsolar
浪花小雨
54696428
分类: LINUX
2009-11-21 09:49:12
/* 24xx/34xx mux bit defines */ #define OMAP2_PULL_ENA (1 << 3) #define OMAP2_PULL_UP (1 << 4) #define OMAP2_ALTELECTRICALSEL (1 << 5) /* 34xx specific mux bit defines */ #define OMAP3_INPUT_EN (1 << 8) #define OMAP3_OFF_EN (1 << 9) #define OMAP3_OFFOUT_EN (1 << 10) #define OMAP3_OFFOUT_VAL (1 << 11) #define OMAP3_OFF_PULL_EN (1 << 12) #define OMAP3_OFF_PULL_UP (1 << 13) #define OMAP3_WAKEUP_EN (1 << 14)
/* 34xx mux mode options for each pin. See TRM for options */ #define OMAP34XX_MUX_MODE0 0 #define OMAP34XX_MUX_MODE1 1 #define OMAP34XX_MUX_MODE2 2 #define OMAP34XX_MUX_MODE3 3 #define OMAP34XX_MUX_MODE4 4 #define OMAP34XX_MUX_MODE5 5 #define OMAP34XX_MUX_MODE6 6 #define OMAP34XX_MUX_MODE7 7
/* 34xx active pin states */ #define OMAP34XX_PIN_OUTPUT 0 #define OMAP34XX_PIN_INPUT OMAP3_INPUT_EN #define OMAP34XX_PIN_INPUT_PULLUP (OMAP2_PULL_ENA | OMAP3_INPUT_EN \ | OMAP2_PULL_UP) #define OMAP34XX_PIN_INPUT_PULLDOWN (OMAP2_PULL_ENA | OMAP3_INPUT_EN) /* 34xx off mode states */ #define OMAP34XX_PIN_OFF_NONE 0 #define OMAP34XX_PIN_OFF_OUTPUT_HIGH (OMAP3_OFF_EN | OMAP3_OFFOUT_EN \ | OMAP3_OFFOUT_VAL) #define OMAP34XX_PIN_OFF_OUTPUT_LOW (OMAP3_OFF_EN | OMAP3_OFFOUT_EN) #define OMAP34XX_PIN_OFF_INPUT_PULLUP (OMAP3_OFF_EN | OMAP3_OFF_PULL_EN \ | OMAP3_OFF_PULL_UP) #define OMAP34XX_PIN_OFF_INPUT_PULLDOWN (OMAP3_OFF_EN | OMAP3_OFF_PULL_EN) #define OMAP34XX_PIN_OFF_WAKEUPENABLE OMAP3_WAKEUP_EN
#define MUX_CFG_34XX(desc, reg_offset, mux_value) { \ .name = desc, \ .debug = 0, \ .mux_reg = reg_offset, \ .mux_val = mux_value \ },
上一篇:OMAP3 Linux 中的MUX设置
下一篇:查看压缩包里面所包含的文件
登录 注册