Commit eac6a850 authored by Tomasz Wlostowski's avatar Tomasz Wlostowski

kernel: ugly hacks to get a carrier with FD in one slot and FMC-TDC in the other to work

parent 440342bc
......@@ -25,7 +25,7 @@ obj-m := fmc-fine-delay.o
fmc-fine-delay-objs = fd-zio.o fd-irq.o fd-core.o
fmc-fine-delay-objs += onewire.o spi.o i2c.o gpio.o
fmc-fine-delay-objs += acam.o calibrate.o pll.o time.o
fmc-fine-delay-objs += calibration.o
fmc-fine-delay-objs += calibration.o fmc-util.o
fmc-fine-delay-objs += ../sdb-lib/access.o
fmc-fine-delay-objs += ../sdb-lib/glue.o
......
......@@ -170,13 +170,13 @@ int fd_probe(struct fmc_device *fmc)
/* Now use SDB to find the base addresses */
fd->fd_regs_base =
fmc_find_sdb_device(fmc->sdb, 0xce42, 0xf19ede1a, NULL);
fmc_find_sdb_device_ext(fmc->sdb, 0xce42, 0xf19ede1a, 0, NULL);
/* ugly hack for svec testing*/
/* FIXME: this depends on 0x10000/0x20000 being the FD cores
* base addresses */
if (!strcmp(fmc->carrier_name, "SVEC") && fmc->slot_id == 1)
fd->fd_regs_base += 0x10000;
// if (!strcmp(fmc->carrier_name, "SVEC") && fmc->slot_id == 1)
// fd->fd_regs_base += 0x10000;
dev_info(dev, "fd_regs_base is %x\n", fd->fd_regs_base);
fd->fd_owregs_base = fd->fd_regs_base + 0x500;
......
......@@ -383,5 +383,8 @@ extern int fd_eeprom_write(struct fd_dev *fd, int i2c_addr, uint32_t offset,
/* Function exported by calibration.c */
int fd_handle_eeprom_calibration(struct fd_dev *fd);
signed long fmc_find_sdb_device_ext(struct sdb_array *tree,
uint64_t vid, uint32_t did, int index,
unsigned long *sz);
#endif /* __KERNEL__ */
#endif /* __FINE_DELAY_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment