summaryrefslogtreecommitdiff
path: root/cesar/hal/arch/inc/regs_addr.h
blob: 2c5f34f7060d5ac2b98b94aba161865711de703d (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
#ifndef regs_addr_h
#define regs_addr_h
/* Cesar project {{{
 *
 * Copyright (C) 2009 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    regs_addr.h
 * \brief   Hardware registers address.
 * \ingroup hal_arch
 */

#define ARCH_SYS_APB_BASE_ADDR          0xc8000000

#define ARCH_MARIA_RB_BASE_ADDR         (ARCH_SYS_APB_BASE_ADDR + 0x040000)
#define ARCH_MARIA_RB_REG(addr)         (* (volatile u32 *) (ARCH_MARIA_RB_BASE_ADDR + (addr)))
#define ARCH_MARIA_RB_CONST_REG(addr)   (* (u32 *) (ARCH_MARIA_RB_BASE_ADDR + (addr)))

/* This one is not supposed to be changed after startup, drop volatile. */
#define ARCH_MARIA_RB_LEON_ADD_START    ARCH_MARIA_RB_CONST_REG (0x120)

/* Maria 2 device ID (MSE500) */
#define ARCH_MARIA_RB_DEVICE_ID         ARCH_MARIA_RB_CONST_REG (0xC)

#endif /* regs_addr_h */