| Submitter | Adrian Alonso |
|---|---|
| Date | July 27, 2010, 9:24 p.m. |
| Message ID | <1280265853-21245-1-git-send-email-aalonso00@gmail.com> |
| Download | mbox | patch |
| Permalink | /patch/60048/ |
| State | Accepted |
| Delegated to: | Grant Likely |
| Headers | show |
Comments
On Tue, Jul 27, 2010 at 3:24 PM, Adrian Alonso <aalonso00@gmail.com> wrote: > * Add tft display module compatibility for new > hardware modules > > Signed-off-by: Adrian Alonso <aalonso00@gmail.com> > --- > drivers/video/xilinxfb.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/drivers/video/xilinxfb.c b/drivers/video/xilinxfb.c > index 574dc54..29b5daa 100644 > --- a/drivers/video/xilinxfb.c > +++ b/drivers/video/xilinxfb.c > @@ -485,6 +485,8 @@ static int __devexit xilinxfb_of_remove(struct of_device *op) > /* Match table for of_platform binding */ > static struct of_device_id xilinxfb_of_match[] __devinitdata = { > { .compatible = "xlnx,xps-tft-1.00.a", }, > + { .compatible = "xlnx,xps-tft-2.00.a", }, > + { .compatible = "xlnx,xps-tft-2.01.a", }, > { .compatible = "xlnx,plb-tft-cntlr-ref-1.00.a", }, > { .compatible = "xlnx,plb-dvi-cntlr-ref-1.00.c", }, > {}, I'll merged this, but it isn't exactly the best fix (not your fault; a deficiency in the xilinx device tree generator). I still need to get around to fixing the generator to claim compatibility with the .00.a ip core versions by default for newer parts with the same major revision number. Once it is fixed, then only the -2.00.a compatible value would need to be added to the table. Thanks Adrian. g.
Patch
diff --git a/drivers/video/xilinxfb.c b/drivers/video/xilinxfb.c index 574dc54..29b5daa 100644 --- a/drivers/video/xilinxfb.c +++ b/drivers/video/xilinxfb.c @@ -485,6 +485,8 @@ static int __devexit xilinxfb_of_remove(struct of_device *op) /* Match table for of_platform binding */ static struct of_device_id xilinxfb_of_match[] __devinitdata = { { .compatible = "xlnx,xps-tft-1.00.a", }, + { .compatible = "xlnx,xps-tft-2.00.a", }, + { .compatible = "xlnx,xps-tft-2.01.a", }, { .compatible = "xlnx,plb-tft-cntlr-ref-1.00.a", }, { .compatible = "xlnx,plb-dvi-cntlr-ref-1.00.c", }, {},
* Add tft display module compatibility for new hardware modules Signed-off-by: Adrian Alonso <aalonso00@gmail.com> --- drivers/video/xilinxfb.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)