- 16 Mar, 2015 1 commit
-
-
robertfoss authored
-
- 11 Mar, 2015 2 commits
-
-
Sean Cross authored
Remove unreachable code paths and awkward code comments. Signed-off-by:
Sean Cross <xobs@kosagi.com>
-
Sean Cross authored
There is some racy condition where multiple bytes can cause a deadlock. Until this is figured out, limit the FIFO to 1 byte. Signed-off-by:
Sean Cross <xobs@kosagi.com>
-
- 19 Feb, 2015 1 commit
-
-
Sean Cross authored
These calls enter into the MT6260 ROM. Explain a bit more about where they come from and what their function prototypes are. Signed-off-by:
Sean Cross <xobs@kosagi.com>
-
- 05 Feb, 2015 10 commits
-
-
Sean Cross authored
To ensure everything is rebuilt, have the 'test' and 'shell' targets depend on the 'all' target. Signed-off-by:
Sean Cross <xobs@kosagi.com>
-
Sean Cross authored
The 'make shell' target loads fernly onto the board, then opens an interactive shell with it. Signed-off-by:
Sean Cross <xobs@kosagi.com>
-
Sean Cross authored
To interactively communicate with the fernly loader, pass '-s' to the fernly-usb-loader program. Otherwise it will wait for the shell to start and then exit. Signed-off-by:
Sean Cross <xobs@kosagi.com>
-
Sean Cross authored
It's unclear whether this refactor improves things at all, but it's still limited to 32-byte buffers. Still, it results in less code, which seems like a good thing. Signed-off-by:
Sean Cross <xobs@kosagi.com>
-
Sean Cross authored
Since puts() calls serial_putc() directly, it needs to supply its own \r before \n. Signed-off-by:
Sean Cross <xobs@kosagi.com>
-
Sean Cross authored
The set-plls script was running too quickly, and could sometimes finish before the PLLs were stable. This patch fixes this problem, in addition to making it clearer what the various settings do. Signed-off-by:
Sean Cross <xobs@kosagi.com>
-
Sean Cross authored
Make the dqs/dqy values available for printing in other functions, so we can determine what values were chosen at startup. Signed-off-by:
Sean Cross <xobs@kosagi.com>
-
Sean Cross authored
PSRAM was failing on some newer parts. This change writes additional values to the EMI controller early on that seems to fix the problems. Signed-off-by:
Sean Cross <xobs@kosagi.com>
-
Sean Cross authored
We can save a bit of space by not printing out command names twice. Signed-off-by:
Sean Cross <xobs@kosagi.com>
-
Sean Cross authored
Since putchar() is only called by printf() (as opposed to the lower- level serial_putc()), we can have it nicely format the output by adding \r when \n is printed. To get the old behavior back, call serial_putc() directly. This fixes gcc's optimization when calling: printf("\n") As this will get silently turned into a call to putchar('\n') Signed-off-by:
Sean Cross <xobs@kosagi.com>
-
- 04 Feb, 2015 9 commits
-
-
Sean Cross authored
We now use 32 bytes of the USB FIFO to increase performance with bulk operations. There may still be issues lurking, and 64-bytes causes issues, but so far I've been able to read the entire SPI in 30 seconds, and it validates. Signed-off-by:
Sean Cross <xobs@kosagi.com>
-
Sean Cross authored
The dummy read was due to a bug in the host-side flashrom code. It was sending the NULL byte from the string. The host code has been fixed, so the dummy read should be removed. Signed-off-by:
Sean Cross <xobs@kosagi.com>
-
Sean Cross authored
This fixes printing '\r' when '\n' is printed. Signed-off-by:
Sean Cross <xobs@kosagi.com>
-
Sean Cross authored
Since putc() doesn't automatically print '\r' when '\n' is printed, we must manually do this conversion ourselves. Signed-off-by:
Sean Cross <xobs@kosagi.com>
-
Sean Cross authored
Since we have an internal terminal of sorts, remove the call to 'screen' when not running in monitor mode. Signed-off-by:
Sean Cross <xobs@kosagi.com>
-
Sean Cross authored
The flashrom protocol is binary, for speed. Document this protocol. Signed-off-by:
Sean Cross <xobs@kosagi.com>
-
Sean Cross authored
In order to improve reliability, add a binary mode for interacting with the SPI chip. This lets us hook up flashrom. Signed-off-by:
Sean Cross <xobs@kosagi.com>
-
Sean Cross authored
Since serial_putc() doesn't automatically add \r to \n, add it in puts(). Signed-off-by:
Sean Cross <xobs@kosagi.com>
-
Sean Cross authored
The serial driver was having issues reading data. This commit makes the serial driver more robust. Signed-off-by:
Sean Cross <xobs@kosagi.com>
-
- 03 Feb, 2015 1 commit
-
-
Sean Cross authored
Due to a typo, USB receive was unreliable. This patch corrects a typo that was causing USB receive to fail on certain devices. Signed-off-by:
Sean Cross <xobs@kosagi.com>
-
- 02 Feb, 2015 10 commits
-
-
Jacob Rosenthal authored
The default USB-CDC driver that ships with OS X does not recognize the Fernvale platform. Link to a repo maintianed by Jacob Rosenthal that works around the problem. Signed-off-by:
Sean Cross <xobs@kosagi.com>
-
robertfoss authored
To make cross-compilation easy, refer users to the setup_codesourcery repo that is maintained by Robert Foss. Signed-off-by:
Sean Cross <xobs@kosagi.com>
-
robertfoss authored
This silences some printf() warnings that appear due to varying sizes of printf arguments.
-
Sean Cross authored
Signed-off-by:
Sean Cross <xobs@kosagi.com>
-
Sean Cross authored
Signed-off-by:
Sean Cross <xobs@kosagi.com>
-
Sean Cross authored
Signed-off-by:
Sean Cross <xobs@kosagi.com>
-
Sean Cross authored
Replace %004x with %04x and %008x with %08x. Signed-off-by:
Sean Cross <xobs@kosagi.com>
-
Sourcerer authored
This adds support for the Fernvale keypad. Signed-off-by:
Sourcerer <sourcerer@gmx.at>
-
Sean Cross authored
Use the macros STDIN_FILENO and STDOUT_FILENO to refer to the file handles for stdin and stdout. This prevents us from using the wrong handle to write or read, which was a problem with the older code. Signed-off-by:
Sean Cross <xobs@kosagi.com>
-
Sean Cross authored
This file does not exist. Include <string.h> instead. Signed-off-by:
Sean Cross <xobs@kosagi.com>
-
- 14 Jan, 2015 3 commits
-
-
Mandl authored
The memset() prototype from glibc includes __THROW and __nonnull as decorators, which are nonstandard. Remove these for additional compatibility with gcc. Additionally, remove linux/types.h and linux/string.h, and replace them with sys/types.h and sys/string.h.
-
thesourcerer8 authored
Log output received from the Fernvale board to a logfile. Signed-off-by:
thesourcerer8 <pg@futureware.at>
-
thesourcerer8 authored
The "make test" target allows for more convenient testing of new code. It uses novena-usb-hub to power-toggle the USB port on Novena, then upload the new build of fernly. Signed-off-by:
thesourcerer8 <pg@futureware.at>
-
- 30 Dec, 2014 3 commits
-
-
Sean Cross authored
Signed-off-by:
Sean Cross <xobs@kosagi.com>
-
Sean Cross authored
Signed-off-by:
Sean Cross <xobs@kosagi.com>
-
Sean Cross authored
gcc will automatically use these functions for certain operations. Don't punt and use printf(), instead call serial_putc and serial_puts. Signed-off-by:
Sean Cross <xobs@kosagi.com>
-