From 214284b48de439b2fb1582519838e3b73d5bc360 Mon Sep 17 00:00:00 2001 From: "Wesley W. Terpstra" <w.terpstra@gsi.de> Date: Tue, 3 Jul 2012 12:03:21 +0200 Subject: [PATCH] Added arria board parameters --- boards/arria/board.c | 13 +++++++++++++ boards/arria/board.h | 30 ++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 boards/arria/board.c create mode 100644 boards/arria/board.h diff --git a/boards/arria/board.c b/boards/arria/board.c new file mode 100644 index 000000000..72dc1a77b --- /dev/null +++ b/boards/arria/board.c @@ -0,0 +1,13 @@ +#include "board.h" + +/* Board-specific initialization code */ + +int board_init() +{ + +} + +int board_update() +{ + +} \ No newline at end of file diff --git a/boards/arria/board.h b/boards/arria/board.h new file mode 100644 index 000000000..f9fdacb4c --- /dev/null +++ b/boards/arria/board.h @@ -0,0 +1,30 @@ +#ifndef __BOARD_H +#define __BOARD_H + +#include <hw/memlayout.h> + +/* Board-specific parameters */ + +/* WR Core system/CPU clock frequency in Hz */ +#define CPU_CLOCK 125000000ULL + +/* WR Reference clock period (picoseconds) and frequency (Hz) */ +#define REF_CLOCK_PERIOD_PS 8000 +#define REF_CLOCK_FREQ_HZ 125000000 + +/* Baud rate of the builtin UART (does not apply to the VUART) */ +#define UART_BAUDRATE 115200ULL + +/* Maximum number of simultaneously created sockets */ +#define NET_MAX_SOCKETS 3 + +/* Socket buffer size, determines the max. RX packet size */ +#define NET_SKBUF_SIZE 256 + +/* Number of auxillary clock channels - usually equal to the number of FMCs */ +#define NUM_AUX_CLOCKS 1 + +int board_init(); +int board_update(); + +#endif -- GitLab