IFC: Change IO accessor based on endianness
Subsystems (4)
PATCH v2 1/1 IFC: Change IO accessor based on endianness
From: Jaiprakash Singh <[email protected]>
IFC registers can be of type Little Endian or big Endian depending upon Freescale SoC. Here SoC defines the register type of IFC IP.So update accessors functions with common IFC accessors functions to take care both type of endianness.
IFC IO accressor are set at run time based on IFC IP registers endianness.IFC node in DTS file contains information about endianness.
Signed-off-by Jaiprakash Singh <[email protected]>
---
Changes for v2
- Moved IFC accessor function to fsl_ifc.h from fsl_ifc.c and make them inline static
.../bindings/memory-controllers/fsl/ifc.txt | 2 +
drivers/memory/fsl_ifc.c | 72 ++++++---- drivers/mtd/nand/fsl_ifc_nand.c | 151 +++++++++++--------- include/linux/fsl_ifc.h | 42 ++++++ 4 files changed, 167 insertions(+), 100 deletions(-)
Documentation/devicetree/bindings/memory-controllers/fsl/ifc.txt +2 -0
@@ -18,6 +18,8 @@ Properties: interrupt (NAND_EVTER_STAT). If there is only one, that interrupt reports both types of event. +- little-endian : If this property is absent, the big-endian mode will + be in use as default for registers. - ranges : Each range corresponds to a single chipselect, and covers the entire access window as configured.
drivers/memory/fsl_ifc.c +41 -31
120 lines not on this page · raw message
drivers/mtd/nand/fsl_ifc_nand.c +82 -69
406 lines not on this page · raw message
include/linux/fsl_ifc.h +42 -0
51 lines not on this page · raw message
Signature · 1 line
1.7.9.5