Thread (7 messages) 7 messages, 4 authors, 2017-01-26

Re: [PATCH] mtd: maps: lantiq-flash: Check if the EBU endianness swap is enabled

From: Seb <hidden>
Date: 2017-01-25 09:04:52

Hello,

I would prefer to use a device tree option to activate this check and
only access LTQ_EBU_BUSCON0 when this property is set.
If I understand correctly, I have to make something like this :

---

bool mtd_addr_swap=true;

        if (!of_machine_is_compatible("lantiq,falcon") &&
                of_find_property(pdev->dev.of_node,
"lantiq,ebu_swap_check", NULL))
                if (ltq_ebu_r32(LTQ_EBU_BUSCON0) & EBU_FLASH_ENDIAN_SWAP)
                        mtd_addr_swap = false;

---

And then set this property directly on my device-specific dts file ?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help