Hello. On 30-11-2010 23:02, Raffaele Recalcati wrote:
>>>> Looking at dm365.c I see that the pinmux settings are thinked for a >>>> particular case. >>>> How can I, in a clean way, to set my settings?
>>> By calls to davinci_cfg_reg() or davinci_cfg_reg_list()
>> ok, I'm doing that.
>>>> Can I override for instance dm365_pins in davinci_soc_info_dm365 >>>> structure with my >>>> settings for my basi board, dm365_basi_pins? >>> No, and you don't need to. These specify the layout of the PinMux >>> registers and are used by davinci_cfg_reg().
>> The problem is, for instance, that UART1_TX can be used on two (or more?) gpios.
> Sorry, I don't understand you.
UART1_TXD can be GIO25 or GIO16 instead in dm365 we have one of them
Ah, you mean that UART1_TX has alternate function as GPIO... even as 2 GPIOs...
MUX_CFG(DM365, UART1_TXD, 3, 15, 3, 2, false)
That means GIO16. So I can add :
MUX_CFG(DM365, UART1_TXD_GIO16, 3, 29, 3, 3, false)
Bits 29-30 control GPIO25, not GIO16.
The same can be said for other peripherals, because the same periperal can be available using different pins.
>> So I'll need to add more MUX_CFG lines.. >> UART1_TX_GIOx >> UART1_TX_GIOy >> and then select the one I'm really using on my board.
> Still don't understand what you mean.
Now I do, especially after looking into the manual. :-)
>> I'm afraid that setting gpios in my board file is not enough, because >> I see that other modules change my settings and I'm getting crazy to >> find where they set. >> I'll search tomorrow the MUX_CFG defines around in my kernel.
> They should all be in dm365.c...
I check better in the latest kernel...
Probably not everything is available here as I can see now...
Regards, Raffaele
WBR, Sergei _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
