Re: [net-next-2.6 PATCH v2] can: SJA1000: generic OF platform bus driver

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Wolfgang Grandegger
Date: Friday, May 22, 2009 - 11:29 pm

Hi Grant,

Grant Likely wrote:

OK.


Sounds reasonable.


OK, I will remove it.


Ah, right, but I'm also not happy with "can-frequency". The manual
speaks about the "internal clock", which is half of the external
oscillator frequency. Maybe "internal-clock-frequency" might be better.


The clock divider register controls the CLKOUT frequency for the
microcontroller another CAN controller and allows to deactivate the
CLKOUT pin. It's not used to configure the CAN bus frequency.


Unfortunately, there are many:

clkout-frequency
bypass-comperator
tx1-output-on-rx-irq

#define OCR_MODE_BIPHASE  0x00
#define OCR_MODE_TEST     0x01
#define OCR_MODE_NORMAL   0x02
#define OCR_MODE_CLOCK    0x03

#define OCR_TX0_INVERT    0x04
#define OCR_TX0_PULLDOWN  0x08
#define OCR_TX0_PULLUP    0x10
#define OCR_TX0_PUSHPULL  0x18
#define OCR_TX1_INVERT    0x20
#define OCR_TX1_PULLDOWN  0x40
#define OCR_TX1_PULLUP    0x80
#define OCR_TX1_PUSHPULL  0xc0

I think implementing properties for each option is overkill.

Wolfgang.


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[net-next-2.6 PATCH v2] can: SJA1000: generic OF platform ..., Wolfgang Grandegger, (Fri May 22, 7:46 am)
Re: [net-next-2.6 PATCH v2] can: SJA1000: generic OF platf ..., Wolfgang Grandegger, (Fri May 22, 11:29 pm)
Re: [net-next-2.6 PATCH v2] can: SJA1000: generic OF platf ..., Wolfgang Grandegger, (Sat May 23, 9:44 am)
Re: [net-next-2.6 PATCH v2] can: SJA1000: generic OF platf ..., Wolfgang Grandegger, (Sat May 23, 9:51 am)
Re: [net-next-2.6 PATCH v2] can: SJA1000: generic OF platf ..., Wolfgang Grandegger, (Sun May 24, 11:58 pm)
Re: [net-next-2.6 PATCH v2] can: SJA1000: generic OF platf ..., Wolfgang Grandegger, (Mon May 25, 1:15 am)
Re: [net-next-2.6 PATCH v2] can: SJA1000: generic OF platf ..., Benjamin Herrenschmidt, (Tue May 26, 2:40 am)
Re: [net-next-2.6 PATCH v2] can: SJA1000: generic OF platf ..., Wolfgang Grandegger, (Tue May 26, 7:23 am)
Re: [net-next-2.6 PATCH v2] can: SJA1000: generic OF platf ..., Wolfgang Grandegger, (Sat May 30, 10:59 am)