Bhupesh SHARMA wrote:

> And where should the platform dependent differences be captured, at
> some place like 'include/linux/can/platform/spear320.h' ?

What's platform specific in spear320_can.c?

Register shift? This can be handled via IORESOURCE_MEM_xxBIT.

Maybe Clock handling? on the spear clk_get does work, maybe there are
otherm i.e. older SOCs where this isn't supported. But this can be fixed
if someone faces this problem.

What about this?
spear320_can_write_reg(priv, CAN_ENABLE, 1);

If it's platform specific it can be moved to the board code.

Cheers, Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Socketcan-core mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-core

Reply via email to