]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[POWERPC] Xilinx: Update compatible to use values generated by BSP generator.
authorStephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Tue, 8 Jan 2008 19:35:05 +0000 (06:35 +1100)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 6 Feb 2008 17:23:21 +0000 (10:23 -0700)
Mainly, this involves two changes:
1) xilinx->xlnx (recognized standard is to use the stock ticker)
2) In order to have the device tree focus on describing what the
hardware is as exactly as possible, the compatible strings contain the
full IP name and IP version.

Signed-off-by: Stephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Acked-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
arch/powerpc/platforms/40x/virtex.c
drivers/block/xsysace.c
drivers/serial/uartlite.c
drivers/video/xilinxfb.c

index 88b66444dfb24df543a76692f426d9ea8156b765..0422590040db5dbf12468db78624dab41f69adb5 100644 (file)
@@ -37,7 +37,7 @@ static int __init virtex_probe(void)
 {
        unsigned long root = of_get_flat_dt_root();
 
-       if (!of_flat_dt_is_compatible(root, "xilinx,virtex"))
+       if (!of_flat_dt_is_compatible(root, "xlnx,virtex"))
                return 0;
 
        return 1;
index 1110e1b60712ac5e100788c53bf97399bbc948dd..4a7a059ebaf70b83f564430883ad517966c635de 100644 (file)
@@ -1203,7 +1203,9 @@ static int __devexit ace_of_remove(struct of_device *op)
 
 /* Match table for of_platform binding */
 static struct of_device_id ace_of_match[] __devinitdata = {
-       { .compatible = "xilinx,xsysace", },
+       { .compatible = "xlnx,opb-sysace-1.00.b", },
+       { .compatible = "xlnx,opb-sysace-1.00.c", },
+       { .compatible = "xlnx,xps-sysace-1.00.a", },
        {},
 };
 MODULE_DEVICE_TABLE(of, ace_of_match);
index c54a5ad992b1a42e665c1ded815af22de9ad8bd8..b22023f1ec6bc1a47a1b80b02eb16ff641c3122d 100644 (file)
 #include <linux/tty.h>
 #include <linux/delay.h>
 #include <linux/interrupt.h>
+#include <linux/init.h>
 #include <asm/io.h>
 #if defined(CONFIG_OF)
+#include <linux/of.h>
 #include <linux/of_device.h>
 #include <linux/of_platform.h>
+
+/* Match table for of_platform binding */
+static struct of_device_id ulite_of_match[] __devinitdata = {
+       { .compatible = "xlnx,opb-uartlite-1.00.b", },
+       { .compatible = "xlnx,xps-uartlite-1.00.a", },
+       {}
+};
+MODULE_DEVICE_TABLE(of, ulite_of_match);
+
 #endif
 
 #define ULITE_NAME             "ttyUL"
@@ -275,6 +286,9 @@ static void ulite_release_port(struct uart_port *port)
 
 static int ulite_request_port(struct uart_port *port)
 {
+       pr_debug("ulite console: port=%p; port->mapbase=%x\n",
+                port, port->mapbase);
+
        if (!request_mem_region(port->mapbase, ULITE_REGION, "uartlite")) {
                dev_err(port->dev, "Memory region busy\n");
                return -EBUSY;
@@ -383,7 +397,7 @@ static inline void __init ulite_console_of_find_device(int id)
        const unsigned int *of_id;
        int rc;
 
-       for_each_compatible_node(np, NULL, "xilinx,uartlite") {
+       for_each_matching_node(np, ulite_of_match) {
                of_id = of_get_property(np, "port-number", NULL);
                if ((!of_id) || (*of_id != id))
                        continue;
@@ -617,13 +631,6 @@ static int __devexit ulite_of_remove(struct of_device *op)
        return ulite_release(&op->dev);
 }
 
-/* Match table for of_platform binding */
-static struct of_device_id ulite_of_match[] __devinitdata = {
-       { .type = "serial", .compatible = "xilinx,uartlite", },
-       {},
-};
-MODULE_DEVICE_TABLE(of, ulite_of_match);
-
 static struct of_platform_driver ulite_of_driver = {
        .owner = THIS_MODULE,
        .name = "uartlite",
index c92e99eced295753618753e94afdcfdc4b2f997a..7b3a8423f485e340afffb81d6f0dbc4c933eec83 100644 (file)
@@ -460,7 +460,7 @@ 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 = "xilinx,ml300-fb", },
+       { .compatible = "xlnx,plb-tft-cntlr-ref-1.00.a", },
        {},
 };
 MODULE_DEVICE_TABLE(of, xilinxfb_of_match);