/* Publication of enhanced or derived LinCAN files is required although. */
/**************************************************************************/
/* Publication of enhanced or derived LinCAN files is required although. */
/**************************************************************************/
-// TODO: zjistit frekvence IPB a SYS_XTAL
-#define MPC5200_SHARK_SYS_XTAL_FREQ 32768000 /* 32768k xtal */
-#define MPC5200_SHARK_IPB_FREQ 3300000 /* derived from XTAL by dividing */
+#define MPC5200_SHARK_SYS_XTAL_FREQ 396000000 /* 396 MHz */
+#define MPC5200_SHARK_IPB_FREQ 132000000 /* derived from XTAL by dividing: 132 MHz */
+/* got from /proc/device-tree/cpus/PowerPC,5200@0/ bus-frequency and system-frequency */
/* Determine which clock source to use */
/* 0 - use IP Bus clock */
/* 1 - use SYS_XTAL_IN frequency */
/* Determine which clock source to use */
/* 0 - use IP Bus clock */
/* 1 - use SYS_XTAL_IN frequency */
int mpc5200_request_io(struct candevice_t *candev);
int mpc5200_release_io(struct candevice_t *candev);
int mpc5200_request_io(struct candevice_t *candev);
int mpc5200_release_io(struct candevice_t *candev);
int mpc5200_init_hw_data(struct candevice_t *candev);
int mpc5200_init_chip_data(struct candevice_t *candev, int chipnr);
int mpc5200_init_obj_data(struct canchip_t *chip, int objnr);
int mpc5200_init_hw_data(struct candevice_t *candev);
int mpc5200_init_chip_data(struct candevice_t *candev, int chipnr);
int mpc5200_init_obj_data(struct canchip_t *chip, int objnr);
void mpc5200_write_register(unsigned data, can_ioptr_t address);
unsigned mpc5200_read_register(can_ioptr_t address);
void mpc5200_write_register(unsigned data, can_ioptr_t address);
unsigned mpc5200_read_register(can_ioptr_t address);