Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ezynq
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
ezynq
Commits
ed874113
Commit
ed874113
authored
Nov 03, 2013
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix - dirty debug for 393 broke microzed (hardwired UART0)
parent
94448d0b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
28 deletions
+11
-28
ezynq_uboot.py
ezynq_uboot.py
+0
-17
zed_ezynq.h
u-boot-tree/include/configs/ezynq/zed_ezynq.h
+10
-10
zynq_microzed.h
u-boot-tree/include/configs/zynq_microzed.h
+1
-1
No files found.
ezynq_uboot.py
View file @
ed874113
...
...
@@ -720,26 +720,9 @@ int arch_cpu_init(void)
'''
if
(
'uart_xmit'
in
self
.
sections
)
and
self
.
features
.
get_par_value_or_none
(
'LAST_PRINT_DEBUG'
):
self
.
cfile
+=
'
\t
uart_put_hex(readl(0xe000002c));
\n
'
self
.
cfile
+=
'
\t
uart_putc(0xd);
\n
'
self
.
cfile
+=
'
\t
uart_putc(0xa);
\n
'
self
.
cfile
+=
'
\t
uart_put_hex(readl(0xe000002c));
\n
'
self
.
cfile
+=
'
\t
uart_putc(0xd);
\n
'
self
.
cfile
+=
'
\t
uart_putc(0xa);
\n
'
# self.cfile+='\twhile((readl(0xe000002c) & 0x808) != 8); /* uart0.channel_sts Channel status */\n'
self
.
cfile
+=
'
\t
uart_put_hex(readl(0xe000002c));
\n
'
self
.
cfile
+=
'
\t
uart_putc(0xd);
\n
'
self
.
cfile
+=
'
\t
uart_putc(0xa);
\n
'
self
.
cfile
+=
'
\t
uart_put_hex(readl(0xe000002c));
\n
'
self
.
cfile
+=
'
\t
uart_putc(0xd);
\n
'
self
.
cfile
+=
'
\t
uart_putc(0xa);
\n
'
self
.
cfile
+=
'
\t
uart_put_hex(0x12345678);
\n
'
self
.
cfile
+=
'
\t
uart_putc(0xd);
\n
'
self
.
cfile
+=
'
\t
uart_putc(0xa);
\n
'
self
.
cfile
+=
'
\t
uart_put_hex(0x12345678);
\n
'
self
.
cfile
+=
'
\t
uart_putc(0xd);
\n
'
self
.
cfile
+=
'
\t
uart_putc(0xa);
\n
'
self
.
cfile
+=
'
\t
while((readl(0xe000002c) & 0x808) != 8); /* uart0.channel_sts Channel status */
\n
'
if
'uart_xmit'
in
self
.
sections
:
self
.
cfile
+=
'
\t
uart_wait_tx_fifo_empty(); /* u-boot may re-program UART differently, wait all is sent before getting there */
\n
'
#uart_wait_tx_fifo_empty() - add if u-boot debug is on
...
...
u-boot-tree/include/configs/ezynq/zed_ezynq.h
View file @
ed874113
...
...
@@ -30,7 +30,7 @@
#define CONFIG_EZYNQ_BOOT_DEBUG Y
/* configure UARTx and send register dumps there.*/
#define CONFIG_EZYNQ_LOCK_SLCR OFF
/* Lock SLCR registers when all is done. */
#define CONFIG_EZYNQ_LED_DEBUG 47
/* toggle LED during boot */
#define CONFIG_EZYNQ_UART_DEBUG_USE_LED
/* turn on/off LED while waiting for transmit FIFO not full */
#define CONFIG_EZYNQ_UART_DEBUG_USE_LED
N
/* turn on/off LED while waiting for transmit FIFO not full */
#define CONFIG_EZYNQ_DUMP_SLCR_EARLY N
/* Dump SLCR registers as soon as UART is initialized (depends on CONFIG_EZYNQ_BOOT_DEBUG) */
#define CONFIG_EZYNQ_DUMP_DDRC_EARLY N
/* Dump DDRC registers as soon as UART is initialized (depends on CONFIG_EZYNQ_BOOT_DEBUG) */
...
...
@@ -38,29 +38,29 @@
#define CONFIG_EZYNQ_DUMP_DDRC_LATE N
/* Dump DDRC registers after DDR memory is initialized (depends on CONFIG_EZYNQ_BOOT_DEBUG) */
#define CONFIG_EZYNQ_DUMP_TRAINING_EARLY N
/* Training results registers before DDRC initialization */
#define CONFIG_EZYNQ_DUMP_TRAINING_LATE Y
/* Training results registers after DDRC initialization */
#define CONFIG_EZYNQ_DUMP_OCM
y
/* Dump (some of) OCM data */
#define CONFIG_EZYNQ_DUMP_DDR
y
/* Dump (some of) DDR data */
#define CONFIG_EZYNQ_DUMP_OCM
n
/* Dump (some of) OCM data */
#define CONFIG_EZYNQ_DUMP_DDR
n
/* Dump (some of) DDR data */
#if 1
#define CONFIG_EZYNQ_DUMP_OCM_LOW 0x0
/* OCM dump start (deafault 0) */
#define CONFIG_EZYNQ_DUMP_OCM_HIGH
0x2
ff
/* OCM dump end (deafault 0x2ff, full - 0x2ffff) */
#define CONFIG_EZYNQ_DUMP_OCM_HIGH
0x2ff
ff
/* OCM dump end (deafault 0x2ff, full - 0x2ffff) */
#define CONFIG_EZYNQ_DUMP_DDR_LOW 0x4000000
/* DDR dump start (deafault 0x4000000, start of the OCM copy) */
#define CONFIG_EZYNQ_DUMP_DDR_HIGH 0x40
002
ff
/* DDR dump end (deafault 0x40002ff) */
#define CONFIG_EZYNQ_DUMP_DDR_HIGH 0x40
2ff
ff
/* DDR dump end (deafault 0x40002ff) */
#endif
/* Turning LED on/off at different stages of the boot process. Requires CONFIG_EZYNQ_LED_DEBUG and CONFIG_EZYNQ_BOOT_DEBUG to be set
If defined, each can be 0,1, ON or OFF */
#define CONFIG_EZYNQ_LED_CHECKPOINT_1 OFF
/* in RBL setup, as soon as MIO is programmed, should be OFF to use GPIO */
#define CONFIG_EZYNQ_LED_CHECKPOINT_2 OFF
/* First after getting to user code */
#define CONFIG_EZYNQ_LED_CHECKPOINT_3 O
N
/* After setting clock registers */
#define CONFIG_EZYNQ_LED_CHECKPOINT_3 O
FF
/* After setting clock registers */
#define CONFIG_EZYNQ_LED_CHECKPOINT_4 OFF
/* After PLL bypass is OFF */
#define CONFIG_EZYNQ_LED_CHECKPOINT_5 O
N
/* After UART is programmed */
#define CONFIG_EZYNQ_LED_CHECKPOINT_5 O
FF
/* After UART is programmed */
#define CONFIG_EZYNQ_LED_CHECKPOINT_6 OFF
/* After DCI is calibrated */
#define CONFIG_EZYNQ_LED_CHECKPOINT_7 O
N
/* After DDR is initialized */
#define CONFIG_EZYNQ_LED_CHECKPOINT_7 O
FF
/* After DDR is initialized */
#define CONFIG_EZYNQ_LED_CHECKPOINT_8 OFF
/* Before relocation to DDR (to 0x4000000+ ) */
#define CONFIG_EZYNQ_LED_CHECKPOINT_9 ON
/* After relocation to DDR (to 0x4000000+ ) */
#define CONFIG_EZYNQ_LED_CHECKPOINT_10 O
FF
/* Before remapping OCM0-OCM2 high */
#define CONFIG_EZYNQ_LED_CHECKPOINT_10 O
N
/* Before remapping OCM0-OCM2 high */
#define CONFIG_EZYNQ_LED_CHECKPOINT_11 ON
/* After remapping OCM0-OCM2 high */
#define CONFIG_EZYNQ_LED_CHECKPOINT_12 O
FF
/* Before leaving lowlevel_init() */
#define CONFIG_EZYNQ_LED_CHECKPOINT_12 O
N
/* Before leaving lowlevel_init() */
#define CONFIG_EZYNQ_LAST_PRINT_DEBUG y
/* 'Output to UART before exiting arch_cpu_init() */
/* MIO configuration */
#define CONFIG_EZYNQ_OCM
/* not used */
...
...
u-boot-tree/include/configs/zynq_microzed.h
View file @
ed874113
...
...
@@ -39,7 +39,7 @@
#include <configs/ezynq/ezynq_XC7Z010_1CLG400.h>
#include <configs/ezynq/zed_ezynq.h>
#if
1
#if
0
#undef CONFIG_EZYNQ_BOOT_DEBUG Y /* configure UARTx and send register dumps there.*/
#endif
#define CONFIG_CMD_MEMTEST
...
...
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