Skip to content

Commit 0e349b0

Browse files
stephenneuendorfferglikely
authored andcommitted
[POWERPC] Xilinx: Update compatible to use values generated by BSP generator.
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>
1 parent 911a317 commit 0e349b0

4 files changed

Lines changed: 20 additions & 11 deletions

File tree

‎arch/powerpc/platforms/40x/virtex.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static int __init virtex_probe(void)
3737
{
3838
unsigned long root = of_get_flat_dt_root();
3939

40-
if (!of_flat_dt_is_compatible(root, "xilinx,virtex"))
40+
if (!of_flat_dt_is_compatible(root, "xlnx,virtex"))
4141
return 0;
4242

4343
return 1;

‎drivers/block/xsysace.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,9 @@ static int __devexit ace_of_remove(struct of_device *op)
12031203

12041204
/* Match table for of_platform binding */
12051205
static struct of_device_id ace_of_match[] __devinitdata = {
1206-
{ .compatible = "xilinx,xsysace", },
1206+
{ .compatible = "xlnx,opb-sysace-1.00.b", },
1207+
{ .compatible = "xlnx,opb-sysace-1.00.c", },
1208+
{ .compatible = "xlnx,xps-sysace-1.00.a", },
12071209
{},
12081210
};
12091211
MODULE_DEVICE_TABLE(of, ace_of_match);

‎drivers/serial/uartlite.c‎

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,21 @@
1717
#include <linux/tty.h>
1818
#include <linux/delay.h>
1919
#include <linux/interrupt.h>
20+
#include <linux/init.h>
2021
#include <asm/io.h>
2122
#if defined(CONFIG_OF)
23+
#include <linux/of.h>
2224
#include <linux/of_device.h>
2325
#include <linux/of_platform.h>
26+
27+
/* Match table for of_platform binding */
28+
static struct of_device_id ulite_of_match[] __devinitdata = {
29+
{ .compatible = "xlnx,opb-uartlite-1.00.b", },
30+
{ .compatible = "xlnx,xps-uartlite-1.00.a", },
31+
{}
32+
};
33+
MODULE_DEVICE_TABLE(of, ulite_of_match);
34+
2435
#endif
2536

2637
#define ULITE_NAME "ttyUL"
@@ -275,6 +286,9 @@ static void ulite_release_port(struct uart_port *port)
275286

276287
static int ulite_request_port(struct uart_port *port)
277288
{
289+
pr_debug("ulite console: port=%p; port->mapbase=%x\n",
290+
port, port->mapbase);
291+
278292
if (!request_mem_region(port->mapbase, ULITE_REGION, "uartlite")) {
279293
dev_err(port->dev, "Memory region busy\n");
280294
return -EBUSY;
@@ -383,7 +397,7 @@ static inline void __init ulite_console_of_find_device(int id)
383397
const unsigned int *of_id;
384398
int rc;
385399

386-
for_each_compatible_node(np, NULL, "xilinx,uartlite") {
400+
for_each_matching_node(np, ulite_of_match) {
387401
of_id = of_get_property(np, "port-number", NULL);
388402
if ((!of_id) || (*of_id != id))
389403
continue;
@@ -617,13 +631,6 @@ static int __devexit ulite_of_remove(struct of_device *op)
617631
return ulite_release(&op->dev);
618632
}
619633

620-
/* Match table for of_platform binding */
621-
static struct of_device_id ulite_of_match[] __devinitdata = {
622-
{ .type = "serial", .compatible = "xilinx,uartlite", },
623-
{},
624-
};
625-
MODULE_DEVICE_TABLE(of, ulite_of_match);
626-
627634
static struct of_platform_driver ulite_of_driver = {
628635
.owner = THIS_MODULE,
629636
.name = "uartlite",

‎drivers/video/xilinxfb.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ static int __devexit xilinxfb_of_remove(struct of_device *op)
460460

461461
/* Match table for of_platform binding */
462462
static struct of_device_id xilinxfb_of_match[] __devinitdata = {
463-
{ .compatible = "xilinx,ml300-fb", },
463+
{ .compatible = "xlnx,plb-tft-cntlr-ref-1.00.a", },
464464
{},
465465
};
466466
MODULE_DEVICE_TABLE(of, xilinxfb_of_match);

0 commit comments

Comments
 (0)