Skip to content

Commit

Permalink
Merge pull request timvideos#179 from antmicro/update_submodules
Browse files Browse the repository at this point in the history
Update submodules
  • Loading branch information
mithro authored Jul 26, 2019
2 parents db09ad6 + 8a0263f commit 32c6aea
Show file tree
Hide file tree
Showing 23 changed files with 35 additions and 29 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ image-flash-py: image
# This is indicated by a "git submodule status" that does not start with
# a space (" ").
#
LITEX_SUBMODULES=migen litex litedram liteeth litepcie litesata litescope liteusb litevideo
LITEX_SUBMODULES=migen litex litedram liteeth litepcie litesata litescope litevideo
litex-submodules: $(addsuffix /.git,$(addprefix third_party/,$(LITEX_SUBMODULES)))
@if git submodule status --recursive | grep "^[^ ]" >/dev/null; then \
echo ""; \
Expand Down
6 changes: 3 additions & 3 deletions firmware/bist.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ static void busy_wait(unsigned int ds)
{
timer0_en_write(0);
timer0_reload_write(0);
timer0_load_write(SYSTEM_CLOCK_FREQUENCY/10*ds);
timer0_load_write(CONFIG_CLOCK_FREQUENCY/10*ds);
timer0_en_write(1);
timer0_update_value_write(1);
while(timer0_value_read()) timer0_update_value_write(1);
Expand All @@ -44,7 +44,7 @@ void bist_test(void) {
timer0_update_value_write(1);
ticks = timer0_value_read();
ticks = 0xffffffff - ticks;
speed = SYSTEM_CLOCK_FREQUENCY/ticks;
speed = CONFIG_CLOCK_FREQUENCY/ticks;
speed = test_size*speed/1000000;
speed = 8*speed;
printf(" / %u Mbps\n", speed);
Expand All @@ -66,7 +66,7 @@ void bist_test(void) {
timer0_update_value_write(1);
ticks = timer0_value_read();
ticks = 0xffffffff - ticks;
speed = SYSTEM_CLOCK_FREQUENCY/ticks;
speed = CONFIG_CLOCK_FREQUENCY/ticks;
speed = test_size*speed/1000000;
speed = 8*speed;
printf(" / %u Mbps\n", speed);
Expand Down
4 changes: 2 additions & 2 deletions firmware/ci.c
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ static void status_service(void)
{
static int last_event;

if(elapsed(&last_event, SYSTEM_CLOCK_FREQUENCY)) {
if(elapsed(&last_event, CONFIG_CLOCK_FREQUENCY)) {
if(status_enabled) {
status_print();
wputchar('\n');
Expand Down Expand Up @@ -1008,7 +1008,7 @@ static void debug_ddr(void)
sdram_controller_bandwidth_update_write(1);
nr = sdram_controller_bandwidth_nreads_read();
nw = sdram_controller_bandwidth_nwrites_read();
f = SYSTEM_CLOCK_FREQUENCY;
f = CONFIG_CLOCK_FREQUENCY;
burstbits = (2*DFII_NPHASES) << DFII_PIX_DATA_SIZE;
rdb = (nr*f >> (24 - log2(burstbits)))/1000000ULL;
wrb = (nw*f >> (24 - log2(burstbits)))/1000000ULL;
Expand Down
4 changes: 2 additions & 2 deletions firmware/encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ void encoder_service(void) {
static int can_start;

if(encoder_enabled) {
if(elapsed(&last_event, SYSTEM_CLOCK_FREQUENCY/encoder_target_fps))
if(elapsed(&last_event, CONFIG_CLOCK_FREQUENCY/encoder_target_fps))
can_start = 1;
if(can_start & encoder_done()) {
encoder_init(encoder_quality);
Expand All @@ -191,7 +191,7 @@ void encoder_service(void) {
encoder_reader_v_width_write(processor_v_active);
encoder_reader_start_write(1);
}
if(elapsed(&last_fps_event, SYSTEM_CLOCK_FREQUENCY)) {
if(elapsed(&last_fps_event, CONFIG_CLOCK_FREQUENCY)) {
encoder_fps = frame_cnt;
frame_cnt = 0;
}
Expand Down
4 changes: 2 additions & 2 deletions firmware/ethernet.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ void ethernet_init(const unsigned char * mac_addr, const unsigned char *ip_addr)
liteethmac_init();

/* uip periods */
uip_periodic_period = SYSTEM_CLOCK_FREQUENCY/100; /* 10 ms */
uip_arp_period = SYSTEM_CLOCK_FREQUENCY/10; /* 100 ms */
uip_periodic_period = CONFIG_CLOCK_FREQUENCY/100; /* 10 ms */
uip_arp_period = CONFIG_CLOCK_FREQUENCY/10; /* 100 ms */

/* init uip */
process_init();
Expand Down
6 changes: 3 additions & 3 deletions firmware/hdmi_in0.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ static int wait_idelays(void)
while(hdmi_in0_data0_cap_dly_busy_read()
|| hdmi_in0_data1_cap_dly_busy_read()
|| hdmi_in0_data2_cap_dly_busy_read()) {
if(elapsed(&ev, SYSTEM_CLOCK_FREQUENCY >> 6) == 0) {
if(elapsed(&ev, CONFIG_CLOCK_FREQUENCY >> 6) == 0) {
wprintf("dvisampler0: IDELAY busy timeout (%hhx %hhx %hhx)\n",
hdmi_in0_data0_cap_dly_busy_read(),
hdmi_in0_data1_cap_dly_busy_read(),
Expand Down Expand Up @@ -402,7 +402,7 @@ static int hdmi_in0_clocking_locked_filtered(void)
lock_status = 1;
break;
case 1:
if(elapsed(&lock_start_time, SYSTEM_CLOCK_FREQUENCY/4))
if(elapsed(&lock_start_time, CONFIG_CLOCK_FREQUENCY/4))
lock_status = 2;
break;
case 2:
Expand Down Expand Up @@ -432,7 +432,7 @@ void hdmi_in0_service(int freq)
} else {
if(hdmi_in0_locked) {
if(hdmi_in0_clocking_locked_filtered()) {
if(elapsed(&last_event, SYSTEM_CLOCK_FREQUENCY/2)) {
if(elapsed(&last_event, CONFIG_CLOCK_FREQUENCY/2)) {
hdmi_in0_adjust_phase();
if(hdmi_in0_debug)
hdmi_in0_print_status();
Expand Down
2 changes: 1 addition & 1 deletion firmware/heartbeat.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void hb_service(fb_ptrdiff_t fb_offset)

if (heartbeat_status==1) {
hb_fill(color_v, fb_offset);
if(elapsed(&last_event, SYSTEM_CLOCK_FREQUENCY/FILL_RATE)) {
if(elapsed(&last_event, CONFIG_CLOCK_FREQUENCY/FILL_RATE)) {
counter = counter + 1;
if(counter > FILL_RATE/(HEARTBEAT_FREQUENCY*2)) {
color_v = !color_v;
Expand Down
2 changes: 1 addition & 1 deletion firmware/oled.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ static void busy_wait(unsigned int ds)
{
timer0_en_write(0);
timer0_reload_write(0);
timer0_load_write(SYSTEM_CLOCK_FREQUENCY/100*ds);
timer0_load_write(CONFIG_CLOCK_FREQUENCY/100*ds);
timer0_en_write(1);
timer0_update_value_write(1);
while(timer0_value_read()) timer0_update_value_write(1);
Expand Down
2 changes: 1 addition & 1 deletion firmware/pattern.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ void pattern_service(void)
static int last_event;
static char buffer[16];

if(elapsed(&last_event, SYSTEM_CLOCK_FREQUENCY)) {
if(elapsed(&last_event, CONFIG_CLOCK_FREQUENCY)) {
sprintf(buffer, "Uptime: %s", uptime_str());
pattern_draw_text(1, 1, buffer);
}
Expand Down
2 changes: 1 addition & 1 deletion firmware/uip/clock-arch.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ clock_time_t clock_time(void)
unsigned int prescaler;
clock_time_t ticks;

freq = SYSTEM_CLOCK_FREQUENCY;
freq = CONFIG_CLOCK_FREQUENCY;
prescaler = freq/CLOCK_CONF_SECOND;
timer0_update_value_write(1);
ticks = (0xffffffff - timer0_value_read())/prescaler;
Expand Down
2 changes: 1 addition & 1 deletion firmware/uptime.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ void uptime_service(void)
{
static int last_event;

if(elapsed(&last_event, SYSTEM_CLOCK_FREQUENCY)) {
if(elapsed(&last_event, CONFIG_CLOCK_FREQUENCY)) {
uptime_seconds++;
}
}
Expand Down
1 change: 0 additions & 1 deletion scripts/settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,5 @@ LITE_REPOS="
litepcie
litesata
litescope
liteusb
litevideo
"
7 changes: 7 additions & 0 deletions targets/arty/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,13 @@ class BaseSoC(SoCSDRAM):
)
csr_map_update(SoCSDRAM.csr_map, csr_peripherals)

SoCSDRAM.mem_map = {
"rom": 0x00000000, # (default shadow @0x80000000)
"sram": 0x10000000, # (default shadow @0x90000000)
"main_ram": 0x40000000, # (default shadow @0xc0000000)
"csr": 0x60000000, # (default shadow @0xe0000000)
}

mem_map = {
"spiflash": 0x20000000, # (default shadow @0xa0000000)
}
Expand Down
2 changes: 1 addition & 1 deletion third_party/edid-decode
Submodule edid-decode updated from 15df4a to 42f5fa
2 changes: 1 addition & 1 deletion third_party/liteeth
Submodule liteeth updated 76 files
+16 −0 CONTRIBUTORS
+3 −0 examples/make.py
+3 −0 examples/targets/base.py
+4 −1 examples/targets/core.py
+3 −0 examples/targets/etherbone.py
+3 −0 examples/targets/tty.py
+3 −0 examples/targets/udp.py
+3 −0 examples/test/test_analyzer.py
+3 −0 examples/test/test_etherbone.py
+3 −0 examples/test/test_regs.py
+3 −0 examples/test/test_tty.py
+3 −0 examples/test/test_udp.py
+3 −0 liteeth/common.py
+1 −2 liteeth/core/__init__.py
+3 −0 liteeth/core/arp.py
+3 −0 liteeth/core/icmp.py
+3 −0 liteeth/core/ip.py
+1 −0 liteeth/core/mac.py
+3 −0 liteeth/core/udp.py
+3 −0 liteeth/crossbar.py
+3 −0 liteeth/frontend/etherbone.py
+3 −0 liteeth/frontend/tty.py
+3 −3 liteeth/mac/__init__.py
+3 −0 liteeth/mac/common.py
+6 −1 liteeth/mac/core.py
+6 −0 liteeth/mac/crc.py
+5 −0 liteeth/mac/gap.py
+5 −0 liteeth/mac/last_be.py
+5 −0 liteeth/mac/padding.py
+5 −0 liteeth/mac/preamble.py
+5 −0 liteeth/mac/sram.py
+5 −1 liteeth/mac/wishbone.py
+1 −1 liteeth/phy/a7_1000basex.py
+1 −1 liteeth/phy/a7_gtp.py
+3 −0 liteeth/phy/common.py
+3 −0 liteeth/phy/ecp5rgmii.py
+3 −0 liteeth/phy/gmii.py
+3 −0 liteeth/phy/gmii_mii.py
+1 −1 liteeth/phy/k7_1000basex.py
+2 −1 liteeth/phy/ku_1000basex.py
+3 −0 liteeth/phy/mii.py
+3 −0 liteeth/phy/model.py
+3 −3 liteeth/phy/pcs_1000basex.py
+3 −0 liteeth/phy/rmii.py
+3 −0 liteeth/phy/s6rgmii.py
+3 −0 liteeth/phy/s7rgmii.py
+0 −55 liteeth/software/liblwip/Makefile
+0 −60 liteeth/software/liblwip/arch/cc.h
+0 −11 liteeth/software/liblwip/arch/perf.h
+0 −20 liteeth/software/liblwip/arch/sys_arch.h
+0 −184 liteeth/software/liblwip/lwipopts.h
+0 −148 liteeth/software/liblwip/netif/liteethif.c
+0 −17 liteeth/software/liblwip/netif/liteethif.h
+0 −76 liteeth/software/libuip/Makefile
+0 −29 liteeth/software/libuip/clock-arch.c
+0 −10 liteeth/software/libuip/clock-arch.h
+0 −38 liteeth/software/libuip/contiki-conf.h
+0 −95 liteeth/software/libuip/liteethmac-drv.c
+0 −11 liteeth/software/libuip/liteethmac-drv.h
+0 −38 liteeth/software/libuip/rtimer-arch.c
+0 −16 liteeth/software/libuip/rtimer-arch.h
+3 −0 test/model/arp.py
+3 −0 test/model/dumps.py
+3 −0 test/model/etherbone.py
+3 −0 test/model/icmp.py
+3 −0 test/model/ip.py
+3 −0 test/model/mac.py
+3 −0 test/model/phy.py
+3 −0 test/model/udp.py
+4 −1 test/test_arp.py
+3 −0 test/test_etherbone.py
+3 −0 test/test_icmp.py
+3 −0 test/test_ip.py
+4 −1 test/test_mac_core.py
+4 −1 test/test_mac_wishbone.py
+3 −0 test/test_udp.py
2 changes: 1 addition & 1 deletion third_party/liteusb
2 changes: 1 addition & 1 deletion third_party/litex
Submodule litex updated 142 files
2 changes: 1 addition & 1 deletion third_party/litex-renode

0 comments on commit 32c6aea

Please sign in to comment.