1.1 --- a/pkg/landfall-examples/ci20_hdmi_i2c/ci20_hdmi_i2c.c Sat Apr 27 23:46:28 2024 +0200
1.2 +++ b/pkg/landfall-examples/ci20_hdmi_i2c/ci20_hdmi_i2c.c Sun Apr 28 18:37:08 2024 +0200
1.3 @@ -1,7 +1,7 @@
1.4 /*
1.5 * Access the HDMI I2C peripheral on the MIPS Creator CI20 board.
1.6 *
1.7 - * Copyright (C) 2020, 2021, 2023 Paul Boddie <paul@boddie.org.uk>
1.8 + * Copyright (C) 2020, 2021, 2023, 2024 Paul Boddie <paul@boddie.org.uk>
1.9 *
1.10 * This program is free software; you can redistribute it and/or
1.11 * modify it under the terms of the GNU General Public License as
1.12 @@ -138,7 +138,6 @@
1.13 l4_addr_t gpio_base = 0, gpio_base_end = 0;
1.14 l4_addr_t hdmi_base = 0, hdmi_base_end = 0;
1.15 l4_addr_t lcd_base = 0, lcd_base_end = 0;
1.16 - l4_addr_t port_f, port_f_end;
1.17
1.18 /* Peripheral abstractions. */
1.19
1.20 @@ -284,12 +283,9 @@
1.21
1.22 /* Configure pins. */
1.23
1.24 - port_f = gpio_base + 0x500;
1.25 - port_f_end = port_f + 0x100;
1.26 + printf("PORTF at 0x%lx...0x%lx.\n", gpio_base + 0x500, gpio_base + 0x600);
1.27
1.28 - printf("PORTF at 0x%lx...0x%lx.\n", port_f, port_f_end);
1.29 -
1.30 - gpio_port_f = jz4780_gpio_init(port_f, port_f_end, 32, 0x7fa7f00f, 0x00580ff0);
1.31 + gpio_port_f = jz4780_gpio_init(gpio_base, 5);
1.32
1.33 printf("Set up GPIO pins...\n");
1.34