/* * Copyright (C) 2010 ST-Ericsson * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, as * published by the Free Software Foundation. */ #ifndef __ASM_ARCH_DEVICES_H__ #define __ASM_ARCH_DEVICES_H__ struct platform_device; struct amba_device; void __init u8500_register_device(struct platform_device *dev, void *data); void __init u8500_register_amba_device(struct amba_device *dev, void *data); extern struct platform_device u8500_gpio_devs[]; extern struct platform_device u5500_gpio_devs[]; extern struct platform_device u8500_msp0_device; extern struct platform_device u8500_msp1_device; extern struct platform_device u8500_msp2_device; extern struct amba_device u8500_msp2_spi_device; extern struct platform_device u8500_i2c0_device; extern struct platform_device ux500_i2c_controller1; extern struct platform_device ux500_i2c_controller2; extern struct platform_device ux500_i2c_controller3; extern struct platform_device u8500_i2c4_device; extern struct platform_device ux500_mcde_device; extern struct platform_device u8500_hsit_device; extern struct platform_device u8500_hsir_device; extern struct platform_device u8500_shrm_device; extern struct platform_device ux500_b2r2_device; extern struct platform_device u8500_pmem_device; extern struct platform_device u8500_pmem_mio_device; extern struct platform_device u8500_pmem_hwb_device; extern struct amba_device ux500_rtc_device; extern struct platform_device ux500_dma_device; extern struct platform_device ux500_hash1_device; extern struct amba_device u8500_ssp0_device; extern struct amba_device u8500_ssp1_device; extern struct amba_device ux500_spi0_device; extern struct amba_device ux500_sdi4_device; extern struct amba_device ux500_sdi0_device; extern struct amba_device ux500_sdi1_device; extern struct amba_device ux500_sdi2_device; extern struct platform_device u8500_ab8500_device; extern struct platform_device ux500_musb_device; extern struct amba_device ux500_uart0_device; extern struct amba_device ux500_uart1_device; extern struct amba_device ux500_uart2_device; extern struct platform_device ske_keypad_device; extern struct platform_device u5500_pwm0_device; extern struct platform_device u5500_pwm1_device; extern struct platform_device u5500_pwm2_device; extern struct platform_device u5500_pwm3_device; #ifdef CONFIG_U5500_MLOADER_HELPER extern struct platform_device mloader_helper_device; #endif /* * Do not use inside drivers. Check it in the board file and alter platform * data. */ extern int platform_id; #define MOP500_PLATFORM_ID 0 #define HREF_PLATFORM_ID 1 #define MOP500_PLATFORM_ID 0 #define HREF_PLATFORM_ID 1 /** * Touchpanel related macros declaration */ #define TOUCH_GPIO_PIN 84 #define TOUCH_XMAX 384 #define TOUCH_YMAX 704 #define PRCMU_CLOCK_OCR 0x1CC #define TSC_EXT_CLOCK_9_6MHZ 0x840000 #define TSC_AVDD_VOLTAGE_2_5 0x08 #define TSC_AVDD_AUX1_REGULATOR 0x01 #endif