]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/cpu/armv7/mx6/asm-offsets.c
imx: mx6: unify source code for TX6Q and TX6DL
[karo-tx-uboot.git] / arch / arm / cpu / armv7 / mx6 / 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  * This program is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU General Public License
14  * as published by the Free Software Foundation; either version
15  * 2 of the License, or (at your option) any later version.
16  */
17
18 #include <common.h>
19 #include <asm/arch/imx-regs.h>
20 #include <asm/arch/crm_regs.h>
21
22 #include <linux/kbuild.h>
23
24 int main(void)
25 {
26         DEFINE(CCM_CCR, offsetof(struct mxc_ccm_reg, ccr));
27         DEFINE(CCM_CCDR, offsetof(struct mxc_ccm_reg, ccdr));
28         DEFINE(CCM_CSR, offsetof(struct mxc_ccm_reg, csr));
29         DEFINE(CCM_CCSR, offsetof(struct mxc_ccm_reg, ccsr));
30         DEFINE(CCM_CACRR, offsetof(struct mxc_ccm_reg, cacrr));
31         DEFINE(CCM_CBCDR, offsetof(struct mxc_ccm_reg, cbcdr));
32         DEFINE(CCM_CBCMR, offsetof(struct mxc_ccm_reg, cbcmr));
33         DEFINE(CCM_CSCMR1, offsetof(struct mxc_ccm_reg, cscmr1));
34         DEFINE(CCM_CSCMR2, offsetof(struct mxc_ccm_reg, cscmr2));
35         DEFINE(CCM_CSCDR1, offsetof(struct mxc_ccm_reg, cscdr1));
36         DEFINE(CCM_CS1CDR, offsetof(struct mxc_ccm_reg, cs1cdr));
37         DEFINE(CCM_CS2CDR, offsetof(struct mxc_ccm_reg, cs2cdr));
38         DEFINE(CCM_CDCDR, offsetof(struct mxc_ccm_reg, cdcdr));
39         DEFINE(CCM_CHSCCDR, offsetof(struct mxc_ccm_reg, chsccdr));
40         DEFINE(CCM_CSCDR2, offsetof(struct mxc_ccm_reg, cscdr2));
41         DEFINE(CCM_CSCDR3, offsetof(struct mxc_ccm_reg, cscdr3));
42         DEFINE(CCM_CSCDR4, offsetof(struct mxc_ccm_reg, cscdr4));
43         DEFINE(CCM_CDHIPR, offsetof(struct mxc_ccm_reg, cdhipr));
44         DEFINE(CCM_CDCR, offsetof(struct mxc_ccm_reg, cdcr));
45         DEFINE(CCM_CTOR, offsetof(struct mxc_ccm_reg, ctor));
46         DEFINE(CCM_CLPCR, offsetof(struct mxc_ccm_reg, clpcr));
47         DEFINE(CCM_CISR, offsetof(struct mxc_ccm_reg, cisr));
48         DEFINE(CCM_CIMR, offsetof(struct mxc_ccm_reg, cimr));
49         DEFINE(CCM_CCOSR, offsetof(struct mxc_ccm_reg, ccosr));
50         DEFINE(CCM_CGPR, offsetof(struct mxc_ccm_reg, cgpr));
51         DEFINE(CCM_CCGR0, offsetof(struct mxc_ccm_reg, CCGR0));
52         DEFINE(CCM_CCGR1, offsetof(struct mxc_ccm_reg, CCGR1));
53         DEFINE(CCM_CCGR2, offsetof(struct mxc_ccm_reg, CCGR2));
54         DEFINE(CCM_CCGR3, offsetof(struct mxc_ccm_reg, CCGR3));
55         DEFINE(CCM_CCGR4, offsetof(struct mxc_ccm_reg, CCGR4));
56         DEFINE(CCM_CCGR5, offsetof(struct mxc_ccm_reg, CCGR5));
57         DEFINE(CCM_CCGR6, offsetof(struct mxc_ccm_reg, CCGR6));
58         DEFINE(CCM_CCGR7, offsetof(struct mxc_ccm_reg, CCGR7));
59         DEFINE(CCM_CMEOR, offsetof(struct mxc_ccm_reg, cmeor));
60
61         DEFINE(ANATOP_PLL_ENET, offsetof(struct anatop_regs, pll_enet));
62         return 0;
63 }