graphit/unipi-kernel.git
6 years agofixed script raspbian to reflect incorrect tag setting
Miroslav Ondra [Mon, 16 Jul 2018 07:42:23 +0000 (09:42 +0200)]
fixed script raspbian to reflect incorrect tag setting

6 years agoFixed a small syntax mistake
Tom Knot [Mon, 9 Jul 2018 09:30:21 +0000 (11:30 +0200)]
Fixed a small syntax mistake

6 years agoFixed mixed declaration
Tom Knot [Mon, 9 Jul 2018 09:25:13 +0000 (11:25 +0200)]
Fixed mixed declaration

6 years agoFixed secondary AO
Tom Knot [Mon, 9 Jul 2018 09:22:57 +0000 (11:22 +0200)]
Fixed secondary AO

6 years agoFixed ai current unit
Tom Knot [Wed, 4 Jul 2018 13:26:29 +0000 (15:26 +0200)]
Fixed ai current unit

6 years agoRemoved 64bit division
Tom Knot [Wed, 4 Jul 2018 13:22:26 +0000 (15:22 +0200)]
Removed 64bit division

6 years agoFixed remainders and resistance units
Tom Knot [Wed, 4 Jul 2018 13:20:24 +0000 (15:20 +0200)]
Fixed remainders and resistance units

6 years agoAdded debug print to current
Tom Knot [Wed, 4 Jul 2018 13:15:04 +0000 (15:15 +0200)]
Added debug print to current

6 years agoChanged scaling to mA
Tom Knot [Wed, 4 Jul 2018 13:09:59 +0000 (15:09 +0200)]
Changed scaling to mA

6 years agoChanged computation for current output
Tom Knot [Wed, 4 Jul 2018 13:03:14 +0000 (15:03 +0200)]
Changed computation for current output

6 years ago- Removed debug prints
Tom Knot [Wed, 4 Jul 2018 12:56:22 +0000 (14:56 +0200)]
- Removed debug prints

- Fixed division by zero

6 years agoFixed offset for stm analog
Tom Knot [Wed, 4 Jul 2018 12:41:12 +0000 (14:41 +0200)]
Fixed offset for stm analog

6 years ago- Added division by 10
Tom Knot [Wed, 4 Jul 2018 12:37:22 +0000 (14:37 +0200)]
- Added division by 10

- Added debug prints

6 years agoRemoved secondary ao mode (as it is always voltage)
Tom Knot [Wed, 4 Jul 2018 12:11:34 +0000 (14:11 +0200)]
Removed secondary ao mode (as it is always voltage)

6 years agoRenamed analog attribute modes
Tom Knot [Wed, 4 Jul 2018 10:49:06 +0000 (12:49 +0200)]
Renamed analog attribute modes

6 years agoFixed a trivial syntax mistake
Tom Knot [Tue, 3 Jul 2018 19:17:47 +0000 (21:17 +0200)]
Fixed a trivial syntax mistake

6 years agoSwapped floating point byte order when reading from Modbus
Tom Knot [Tue, 3 Jul 2018 19:15:21 +0000 (21:15 +0200)]
Swapped floating point byte order when reading from Modbus

6 years agoFixed small syntax mistake
Tom Knot [Fri, 29 Jun 2018 09:22:27 +0000 (11:22 +0200)]
Fixed small syntax mistake

6 years agoFixed wrong datatype for irq flags
Tom Knot [Fri, 29 Jun 2018 09:21:24 +0000 (11:21 +0200)]
Fixed wrong datatype for irq flags

6 years ago- Added further locks
Tom Knot [Fri, 29 Jun 2018 09:12:03 +0000 (11:12 +0200)]
- Added further locks

- c_iflags hopefully does not get set

6 years ago- Changed module description to be more accurate
Tom Knot [Wed, 27 Jun 2018 16:15:18 +0000 (18:15 +0200)]
- Changed module description to be more accurate

- Removed unnecessary counting of work invocation (work is only allowed to be queued once)
- Removed superfluous flags declaration

6 years agoAdded more spinlocks to TX_PROC
Tom Knot [Wed, 27 Jun 2018 15:37:58 +0000 (17:37 +0200)]
Added more spinlocks to TX_PROC

6 years agoFixed input values being badly backcopied into regmap
Tom Knot [Wed, 27 Jun 2018 15:06:38 +0000 (17:06 +0200)]
Fixed input values being badly backcopied into regmap

6 years agoCleaned up stray spinlock sleep
Tom Knot [Wed, 27 Jun 2018 14:56:17 +0000 (16:56 +0200)]
Cleaned up stray spinlock sleep

6 years agoAdded a forgotten irqrestore
Tom Knot [Wed, 27 Jun 2018 13:43:47 +0000 (15:43 +0200)]
Added a forgotten irqrestore

6 years agoAdded interrupt saving for all spinlocks
Tom Knot [Wed, 27 Jun 2018 13:24:18 +0000 (15:24 +0200)]
Added interrupt saving for all spinlocks

6 years agoAdded internal locking for tx_proc
Tom Knot [Wed, 27 Jun 2018 12:59:11 +0000 (14:59 +0200)]
Added internal locking for tx_proc

6 years ago- Short refactoring
Tom Knot [Wed, 27 Jun 2018 12:46:16 +0000 (14:46 +0200)]
- Short refactoring

- UART TX log is marked order-wise

6 years agoChanged mutex back to spinlock for tx_lock
Tom Knot [Wed, 27 Jun 2018 12:19:09 +0000 (14:19 +0200)]
Changed mutex back to spinlock for tx_lock

6 years agoRestored functions with incompatible signature to the null function
Tom Knot [Wed, 27 Jun 2018 12:16:59 +0000 (14:16 +0200)]
Restored functions with incompatible signature to the null function

6 years agoAdded debug print to set_termios
Tom Knot [Wed, 27 Jun 2018 12:11:20 +0000 (14:11 +0200)]
Added debug print to set_termios

6 years agoRemoved unnecessary empty serial functions
Tom Knot [Wed, 27 Jun 2018 11:30:58 +0000 (13:30 +0200)]
Removed unnecessary empty serial functions

6 years agoMinor refactoring
Tom Knot [Wed, 27 Jun 2018 11:25:41 +0000 (13:25 +0200)]
Minor refactoring

6 years ago- Cleaned up one static declaration and removed a few superfluous data structures
Tom Knot [Tue, 26 Jun 2018 12:14:55 +0000 (14:14 +0200)]
- Cleaned up one static declaration and removed a few superfluous data structures

- Reduced TX work limit to 4

6 years agoAdded appropriate unlocks to the previous spinlock
Tom Knot [Mon, 25 Jun 2018 19:06:18 +0000 (21:06 +0200)]
Added appropriate unlocks to the previous spinlock

6 years agoManually hold the port TX lock
Tom Knot [Mon, 25 Jun 2018 19:02:00 +0000 (21:02 +0200)]
Manually hold the port TX lock

6 years agoAdded further UART debugging messages
Tom Knot [Mon, 25 Jun 2018 18:47:37 +0000 (20:47 +0200)]
Added further UART debugging messages

6 years ago- Made generic files world-visiable
Tom Knot [Mon, 25 Jun 2018 18:32:30 +0000 (20:32 +0200)]
- Made generic files world-visiable

- Added debugging print to UART TX work

6 years agoMoved spi_message off stack
Tom Knot [Mon, 25 Jun 2018 17:12:21 +0000 (19:12 +0200)]
Moved spi_message off stack

6 years agoReplaced GFP_KERNEL with GFP_ATOMIC
Tom Knot [Mon, 25 Jun 2018 16:33:54 +0000 (18:33 +0200)]
Replaced GFP_KERNEL with GFP_ATOMIC

6 years agoTEST: Added spinlock to uart_write_wakeup
Tom Knot [Mon, 25 Jun 2018 13:31:51 +0000 (15:31 +0200)]
TEST: Added spinlock to uart_write_wakeup

6 years ago- Added better handling of long TTY packets
Tom Knot [Mon, 25 Jun 2018 12:20:41 +0000 (14:20 +0200)]
- Added better handling of long TTY packets

- SYSFS register access improved and expanded

6 years agoActivated UART debug
Tom Knot [Thu, 14 Jun 2018 14:09:24 +0000 (16:09 +0200)]
Activated UART debug

6 years agoFixed warning
Tom Knot [Thu, 14 Jun 2018 13:51:54 +0000 (15:51 +0200)]
Fixed warning

6 years agoAdded UART timeout SYSFS properties
Tom Knot [Thu, 14 Jun 2018 13:48:26 +0000 (15:48 +0200)]
Added UART timeout SYSFS properties

6 years agoMerge branch 'master' of http://86.49.170.141:3000/UniPi/neuron-kernel
Tom Knot [Thu, 14 Jun 2018 10:01:17 +0000 (12:01 +0200)]
Merge branch 'master' of 86.49.170.141:3000/UniPi/neuron-kernel

# Conflicts:
# modules/unipi/src/unipi_uart.c
# version.txt

6 years agoSwapped IOCTL order and changed per-char divider
Tom Knot [Thu, 14 Jun 2018 09:44:06 +0000 (11:44 +0200)]
Swapped IOCTL order and changed per-char divider

6 years agoMerge
Miroslav Ondra [Thu, 14 Jun 2018 09:51:55 +0000 (11:51 +0200)]
Merge

6 years agoSwapped IOCTL order and changed per-char divider
Tom Knot [Thu, 14 Jun 2018 09:44:06 +0000 (11:44 +0200)]
Swapped IOCTL order and changed per-char divider

6 years agoSwapped IOCTL order and changed per-char divider
Tom Knot [Thu, 14 Jun 2018 09:44:06 +0000 (11:44 +0200)]
Swapped IOCTL order and changed per-char divider

6 years agoAdded debug prints for line discipline
Tom Knot [Thu, 14 Jun 2018 09:22:02 +0000 (11:22 +0200)]
Added debug prints for line discipline

6 years ago- Changed UART startup ignore to proceed correctly if it cannot finish
Tom Knot [Thu, 14 Jun 2018 08:53:36 +0000 (10:53 +0200)]
- Changed UART startup ignore to proceed correctly if it cannot finish

- Version 0.12

6 years agoFixed analog mode configuration via SYSFS
Tom Knot [Wed, 6 Jun 2018 16:16:15 +0000 (18:16 +0200)]
Fixed analog mode configuration via SYSFS

6 years agoAdded Axon model definitions
Tom Knot [Mon, 28 May 2018 15:00:38 +0000 (17:00 +0200)]
Added Axon model definitions

6 years agoAdded SYSFS support for LEDs > 4
Tom Knot [Mon, 28 May 2018 14:04:26 +0000 (16:04 +0200)]
Added SYSFS support for LEDs > 4

6 years agoUpdated versioning hooks
Tom Knot [Tue, 22 May 2018 14:28:27 +0000 (16:28 +0200)]
Updated versioning hooks

6 years agoUpdated versioning hooks
Tom Knot [Mon, 21 May 2018 17:02:18 +0000 (19:02 +0200)]
Updated versioning hooks

6 years agoAdded versioning hooks
Tom Knot [Mon, 21 May 2018 15:46:40 +0000 (17:46 +0200)]
Added versioning hooks

6 years agoQuick fix for the previous commit
Tom Knot [Fri, 18 May 2018 13:43:11 +0000 (15:43 +0200)]
Quick fix for the previous commit

6 years agoVersion 0.08
Tom Knot [Fri, 18 May 2018 11:53:22 +0000 (13:53 +0200)]
Version 0.08

- Changed reading frequency to be user-specifiable (1-1000 Hz)

6 years agoSwitched fast_io off, as it could cause resource starvation issues
Tom Knot [Wed, 16 May 2018 12:11:54 +0000 (14:11 +0200)]
Switched fast_io off, as it could cause resource starvation issues

7 years agoFixed LINEDISCIPL return value and SYSFS counter byte order
Tom Knot [Thu, 10 May 2018 13:28:13 +0000 (15:28 +0200)]
Fixed LINEDISCIPL return value and SYSFS counter byte order

7 years agoUpdated to 0.07
Tom Knot [Mon, 30 Apr 2018 12:12:44 +0000 (14:12 +0200)]
Updated to 0.07

- Cleaned up possible conflicts when running system queries and starting flashing process at the same time
- Added TTY driver code, which is inactive for now as Mervis is not able to properly use it for unknown reasons
- Fixed sched include properly

7 years agoremoved misc/link_sysfs
Miroslav Ondra [Thu, 19 Apr 2018 18:49:02 +0000 (20:49 +0200)]
removed misc/link_sysfs

7 years agoAdded missing return code to neuron_spi_send_message
Tom Knot [Mon, 16 Apr 2018 10:43:36 +0000 (12:43 +0200)]
Added missing return code to neuron_spi_send_message

7 years agoMinor fixes:
Tom Knot [Mon, 16 Apr 2018 10:41:30 +0000 (12:41 +0200)]
Minor fixes:

- Added version string to SYSFS
- Error code for direct SPI reads
- Model names should now correspond to DB names

7 years agoRestored macro for sched include
Tom Knot [Fri, 13 Apr 2018 15:18:29 +0000 (17:18 +0200)]
Restored macro for sched include

7 years ago- Added MWD status into the regstart generation function
Tom Knot [Mon, 9 Apr 2018 10:05:16 +0000 (12:05 +0200)]
- Added MWD status into the regstart generation function

- Registers not found by regstart set to 0 instead of -1
- Removed commented-out prints in unipi_platform.c

7 years agoCleaned up kernel prints
Tom Knot [Mon, 9 Apr 2018 10:03:49 +0000 (12:03 +0200)]
Cleaned up kernel prints

7 years agoFixed GPIOs running out due to not being packed tightly in the namespace
Tom Knot [Mon, 9 Apr 2018 09:57:50 +0000 (11:57 +0200)]
Fixed GPIOs running out due to not being packed tightly in the namespace

7 years agoUpdated version string and added an empty (for now) TTY module
Tom Knot [Thu, 5 Apr 2018 14:06:37 +0000 (16:06 +0200)]
Updated version string and added an empty (for now) TTY module

7 years agoAllowed overriding frequency settings with _lower_ frequency even for analog modules...
Tom Knot [Thu, 5 Apr 2018 14:04:50 +0000 (16:04 +0200)]
Allowed overriding frequency settings with _lower_ frequency even for analog modules, and reduced maximum frequency to 7.5Mhz

7 years agoUpdate for FW 5.10 (UART speed), removed some extraneous prints as well
Tom Knot [Thu, 22 Mar 2018 11:08:06 +0000 (12:08 +0100)]
Update for FW 5.10 (UART speed), removed some extraneous prints as well

7 years agoUpdated Eclipse project
Tom Knot [Mon, 12 Mar 2018 12:43:10 +0000 (13:43 +0100)]
Updated Eclipse project

7 years agoUpdated version string and correct return value for unimplemented UART ioctl.
Tom Knot [Thu, 8 Mar 2018 12:17:30 +0000 (13:17 +0100)]
Updated version string and correct return value for unimplemented UART ioctl.

7 years agoFixed possible memory leaks in the Line Discipline and Line Markings messages
Tom Knot [Wed, 7 Mar 2018 10:19:59 +0000 (11:19 +0100)]
Fixed possible memory leaks in the Line Discipline and Line Markings messages

7 years agoSlightly cleaned up imports
Tom Knot [Mon, 5 Mar 2018 20:28:49 +0000 (21:28 +0100)]
Slightly cleaned up imports

7 years ago- Added the neuron-probe-always-succeeds sysfs flag
Tom Knot [Mon, 5 Mar 2018 19:54:28 +0000 (20:54 +0100)]
- Added the neuron-probe-always-succeeds sysfs flag

- Improved checks for sysfs attribute creation to prevent possible leaks
- Added new overlay source and binaries to include the probe flag (it does not have to be included)
- Removed unnecessary printk statement

7 years agoUpdated .gitignore
Tom Knot [Fri, 2 Mar 2018 12:23:01 +0000 (13:23 +0100)]
Updated .gitignore

7 years agoFixed problem with binary directory not being committed and breaking Makefile if...
Tom Knot [Fri, 2 Mar 2018 12:19:31 +0000 (13:19 +0100)]
Fixed problem with binary directory not being committed and breaking Makefile if it is not otherwise created

7 years agoFixed directory structure to correspond to the new module name
Tom Knot [Fri, 2 Mar 2018 12:16:28 +0000 (13:16 +0100)]
Fixed directory structure to correspond to the new module name

7 years agoFixed a small indentation mistake and removed wrongly-committed compilation by-products
Tom Knot [Fri, 2 Mar 2018 12:11:23 +0000 (13:11 +0100)]
Fixed a small indentation mistake and removed wrongly-committed compilation by-products

7 years agoUpdated Eclipse project
Tom Knot [Thu, 1 Mar 2018 10:50:12 +0000 (11:50 +0100)]
Updated Eclipse project

7 years agoUART refactoring
Tom Knot [Tue, 27 Feb 2018 17:18:57 +0000 (18:18 +0100)]
UART refactoring

7 years agoFinished refactoring into individual files
Tom Knot [Tue, 27 Feb 2018 15:27:53 +0000 (16:27 +0100)]
Finished refactoring into individual files

7 years agoCleaned up issues with left-over static declarations
Tom Knot [Tue, 27 Feb 2018 13:34:48 +0000 (14:34 +0100)]
Cleaned up issues with left-over static declarations

7 years agoWarning: large number of unneeded non-static and static defines
Tom Knot [Mon, 26 Feb 2018 21:41:10 +0000 (22:41 +0100)]
Warning: large number of unneeded non-static and static defines

- Refactored the module into logical subunits

7 years agoUpdated Makefile
Tom Knot [Mon, 26 Feb 2018 15:05:10 +0000 (16:05 +0100)]
Updated Makefile

7 years agoAdded .gitignore
Tom Knot [Fri, 23 Feb 2018 15:51:28 +0000 (16:51 +0100)]
Added .gitignore

7 years agoUpdated Makefile
Tom Knot [Fri, 23 Feb 2018 15:42:13 +0000 (16:42 +0100)]
Updated Makefile

7 years agoInitial Commit
Tom Knot [Fri, 23 Feb 2018 11:07:58 +0000 (12:07 +0100)]
Initial Commit