lantiq: add wifi eep to a803 dts file
[openwrt.git] / target / linux / lantiq / patches-3.8 / 0034-MTD-lantiq-handle-NO_XIP-on-cfi0001-flash.patch
1 From 88bc909507f7e9347a24e38185a11a38e51cc773 Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Wed, 13 Mar 2013 10:04:34 +0100
4 Subject: [PATCH 34/40] MTD: lantiq: handle NO_XIP on cfi0001 flash
5
6 ---
7  drivers/mtd/maps/lantiq-flash.c |    6 +++++-
8  1 file changed, 5 insertions(+), 1 deletion(-)
9
10 --- a/drivers/mtd/maps/lantiq-flash.c
11 +++ b/drivers/mtd/maps/lantiq-flash.c
12 @@ -134,7 +134,11 @@ ltq_mtd_probe(struct platform_device *pd
13         }
14  
15         ltq_mtd->map = kzalloc(sizeof(struct map_info), GFP_KERNEL);
16 -       ltq_mtd->map->phys = ltq_mtd->res->start;
17 +       if (of_find_property(pdev->dev.of_node, "lantiq,noxip", NULL))
18 +               ltq_mtd->map->phys = NO_XIP;
19 +       else
20 +               ltq_mtd->map->phys = ltq_mtd->res->start;
21 +       ltq_mtd->res->start;
22         ltq_mtd->map->size = resource_size(ltq_mtd->res);
23         ltq_mtd->map->virt = devm_request_and_ioremap(&pdev->dev, ltq_mtd->res);
24         if (!ltq_mtd->map->virt) {