I got my first driver assignment...Here I have to implement host controller for USB. In a general purpose operating system its a complete layered architecture. Host controllers are implemented in the very generic and stanadard way to support all the standard drivers. In the embedded system the things a bit different. I am not suppose to implement the layered architecture for the above and the implementation is also customized according to our need.
I have two things for the reference:
1> Datasheet: where all the registers are explained for SOC
2> Broadcom CFE (Common Firmware Environment), because its a SWARM based board.
We can't use the CFE code directly because our base code design are a lot different. So my main focus is how the CFE done the registers configuration at last, configuring the right registers in the right sequence.
By going through the CFE code it helps me lot to identify the right registers and the sequence. There after it required to write a couple of functions to make the things done.Now the ports are configured for EHCI/OHCI and its working fine.
Happy coding !!
I have two things for the reference:
1> Datasheet: where all the registers are explained for SOC
2> Broadcom CFE (Common Firmware Environment), because its a SWARM based board.
We can't use the CFE code directly because our base code design are a lot different. So my main focus is how the CFE done the registers configuration at last, configuring the right registers in the right sequence.
By going through the CFE code it helps me lot to identify the right registers and the sequence. There after it required to write a couple of functions to make the things done.Now the ports are configured for EHCI/OHCI and its working fine.
Happy coding !!
No comments:
Post a Comment