Serkan,

I haven't tried modifying the PWM driver myself, but when I was investigating 
the PRGB problem, I found that the PINMUX1 settings are being modified for the 
PWMs in arch/arm/mach-davinci/clock.c. The function name is: 

static int board_setup_peripheral(unsigned int id) 

You will need to search the kernel to find where this function is being called 
(presumably from the PWM driver code) with the id parameter set to any of 
DAVINCI_LPSC_PWM0, DAVINCI_LPSC_PWM1, or DAVINCI_LPSC_PWM2. I suspect you will 
have to remove these calls or somehow modify the configuration so these calls 
never occur.

I hope this points you in the right direction. I am interested to know what 
solution you find.

-Greg

Gregory B. Ingersoll, M.Sc., P.E. // senior electrical engineer

LOGIC Product Development 
411 Washington Ave N. Suite 400 
Minneapolis, MN 55401 
T // 612.436.5163
F // 612.672.9489

[EMAIL PROTECTED]
www.logicpd.com


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of serkan erdogan
Sent: Wednesday, March 05, 2008 08:23
To: [email protected]
Subject: DM355 PWM Driver & PINMUX1 Setting !

Hii  Friends,

I have posted a mail asking how to PRGB interface problem which the COUT
pins are not active. Thanks for very valuable answers. I have disabled
PWM driver and know PRGB is working correctly but now i need one of pwm
pins on DM355. It must PWM3 ofcourse because it is not multiplexed with
PRGB pins so i need to edit PWM driver like Gregory B. Ingersoll says
from LOGIC Product Development.

But when i opened the davinci_pwm.c and davinci_pwh.h files i couldn't
find any codeline that set PINMUX1 for used to assign pins for PWM . It
just contains a line

"#define    PINMUX1            __REG(0x01c40004)"


for defining the register but not anymore code for setting this
register. Please tell me there is another file which reachs this
register and set it when davinci_pwm driver is enabled. If my PRGB is
working properly while PWM driver disabled in configuration script and
there is any code that sets the PINMUX1 register in PWM driver file so
as a result there must be any code file to set this register before
dawinci_pwm.o object file take its turn. I want to find this external
file(s) to understand the all of  picture.

Actually, i also wonder the sequence of driver loading in davinci kernel
load. Which file includes the data about which driver or module will be
loaded after which driver? Why the pwm driver is chosen to be loaded
after fbdev driver? I also want play with this driver registration
squence but where to find additional information about this driver
registration process in kernel source tree.

Thanks so much for reading patiently and further valuable help.

Serkan Erdoğan.
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to