* either don't wire up I2C, or chips that mux it differently...
* it can include clocking and address info, maybe more.
*/
- if (cpu_is_omap24xx()) {
+ if (cpu_class_is_omap2()) {
if (machine_is_omap_h4()) {
omap_cfg_reg(M19_24XX_I2C1_SCL);
omap_cfg_reg(L15_24XX_I2C1_SDA);
static void omap_init_kp(void)
{
/* REVISIT: 2430 keypad is on TWL4030 */
- if (cpu_is_omap2430())
+ if (cpu_is_omap2430() || cpu_is_omap34xx())
return;
if (machine_is_omap_h2() || machine_is_omap_h3()) {
const struct omap_mmc_conf *mmc;
/* REVISIT: 2430 has HS MMC */
- if (cpu_is_omap2430())
+ if (cpu_is_omap2430() || cpu_is_omap34xx())
return;
/* NOTE: assumes MMC was never (wrongly) enabled */
* Module Input Clock selection
*/
if (cpu_is_omap24xx()) {
- u32 v = omap_readl(OMAP24XX_CONTROL_DEVCONF);
+ u32 v = omap_readl(OMAP2_CONTROL_DEVCONF);
v |= (1 << 24);
- omap_writel(v, OMAP24XX_CONTROL_DEVCONF);
+ omap_writel(v, OMAP2_CONTROL_DEVCONF);
}
}
mmc1_conf = *mmc;
omap_init_uwire();
omap_init_wdt();
omap_init_rng();
- if (!cpu_is_omap2430()) {
+ if (!cpu_is_omap2430() && !cpu_is_omap34xx()) {
omap_init_i2c();
}
return 0;