Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
f4acbfd8
Commit
f4acbfd8
authored
Aug 16, 2019
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrs: move GPIO definitions to gpio-wrs.h
parent
5cce6590
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
19 deletions
+11
-19
ad9516.c
dev/ad9516.c
+0
-5
ext-board.h
include/ext-board.h
+0
-12
gpio-wrs.h
include/gpio-wrs.h
+11
-0
spll_external.c
softpll/spll_external.c
+0
-1
wrs_main.c
wrs_main.c
+0
-1
No files found.
dev/ad9516.c
View file @
f4acbfd8
...
...
@@ -20,7 +20,6 @@
#include "board.h"
#include "syscon.h"
#include "gpio-wrs.h"
#include "ext-board.h"
#include "rt_ipc.h"
...
...
@@ -70,10 +69,6 @@ struct ad9516_reg {
#define SPI_CTRL_GO_BSY (1<<8)
#define SPI_CTRL_CHAR_LEN(x) ((x) & 0x7f)
#define GPIO_PLL_RESET_N 1
#define GPIO_SYS_CLK_SEL 0
#define GPIO_PERIPH_RESET_N 3
#define CS_PLL 0
/* AD9516 on SPI CS0 */
static
int
oc_spi_init
(
void
*
base_addr
)
...
...
include/ext-board.h
deleted
100644 → 0
View file @
5cce6590
#ifndef __EXT_BOARD_H
#define __EXT_BOARD_H
#define GPIO_EXT_PLL_RESET_N 4
#define GPIO_EXT_BOARD_DETECT 5
#define GPIO_EXT_OSC_FRED_D0 6
#define GPIO_EXT_OSC_FRED_D1 7
#define GPIO_EXT_OSC_FRED_D2 8
extern
int
ljd_present
;
#endif
include/gpio-wrs.h
View file @
f4acbfd8
...
...
@@ -10,6 +10,17 @@
#include "board.h"
#define GPIO_SYS_CLK_SEL 0
#define GPIO_PLL_RESET_N 1
#define GPIO_PERIPH_RESET_N 3
#define GPIO_EXT_PLL_RESET_N 4
#define GPIO_EXT_BOARD_DETECT 5
#define GPIO_EXT_OSC_FRED_D0 6
#define GPIO_EXT_OSC_FRED_D1 7
#define GPIO_EXT_OSC_FRED_D2 8
extern
int
ljd_present
;
struct
GPIO_WB
{
uint32_t
CODR
;
/*Clear output register*/
...
...
softpll/spll_external.c
View file @
f4acbfd8
...
...
@@ -14,7 +14,6 @@
#include "softpll_ng.h"
#include "irq.h"
#include "gpio-wrs.h"
#include "ext-board.h"
#define ALIGN_SAMPLE_PERIOD 100000
#define ALIGN_TARGET 0
...
...
wrs_main.c
View file @
f4acbfd8
...
...
@@ -14,7 +14,6 @@
#include "revision.h"
#include "system_checks.h"
#include "gpio-wrs.h"
#include "ext-board.h"
int
scb_ver
=
33
;
/* SCB version */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment