2012-10-17 21:07:45 +00:00
|
|
|
#ifndef __MACH_GENERIC_H
|
|
|
|
#define __MACH_GENERIC_H
|
2008-02-19 14:50:43 +00:00
|
|
|
|
2010-08-02 11:58:52 +00:00
|
|
|
u64 imx_uid(void);
|
2010-05-14 02:15:17 +00:00
|
|
|
|
2013-03-14 17:38:44 +00:00
|
|
|
void imx25_boot_save_loc(void __iomem *ccm_base);
|
|
|
|
void imx35_boot_save_loc(void __iomem *ccm_base);
|
2013-03-14 17:38:43 +00:00
|
|
|
void imx27_boot_save_loc(void __iomem *sysctrl_base);
|
2013-03-14 17:38:41 +00:00
|
|
|
void imx51_boot_save_loc(void __iomem *src_base);
|
|
|
|
void imx53_boot_save_loc(void __iomem *src_base);
|
|
|
|
void imx6_boot_save_loc(void __iomem *src_base);
|
2010-05-14 02:15:17 +00:00
|
|
|
|
2012-10-11 07:09:29 +00:00
|
|
|
/* There's a off-by-one betweem the gpio bank number and the gpiochip */
|
|
|
|
/* range e.g. GPIO_1_5 is gpio 5 under linux */
|
|
|
|
#define IMX_GPIO_NR(bank, nr) (((bank) - 1) * 32 + (nr))
|
|
|
|
|
2009-10-05 06:41:13 +00:00
|
|
|
#ifdef CONFIG_ARCH_IMX1
|
|
|
|
#define cpu_is_mx1() (1)
|
|
|
|
#else
|
|
|
|
#define cpu_is_mx1() (0)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_ARCH_IMX21
|
|
|
|
#define cpu_is_mx21() (1)
|
|
|
|
#else
|
|
|
|
#define cpu_is_mx21() (0)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_ARCH_IMX25
|
|
|
|
#define cpu_is_mx25() (1)
|
|
|
|
#else
|
|
|
|
#define cpu_is_mx25() (0)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_ARCH_IMX27
|
|
|
|
#define cpu_is_mx27() (1)
|
|
|
|
#else
|
|
|
|
#define cpu_is_mx27() (0)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_ARCH_IMX31
|
|
|
|
#define cpu_is_mx31() (1)
|
|
|
|
#else
|
|
|
|
#define cpu_is_mx31() (0)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_ARCH_IMX35
|
|
|
|
#define cpu_is_mx35() (1)
|
|
|
|
#else
|
|
|
|
#define cpu_is_mx35() (0)
|
|
|
|
#endif
|
|
|
|
|
2010-10-11 11:01:08 +00:00
|
|
|
#ifdef CONFIG_ARCH_IMX51
|
|
|
|
#define cpu_is_mx51() (1)
|
|
|
|
#else
|
|
|
|
#define cpu_is_mx51() (0)
|
|
|
|
#endif
|
|
|
|
|
2011-07-27 10:15:59 +00:00
|
|
|
#ifdef CONFIG_ARCH_IMX53
|
|
|
|
#define cpu_is_mx53() (1)
|
|
|
|
#else
|
|
|
|
#define cpu_is_mx53() (0)
|
|
|
|
#endif
|
|
|
|
|
2012-02-23 09:09:07 +00:00
|
|
|
#ifdef CONFIG_ARCH_IMX6
|
|
|
|
#define cpu_is_mx6() (1)
|
|
|
|
#else
|
|
|
|
#define cpu_is_mx6() (0)
|
|
|
|
#endif
|
|
|
|
|
2010-12-13 10:53:30 +00:00
|
|
|
#define cpu_is_mx23() (0)
|
|
|
|
#define cpu_is_mx28() (0)
|
2012-10-17 21:07:45 +00:00
|
|
|
|
|
|
|
#endif /* __MACH_GENERIC_H */
|