This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Pin mux confusing..

Other Parts Discussed in Thread: DM3730

hi,

 

i am using the dm3730 evm...In that i want use the gpio 139 

Need to pin mux to set as gpio 139...

i have written the *.ko file....

static int user_pinmux_set_value(int value, unsigned long base)

{

//char * baseptr = ioremap(0xFC000000, 1024*1024);

//PINMUX0 is 4800 2168 for the pinconfig....

//__raw_writew(value,base);

base=0x016A;

//MUXVAL_VAL(OFFSET,VALUE)

writew(value,PINMUX0+(base));

printk(KERN_DEBUG "MUX is register the device\n");

 

}

 

 

which function to use for change the pins as gpio....