]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/cpu/arm926ejs/mx27/asm-offsets.c
samsung: trats2: add support for new board Trats2
[karo-tx-uboot.git] / arch / arm / cpu / arm926ejs / mx27 / asm-offsets.c
1 /*
2  * Adapted from Linux v2.6.36 kernel: arch/powerpc/kernel/asm-offsets.c
3  *
4  * This program is used to generate definitions needed by
5  * assembly language modules.
6  *
7  * We use the technique used in the OSF Mach kernel code:
8  * generate asm statements containing #defines,
9  * compile this file to assembler, and then extract the
10  * #defines from the assembly-language output.
11  *
12  * SPDX-License-Identifier:     GPL-2.0+
13  */
14
15 #include <common.h>
16 #include <asm/arch/imx-regs.h>
17
18 #include <linux/kbuild.h>
19
20 int main(void)
21 {
22         DEFINE(AIPI1_PSR0, IMX_AIPI1_BASE + offsetof(struct aipi_regs, psr0));
23         DEFINE(AIPI1_PSR1, IMX_AIPI1_BASE + offsetof(struct aipi_regs, psr1));
24         DEFINE(AIPI2_PSR0, IMX_AIPI2_BASE + offsetof(struct aipi_regs, psr0));
25         DEFINE(AIPI2_PSR1, IMX_AIPI2_BASE + offsetof(struct aipi_regs, psr1));
26
27         DEFINE(CSCR, IMX_PLL_BASE + offsetof(struct pll_regs, cscr));
28         DEFINE(MPCTL0, IMX_PLL_BASE + offsetof(struct pll_regs, mpctl0));
29         DEFINE(SPCTL0, IMX_PLL_BASE + offsetof(struct pll_regs, spctl0));
30         DEFINE(PCDR0, IMX_PLL_BASE + offsetof(struct pll_regs, pcdr0));
31         DEFINE(PCDR1, IMX_PLL_BASE + offsetof(struct pll_regs, pcdr1));
32         DEFINE(PCCR0, IMX_PLL_BASE + offsetof(struct pll_regs, pccr0));
33         DEFINE(PCCR1, IMX_PLL_BASE + offsetof(struct pll_regs, pccr1));
34
35         DEFINE(ESDCTL0_ROF, offsetof(struct esdramc_regs, esdctl0));
36         DEFINE(ESDCFG0_ROF, offsetof(struct esdramc_regs, esdcfg0));
37         DEFINE(ESDCTL1_ROF, offsetof(struct esdramc_regs, esdctl1));
38         DEFINE(ESDCFG1_ROF, offsetof(struct esdramc_regs, esdcfg1));
39         DEFINE(ESDMISC_ROF, offsetof(struct esdramc_regs, esdmisc));
40
41         return 0;
42 }