Exemple #1
0
int intr_init(const int auto_eoi)
{
#ifdef DM37XX
    omap_intr.base = OMAP3_DM37XX_INTR_BASE;
#endif
#ifdef AM335X
    omap_intr.base = OMAP3_AM335X_INTR_BASE;
#endif
    omap_intr.size = 0x1000 ; /* 4K */

    kern_phys_map_ptr(omap_intr.base,omap_intr.size,
	&intr_phys_map, (vir_bytes) &omap_intr.base);
    return 0;
}
Exemple #2
0
int
intr_init(const int auto_eoi)
{
	if (BOARD_IS_BBXM(machine.board_id)) {
		omap_intr.base = OMAP3_DM37XX_INTR_BASE;
	} else if (BOARD_IS_BB(machine.board_id)) {
		omap_intr.base = OMAP3_AM335X_INTR_BASE;
	} else {
		panic
		    ("Can not do the interrupt setup. machine (0x%08x) is unknown\n",
		    machine.board_id);
	};
	omap_intr.size = 0x1000;	/* 4K */

	kern_phys_map_ptr(omap_intr.base, omap_intr.size,
	    VMMF_UNCACHED | VMMF_WRITE,
	    &intr_phys_map, (vir_bytes) & omap_intr.base);
	return 0;
}