Skip to content
Snippets Groups Projects
Commit dfe833ee authored by Alessandro Rubini's avatar Alessandro Rubini
Browse files

kernel/spec: remove the 512k offset

This offset used to be mandatory, but it is not any more. The gateware
I'm using has two aliases  in the 1M address space, so offset 0 is as good.
Other gateware (like the 100Msample ADC) use the whole address space,
so after this patch the ADC driver can use the fmc accessors like other
drivers.

EOF
parent 6ce1b9d2
Branches
Tags
No related merge requests found
......@@ -283,7 +283,7 @@ int spec_fmc_create(struct spec_dev *spec)
/* FIXME: many fields of the device are still NULL */
fmc->carrier_name = "SPEC";
fmc->carrier_data = spec;
fmc->base = spec->remap[0] + 0x80000; /* 512k window at 512k offset */
fmc->base = spec->remap[0]; /* 1M window at offset 0 */
fmc->irq = spec->pdev->irq;
fmc->op = &spec_fmc_operations;
fmc->hwdev = &spec->pdev->dev; /* for messages */
......
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