tools/testlab/sd-mux.git
4 years agoIncrease power off time for USB device 46/225146/1 master
Adam Malinowski [Mon, 17 Feb 2020 16:20:18 +0000 (17:20 +0100)]
Increase power off time for USB device

USB SSD drives seem to have big enough capacitors to
keep them powered for more than 100ms. This change
increase the power off time to 500ms to let them discharge
and reset the drive properly.

Change-Id: I5e1f647d3d6ce72881bd628de7ef23255ea844ff

4 years agoAdd fabrication and assembly documentation 35/213635/1
Adam Malinowski [Mon, 9 Sep 2019 09:40:09 +0000 (11:40 +0200)]
Add fabrication and assembly documentation

Change-Id: I97e3db95b3b9fd1d4e2fb0dd06a7adc3e5f5fc22

4 years agoUpdate assembly layer 34/213634/1
Adam Malinowski [Mon, 9 Sep 2019 09:38:57 +0000 (11:38 +0200)]
Update assembly layer

Change-Id: I6dcabfdd0364e7ee87c664ed7b3d73991db7c9f6

4 years agoUpdate Standards-Version in debian packaging
Adam Malinowski [Tue, 21 May 2019 06:48:03 +0000 (08:48 +0200)]
Update Standards-Version in debian packaging

Change-Id: I4e2118bcdfcedf3c7df32f5dcfe73de1bbefc771

4 years agodoc/man: fix typo 98/206498/1
Heinrich Schuchardt [Fri, 1 Mar 2019 18:18:58 +0000 (19:18 +0100)]
doc/man: fix typo

%s/untill/until/

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
4 years agoAdd file debian/source/format 97/206497/1
Heinrich Schuchardt [Fri, 1 Mar 2019 18:30:20 +0000 (19:30 +0100)]
Add file debian/source/format

The `Debian New Maintainers' Guide` specifies in
https://www.debian.org/doc/manuals/maint-guide/dother.en.html#sourcef
that each Debian package should have a file debian/source/format.

`3.0 (native)` is the format to specify when quilt is not used.

Remove misplaced file debian/format.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
4 years agoparseArguments(): use correct data type 96/206496/1
Heinrich Schuchardt [Fri, 1 Mar 2019 19:18:32 +0000 (20:18 +0100)]
parseArguments(): use correct data type

Compilation on arm64 with gcc (Debian 8.2.0-21) 8.2.0 results in errors:

src/main.cpp: In function ‘int parseArguments(...)’:

src/main.cpp:711:41: error: comparison is always true due to limited range
of data type [-Werror=type-limits]
     while ((c = poptGetNextOpt(optCon)) >= 0) {
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~

src/main.cpp:761:11: error: comparison is always false due to limited
range of data type [-Werror=type-limits]
     if (c < -1) {

According to ISO/IEC 9899:1999 an object of type char has a value range of
[0, 255] if it is not used as a signed integer in an expression.

Change the data type of `c` to int as this is the return value type of
poptGetNextOpt().

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
4 years agodebian/control: missing build dependencies 95/206495/1
Heinrich Schuchardt [Sat, 2 Mar 2019 06:32:50 +0000 (07:32 +0100)]
debian/control: missing build dependencies

Building with pbuilder highlights the following missing build dependencies:
- cmake
- pkg-config

Add the missing build dependencies. Reformat dependencies.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
4 years agoparseArguments: avoid segmentation fault 94/206494/1
Heinrich Schuchardt [Sat, 2 Mar 2019 07:36:46 +0000 (08:36 +0100)]
parseArguments: avoid segmentation fault

If an incorrect command line argument is provided poptBadOption() is
called. Freeing the context optCon before this call leads to a
segmentation fault.

If no command line argument is provided we should free the context after
displaying the usage information to avoid a memory leak.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
4 years agosetSerial: do not use default device type 93/206493/1
Heinrich Schuchardt [Sat, 2 Mar 2019 08:50:06 +0000 (09:50 +0100)]
setSerial: do not use default device type

When setting the serial number with the wrong device type the SD-Wire
device becomes unusable until the serial number is set again specifying the
correct device type. So using 'sd-mux' as default device type is unwise.
Let's require that a device type is specified when executing the set serial
command.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
4 years agosd-mux-ctrl.1: fix title 92/206492/1
Heinrich Schuchardt [Sat, 2 Mar 2019 08:52:56 +0000 (09:52 +0100)]
sd-mux-ctrl.1: fix title

Debian installs the man page under man2 due to an incorrect title line.
man man-pages indicates how the title line should be formatted.

Provide a corrected title line.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
4 years agocreate group sd-mux-ctrl 72/206472/1
Heinrich Schuchardt [Sat, 2 Mar 2019 15:57:55 +0000 (16:57 +0100)]
create group sd-mux-ctrl

Let the Debian package installer create a new group sd-mux-ctrl. Give the
group access to the SD-MUX devices via a udev rule.

Change-Id: I32c8e032f0326dbb854186ccdf2bb55dd3394142
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
4 years agoAdd EEPROM to SDWire device 71/206471/1
Adam Malinowski [Mon, 20 May 2019 07:15:36 +0000 (09:15 +0200)]
Add EEPROM to SDWire device

EEPROM is used to store unique serial number for mass storage
reader in order to distinguish them in one USB host machine.

Change-Id: I45e7371c2a41f0804c17b799591ab44a722c4872

5 years agoMerge "Add support for USB-MUX device"
Adam Malinowski [Fri, 18 Jan 2019 10:32:15 +0000 (10:32 +0000)]
Merge "Add support for USB-MUX device"

5 years agoAdd support for USB-MUX device 95/196995/3
Adam Malinowski [Tue, 8 Jan 2019 16:29:04 +0000 (17:29 +0100)]
Add support for USB-MUX device

Change-Id: Idede88954cb68f576b3ac29eecec24ada4aa900c

5 years agoAdd fabrication and assembly files 04/181404/1
Adam Malinowski [Wed, 13 Jun 2018 08:19:54 +0000 (10:19 +0200)]
Add fabrication and assembly files

Fabrication files are for a PCB manufacturer and assembly files are for an assembler.

Change-Id: Ie47b9ffdb84ece27d7e3e2e74209f5aec5e91c05

5 years agoAdd hardware documentation of SDWire device 03/181403/1
Adam Malinowski [Wed, 13 Jun 2018 07:42:26 +0000 (09:42 +0200)]
Add hardware documentation of SDWire device

Change-Id: I0a16d20cdae8da58163fd083bebf94730fda28cd

5 years agoAdd fabrication files for micro SD card adapter v2 87/171387/3
Adam Malinowski [Fri, 2 Mar 2018 08:34:05 +0000 (09:34 +0100)]
Add fabrication files for micro SD card adapter v2

Change-Id: Ic5e3a97334cb6d143d99dd9c2b6764d55ee61a13

5 years agoLengthen micro SD card adapter 74/171374/4
Adam Malinowski [Thu, 15 Feb 2018 06:11:34 +0000 (07:11 +0100)]
Lengthen micro SD card adapter

The lengthening had to be done mainly because of boards housings.
Usually, walls of the housing caused prolems with inserting adapter
into their card socket. Now the adaper is 5mm longer.

Change-Id: I871fc60309506b883a9c277302b64e2a82f11a6e

6 years agoRequire libftdi1 version 1.4 or newer 37/173437/2
Łukasz Stelmach [Wed, 21 Mar 2018 10:42:00 +0000 (11:42 +0100)]
Require libftdi1 version 1.4 or newer

Version 1.4 is the first to support ftdi_eeprom_get_strings() function.

Change-Id: I67d8ac4a3601d7a13c6c0a67035cb78cb650d9d9
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
6 years agoImplement SDWire specific SD MUX controller 94/115194/6
Adam Malinowski [Thu, 16 Feb 2017 18:19:26 +0000 (19:19 +0100)]
Implement SDWire specific SD MUX controller

Change-Id: I73afab5a3fb7f9b5d8f4042fd96fe6a848be9175

6 years agoIntroduce device features and make use of them 93/115193/6
Adam Malinowski [Thu, 16 Feb 2017 17:28:42 +0000 (18:28 +0100)]
Introduce device features and make use of them

Device features are used to check whether given functionality is
available on given board or not.

Change-Id: I3fa088197e55765f75005e94f67d558d987e7ed4

6 years agoIntroduce device type and make the code use of it 92/115192/6
Adam Malinowski [Thu, 16 Feb 2017 16:43:46 +0000 (17:43 +0100)]
Introduce device type and make the code use of it

NOTE: this patch needs extra functionality of libftdi1 library.
The functionality is ftdi_eeprom_get_strings(). It is available
in libftdi1 since 1.4rc1 version.

Change-Id: I047ef62f2c78fcec507ddc821e41e2d005b72f6a

6 years agoAdd device type setting in --set-serial function 42/114942/5
Adam Malinowski [Wed, 15 Feb 2017 19:11:56 +0000 (20:11 +0100)]
Add device type setting in --set-serial function

This setting is needed to distinguish one type of FTDI chip
from another.

Change-Id: I21cbc9bedd15c160fb6942f3593694181d8e91b9

6 years agoAdd PRODUCT ID option to command line interface 40/114940/5
Adam Malinowski [Wed, 15 Feb 2017 18:02:13 +0000 (19:02 +0100)]
Add PRODUCT ID option to command line interface

This change introduces possiblity of using FTDI devices
other than FT245RL.

Change-Id: Ic4a2c51a45ed0fc3d389ecdd38a4edbd9f5df3c1

6 years agoAdd fabrication files for uSD card adapter v 1 24/98124/3
Adam Malinowski [Wed, 16 Nov 2016 07:45:37 +0000 (08:45 +0100)]
Add fabrication files for uSD card adapter v 1

Change-Id: Ie9967f21b1d1607d0dc25eb611b0028cecc8f76d

6 years agoAdd fabrication files for main board v 2.1 17/98117/3
Adam Malinowski [Wed, 16 Nov 2016 07:04:54 +0000 (08:04 +0100)]
Add fabrication files for main board v 2.1

Change-Id: I4ec8ece00a61797b6bf787c48381281b4b8f7a90

6 years agoFix power supply connection of USB switch inverter 82/97482/4
Adam Malinowski [Mon, 14 Nov 2016 08:42:11 +0000 (09:42 +0100)]
Fix power supply connection of USB switch inverter

Power supply pin of U5 was connected to 3.3V. Q8, driven from this
inverter, couldn't be fully closed as maximum output voltage from
the inverter was 3.3V. Now, the inverter, is connected to VCC pin
of USB connector which gives 5V.

Change-Id: Ibed75765ea8cbc2727066d6a498a3396a2d3c404

7 years agoAdd dynamic jumpers (DyPer) control 01/83401/2
Adam Malinowski [Fri, 1 Jul 2016 12:48:12 +0000 (14:48 +0200)]
Add dynamic jumpers (DyPer) control

Change-Id: Iccaff3ce196d4c25d1740c50b41b728e22f65870

8 years agoAdd bash completion script 69/60469/14
Adam Malinowski [Fri, 26 Feb 2016 07:39:35 +0000 (08:39 +0100)]
Add bash completion script

Change-Id: I281d9c9a72ba8b764de855fd5ebb38d6b4399ca1

8 years agoAdd man page for sd-mux-ctrl 70/60370/12
Adam Malinowski [Thu, 25 Feb 2016 19:28:17 +0000 (20:28 +0100)]
Add man page for sd-mux-ctrl

Change-Id: I6e7cfb09a8ff801bed314ba5c77482e828a3896d

8 years agoAdd command for getting current state of device 32/59932/16
Adam Malinowski [Mon, 18 Jan 2016 08:28:21 +0000 (09:28 +0100)]
Add command for getting current state of device

Change-Id: I2c67d15c76e59fd4762f79bbdd059c30e5d467ef

8 years agoAdd implementation of most of the functionality 02/62802/9
Adam Malinowski [Fri, 18 Mar 2016 09:58:27 +0000 (10:58 +0100)]
Add implementation of most of the functionality

Change-Id: I201adf0ba64539f7d0e88dca7c0dc9dfcfe7a46d

8 years agoAdd project skeleton 01/62801/8
Adam Malinowski [Fri, 18 Mar 2016 09:53:37 +0000 (10:53 +0100)]
Add project skeleton

Add all needed files for building the project.

Change-Id: I70e5d7a3c8aff62cc499beafd60ea2ed4d6a84f6

8 years agoAdd MicroSD card adapter hardware documentation 18/67318/3
Adam Malinowski [Tue, 26 Apr 2016 08:41:33 +0000 (10:41 +0200)]
Add MicroSD card adapter hardware documentation

Change-Id: If8c2f3b683a8dd2d9e345787a96c48f7bc4b5e0e

8 years agoAdd sd-mux hardware documentation 45/60645/6
Adam Malinowski [Mon, 29 Feb 2016 12:52:50 +0000 (13:52 +0100)]
Add sd-mux hardware documentation

Change-Id: I7b3a2c22b102d13f7c949bab9dcda78228c1e8ac

8 years agoAdd license file 30/59930/2
Adam Malinowski [Thu, 18 Feb 2016 10:09:00 +0000 (11:09 +0100)]
Add license file

Change-Id: I463b276eb1835fc00164456325e7e467d83c490d

8 years agoInitial empty repository
seonil kim [Thu, 21 Jan 2016 04:25:50 +0000 (20:25 -0800)]
Initial empty repository