X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/a4c9ead4b64bd4de307f375c2ff313a7a07a06e0..2a4663dd0b20d96d1ffe20993dd0c63ed2ca9f20:/lincan/src/template.c diff --git a/lincan/src/template.c b/lincan/src/template.c index d8ceaa4..5999366 100644 --- a/lincan/src/template.c +++ b/lincan/src/template.c @@ -114,7 +114,6 @@ int template_init_hw_data(struct candevice_t *candev) return 0; } -#define CHIP_TYPE "i82527" /** * template_init_chip_data - Initialize chips * @candev: Pointer to candevice/board structure @@ -149,7 +148,10 @@ int template_init_hw_data(struct candevice_t *candev) */ int template_init_chip_data(struct candevice_t *candev, int chipnr) { - candev->chip[chipnr]->chip_type=CHIP_TYPE; + i82527_fill_chipspecops(candev->chip[chipnr]); + /*sja1000_fill_chipspecops(candev->chip[chipnr]);*/ + /*sja1000p_fill_chipspecops(candev->chip[chipnr]);*/ + candev->chip[chipnr]->chip_base_addr=candev->io_addr; candev->chip[chipnr]->clock = 16000000; candev->chip[chipnr]->int_cpu_reg = iCPU_DSC;