| 1 | #ifndef __GLAMO_MFD_H |
| 2 | #define __GLAMO_MFD_H |
| 3 | |
| 4 | struct glamo_core; |
| 5 | struct glamo_spigpio_platform_data; |
| 6 | struct glamo_fb_platform_data; |
| 7 | |
| 8 | struct glamo_mmc_platform_data { |
| 9 | int (*glamo_mmc_use_slow)(void); |
| 10 | |
| 11 | struct glamo_core *core; |
| 12 | }; |
| 13 | |
| 14 | struct glamo_platform_data { |
| 15 | struct glamo_fb_platform_data *fb_data; |
| 16 | struct glamo_spigpio_platform_data *spigpio_data; |
| 17 | struct glamo_mmc_platform_data *mmc_data; |
| 18 | int gpio_base; |
| 19 | |
| 20 | unsigned int osci_clock_rate; |
| 21 | |
| 22 | int (*glamo_irq_is_wired)(void); |
| 23 | void (*glamo_external_reset)(int); |
| 24 | }; |
| 25 | |
| 26 | enum glamo_engine { |
| 27 | GLAMO_ENGINE_CAPTURE = 0, |
| 28 | GLAMO_ENGINE_ISP = 1, |
| 29 | GLAMO_ENGINE_JPEG = 2, |
| 30 | GLAMO_ENGINE_MPEG_ENC = 3, |
| 31 | GLAMO_ENGINE_MPEG_DEC = 4, |
| 32 | GLAMO_ENGINE_LCD = 5, |
| 33 | GLAMO_ENGINE_CMDQ = 6, |
| 34 | GLAMO_ENGINE_2D = 7, |
| 35 | GLAMO_ENGINE_3D = 8, |
| 36 | GLAMO_ENGINE_MMC = 9, |
| 37 | GLAMO_ENGINE_MICROP0 = 10, |
| 38 | GLAMO_ENGINE_RISC = 11, |
| 39 | GLAMO_ENGINE_MICROP1_MPEG_ENC = 12, |
| 40 | GLAMO_ENGINE_MICROP1_MPEG_DEC = 13, |
| 41 | #if 0 |
| 42 | GLAMO_ENGINE_H264_DEC = 14, |
| 43 | GLAMO_ENGINE_RISC1 = 15, |
| 44 | GLAMO_ENGINE_SPI = 16, |
| 45 | #endif |
| 46 | __NUM_GLAMO_ENGINES |
| 47 | }; |
| 48 | |
| 49 | |
| 50 | #endif |
| 51 | |