2 * Miscellaneous DA8XX functions.
4 * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
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
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #include <asm/arch/hardware.h>
25 #ifndef CONFIG_USE_IRQ
29 * Mask all IRQs by clearing the global enable and setting
30 * the enable clear for all the 90 interrupts.
33 writel(0, &davinci_aintc_regs->ger);
35 writel(0, &davinci_aintc_regs->hier);
37 writel(0xffffffff, &davinci_aintc_regs->ecr1);
38 writel(0xffffffff, &davinci_aintc_regs->ecr2);
39 writel(0xffffffff, &davinci_aintc_regs->ecr3);
44 * Enable PSC for various peripherals.
46 int da8xx_configure_lpsc_items(const struct lpsc_resource *item,
51 for (i = 0; i < n_items; i++)
52 lpsc_on(item[i].lpsc_no);