22 #include <linux/i2c.h>
24 #include <mach/common.h>
25 #include <mach/hardware.h>
37 #define PBC_BASE_ADDRESS 0xf4300000
38 #define PBC_REG_ADDR(offset) (void __force __iomem *) \
39 (PBC_BASE_ADDRESS + (offset))
48 #define PBC_VERSION_REG PBC_REG_ADDR(0x00000 >> PBC_ADDR_SH)
52 #define PBC_BCTRL1_SET_REG PBC_REG_ADDR(0x00008 >> PBC_ADDR_SH)
56 #define PBC_BCTRL1_CLEAR_REG PBC_REG_ADDR(0x0000C >> PBC_ADDR_SH)
59 #define PBC_BCTRL1_LCDON 0x0800
62 #define CKIH_27MHZ_BIT_SET (1 << 3)
174 static struct resource mx27ads_flash_resource = {
176 .end = 0xc0000000 + 0x02000000 - 1,
182 .name =
"physmap-flash",
185 .platform_data = &mx27ads_flash_data,
188 .resource = &mx27ads_flash_resource,
209 .name =
"Sharp-LQ035Q7",
227 .mode = mx27ads_modes,
260 static void mx27ads_sdhc1_exit(
struct device *dev,
void *data)
265 static void mx27ads_sdhc2_exit(
struct device *dev,
void *data)
271 .
init = mx27ads_sdhc1_init,
272 .exit = mx27ads_sdhc1_exit,
276 .
init = mx27ads_sdhc2_init,
277 .exit = mx27ads_sdhc2_exit,
281 &mx27ads_nor_mtd_device,
288 static void __init mx27ads_board_init(
void)
316 static void __init mx27ads_timer_init(
void)
318 unsigned long fref = 26000000;
326 static struct sys_timer mx27ads_timer = {
327 .init = mx27ads_timer_init,
330 static struct map_desc mx27ads_io_desc[] __initdata = {
339 static void __init mx27ads_map_io(
void)
347 .atag_offset = 0x100,
348 .map_io = mx27ads_map_io,
352 .timer = &mx27ads_timer,
353 .init_machine = mx27ads_board_init,