linux/arch/arm/mach-mx5
Arnaud Patard (Rtp) 96886c4361 iMX51: introduce IMX_GPIO_NR
Currently, to define a GPIO number, we're using something like :

#define EFIKAMX_PCBID0         (2*32 + 16)

to define GPIO 3 16.

This is not really readable and it's error prone imho (note the 3 vs 2).
So, I'm introducing a new macro to define this in a better way. Now, the
code sample become :

#define EFIKAMX_PCBID0         IMX_GPIO_NR(3, 16)

v2:
- move to gpio.h
- add parens & spaces
- switch to IMX_GPIO_NR instead of MX51_GPIO_NR

Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Cc: Amit Kucheria <amit.kucheria@linaro.org>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-12-03 11:05:16 +01:00
..
board-cpuimx51.c iMX51: introduce IMX_GPIO_NR 2010-12-03 11:05:16 +01:00
board-cpuimx51sd.c iMX51: introduce IMX_GPIO_NR 2010-12-03 11:05:16 +01:00
board-mx51_3ds.c ARM i.MX51 boards: Do not use PHYS_OFFSET 2010-11-24 10:08:56 +01:00
board-mx51_babbage.c iMX51: introduce IMX_GPIO_NR 2010-12-03 11:05:16 +01:00
board-mx51_efikamx.c iMX51: introduce IMX_GPIO_NR 2010-12-03 11:05:16 +01:00
clock-mx51-mx53.c ARM: imx: Get the silicon version from the IIM module 2010-11-28 19:51:47 +01:00
cpu.c ARM: imx: Get the silicon version from the IIM module 2010-11-28 19:51:47 +01:00
cpu_op-mx51.c cpufreq for freescale mx51 2010-10-22 08:24:14 +02:00
cpu_op-mx51.h cpufreq for freescale mx51 2010-10-22 08:24:14 +02:00
crm_regs.h ARM: imx: Add core definitions for MX53 2010-11-24 10:09:04 +01:00
devices-imx51.h ARM: mx5: dynamically allocate imx2-wdt devices 2010-12-03 11:05:15 +01:00
devices.c ARM: mx5: dynamically allocate imx2-wdt devices 2010-12-03 11:05:15 +01:00
devices.h ARM: mx5: dynamically allocate imx2-wdt devices 2010-12-03 11:05:15 +01:00
eukrea_mbimx51-baseboard.c iMX51: introduce IMX_GPIO_NR 2010-12-03 11:05:16 +01:00
eukrea_mbimxsd-baseboard.c iMX51: introduce IMX_GPIO_NR 2010-12-03 11:05:16 +01:00
Kconfig ARM: mx5: introduce SOC_IMX51 2010-12-03 11:05:13 +01:00
Makefile ARM: imx: Add core definitions for MX53 2010-11-24 10:09:04 +01:00
Makefile.boot mxc: Add support for the Babbage board (i.MX5) 2010-02-09 18:32:17 +02:00
mm.c ARM: imx: Get the silicon version from the IIM module 2010-11-28 19:51:47 +01:00