devices.c (5c34202b8bf942da411b6599668a76b07449bbfd) | devices.c (72d0f1c3cdc7c456e1e357359ec6f566d0a5f264) |
---|---|
1/* 2 * linux/arch/arm/mach-omap2/devices.c 3 * 4 * OMAP2 platform device setup/initialization 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 41 unchanged lines hidden (view full) --- 50 51/* See also arch/arm/plat-omap/devices.c for first I2C on 24xx */ 52static void omap_init_i2c(void) 53{ 54 /* REVISIT: Second I2C not in use on H4? */ 55 if (machine_is_omap_h4()) 56 return; 57 | 1/* 2 * linux/arch/arm/mach-omap2/devices.c 3 * 4 * OMAP2 platform device setup/initialization 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 41 unchanged lines hidden (view full) --- 50 51/* See also arch/arm/plat-omap/devices.c for first I2C on 24xx */ 52static void omap_init_i2c(void) 53{ 54 /* REVISIT: Second I2C not in use on H4? */ 55 if (machine_is_omap_h4()) 56 return; 57 |
58 omap_cfg_reg(J15_24XX_I2C2_SCL); 59 omap_cfg_reg(H19_24XX_I2C2_SDA); | 58 if (!cpu_is_omap2430()) { 59 omap_cfg_reg(J15_24XX_I2C2_SCL); 60 omap_cfg_reg(H19_24XX_I2C2_SDA); 61 } |
60 (void) platform_device_register(&omap_i2c_device2); 61} 62 63#else 64 65static void omap_init_i2c(void) {} 66 67#endif --- 149 unchanged lines hidden --- | 62 (void) platform_device_register(&omap_i2c_device2); 63} 64 65#else 66 67static void omap_init_i2c(void) {} 68 69#endif --- 149 unchanged lines hidden --- |