-
Notifications
You must be signed in to change notification settings - Fork 1
Brett/dev/no ints #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
* add support for the ariane soc based genesys2 board * bugfix :: correct mtime register offsets * bugfix :: correct the clock-frequency for uart0 Co-authored-by: akif <[email protected]>
* add support for the ariane soc based genesys2 board includes a super simple test to verify printk, and a basic kernel launch of our "app". * revert sample app to default * bugfix :: correct mtime register offsets * bugfix :: correct the clock-frequency for uart0 * Modified ariane.dtsi file to add the xlnx_gpio0 support. This required a small change in yaml binding file to make a property optional. Also, cleaned the pinmux file so that it can be filled appropriately. modified: boards/riscv/genesys2/genesys2.dts modified: boards/riscv/genesys2/pinmux.c modified: dts/bindings/gpio/xlnx,xlnx,xps-gpio-1.00.a.yaml modified: dts/riscv/rv64_ariane.dtsi Co-authored-by: akif <[email protected]> Co-authored-by: Akif Saglam <[email protected]>
* Modified ariane.dtsi file to add the xlnx_gpio0 support. This required a small change in yaml binding file to make a property optional. Also, cleaned the pinmux file so that it can be filled appropriately. * bug fix :: Correct gpio reg addressing * bug fix:: Correct SYS_CLOCK_HW_CYCLES_PER_SEC
systems with CLINT & PLIC setups. Can build with ints enabled, chars come out but isr is never called. Get rid of various hacks
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| config BOARD_GENESYS2 | ||
| bool "Recogni Genesys2 FPGA target" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this have the SiFive copyright?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed all this myself ...
| @@ -0,0 +1,17 @@ | |||
| # Copyright (c) 2019 SiFive Inc. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should nuke these lines.
| @@ -0,0 +1,45 @@ | |||
| .. _hifive1_revb: | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be updated to the genesys info.
| mmu-type = "riscv,sv39"; | ||
| tlb-split; | ||
| // HLIC - hart local interrupt controller | ||
| CPU0_intc: interrupt-controller { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer calling this the hlic - ill update this stuff after we merge.
| while (1) { | ||
| gpio_pin_set(dev, PIN, (int)led_is_on); | ||
| led_is_on = !led_is_on; | ||
| printk("Going to sleep..\n"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not be editing the sample apps at all. This will never get accepted upsteream.
| void main(void) | ||
| { | ||
| printk("Hello World! %s\n", CONFIG_BOARD); | ||
| printk("Hello from zephyr! %s %s %s\n", CONFIG_BOARD, __DATE__, __TIME__); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above
This makes the gatt metrics also available for gatt write-without-rsp-cb so it now prints the rate of each write: uart:~$ gatt write-without-response-cb 1e ff 10 10 Write #1: 16 bytes (0 bps) Write #2: 32 bytes (3445948416 bps) Write #3: 48 bytes (2596929536 bps) Write #4: 64 bytes (6400 bps) Write #5: 80 bytes (8533 bps) Write #6: 96 bytes (10666 bps) Write #7: 112 bytes (8533 bps) Write #8: 128 bytes (9955 bps) Write #9: 144 bytes (11377 bps) Write #10: 160 bytes (7680 bps) Write #11: 176 bytes (8533 bps) Write #12: 192 bytes (9386 bps) Write Complete (err 0) Write #13: 208 bytes (8533 bps) Write #14: 224 bytes (9244 bps) Write #15: 240 bytes (9955 bps) Write #16: 256 bytes (8000 bps) Signed-off-by: Luiz Augusto von Dentz <[email protected]>
feature: Clone the ns15560 uart driver as digilent_15560 so we can modify it it for PLIC/CLINT systems without disturbing legacy users.