summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-netx/include/mach/netx-cm.h
blob: 37cf76d1f9bdb994d49a41f2e075216f26b4c5bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

#ifndef __AT_CM_USERAREAS_H__
#define __AT_CM_USERAREAS_H__

int netx_cm_init(void);

struct netx_cm_userarea_1 {
        unsigned short signature;             /* configuration block signature */
        unsigned short version;               /* version information */
        unsigned short crc16;                 /* crc16 checksum over all 3 areas, including the reserved blocks */
        unsigned char mac[4][6];              /* mac addresses */
        unsigned char reserved[2];            /* reserved, must be 0 */
};

struct netx_cm_userarea_2 {
        unsigned long sdram_size;              /* sdram size in bytes */
        unsigned long sdram_control;           /* sdram control register value (sdram_general_ctrl) */
        unsigned long sdram_timing;            /* sdram timing register value (sdram_timing_ctrl) */
        unsigned char reserved0[20];           /* reserved, must be 0 */
};

struct netx_cm_userarea_3 {
        unsigned char reserved[32];          /* reserved, must be 0 */
};

struct netx_cm_userarea {
	struct netx_cm_userarea_1 area_1;
	struct netx_cm_userarea_2 area_2;
	struct netx_cm_userarea_3 area_3;
};

#endif  /* __AT_CM_USERAREAS_H__ */