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.

About gpio register[dm8168EVM]

DearAll,
i wanna set the direction of the gpio with the GPIO_OE(0x48032134) register, but it was failed to do it:
firstly, i enter command "cat /sys/class/gpio/gpio30/direction" and the result is "in";
Secondly, i set gpio30(in) to gpio30(out) with command: "devmem2 0x48032134 w 0xbfefffff";
lastly, i enter command "cat /sys/class/gpio/gpio30/direction" and i find the result still is "in", not the expected result("out").

Note:
1. if i use the command("echo out > /sys/class/gpio/gpio30/direction"), the result is right(gpio direction will be "out");
2. i wanna configure gpio in user layer.

Why is it that? Is it something wrong with the above? how should i do it?
Please help, thankx.