Wojtek Rzepecki
87f7cc4b4c
[EGD-6807] Add improved brownout detection
...
Added immproved battery brownout detection
based on filtered voltage measurement
2021-06-01 16:51:44 +02:00
Bartosz Cichocki
ba0e0345b7
[EGD-6868] Restore magnetometer polling mode
...
To be able to properly operate with the slider under every
circumstance the polling mode has to be restored. It's related
to the bug in the magnetometer chip, which is not described in the
datasheet.
This reverts commit 744eef1d9b with
few small fixes
2021-05-31 16:48:54 +02:00
Borys Jelenski
3a6e6b2158
[EGD-6843] Fix invalid assert in FSL SNVS driver
...
Fix an invalid assert after the driver was modified in EGD-6605.
2021-05-27 23:27:24 +02:00
Maciej Gibowicz
d8e26bee3e
[EGD-6654] Add self-tuning for RC oscillator
...
Calibrate the RC before switching to the internal oscillator.
This improves the precision of the system clock.
2021-05-26 13:01:30 +02:00
Borys Jelenski
cbbd94719d
[EGD-6605] Fix RTC time not retained between resets if set manually
...
When setting datetime from timestamp (manually, not from network),
SRTC is set in order to retain the RTC datetime between resets.
RTC handling was refactored in order to get rid of unnecesary
conversions and third-party code mixed with proprietary code
within a single file.
2021-05-24 04:54:02 +02:00
Marek Niepieklo
85ed5439a9
[CP-88] Pure rejects upload of non-audio files via MTP
...
Fix handling of UNDEFINED OBJECT for playback formats.
2021-05-17 10:47:26 +02:00
Pawel.Paprocki
db8c1d35e5
[EGD-6739] Fix Enable change of display resolution on simulator
...
Define screen dimesions in one place
2021-05-14 08:50:11 +02:00
Lucjan Bryndza
89c263c03b
[EGD-6518] Change optional methods for the DM
...
Change numer of minimal optional methods required by the
block device in the disk manager
Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com >
2021-05-12 15:34:20 +02:00
Lucjan Bryndza
101afc48c1
[EGD-6518] Add EEPROM block device driver for VFS
...
Add block device driver for the factory EEPROM memory
needed for factory settings (aka personalizations)
Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com >
2021-05-12 15:34:20 +02:00
Lukasz Skrzypczak
f3fee0587e
[EGD-6576] Corrected after PR comments
...
I hope this is final
2021-05-10 12:40:16 +02:00
Lukasz Skrzypczak
a2ab137ddb
[EGD-6576] Create EEPROM low level driver
...
Fixed style
2021-05-10 12:40:16 +02:00
Lukasz Skrzypczak
9d94c84cd9
[EGD-6576] Create EEPROM low level driver
...
Working eeprom driver.
2021-05-10 12:40:16 +02:00
Lukasz Skrzypczak
de22ef3999
[EGD-6576] WiP I2C HAL API need to be modified
...
WiP
2021-05-10 12:40:16 +02:00
Lukasz Skrzypczak
6468e0d4fd
[EGD-6576] Create EEPROM low level driver
...
Created low level driver for M24256 eeprom & dummy for linux.
2021-05-10 12:40:16 +02:00
Pawel.Paprocki
4c694e5251
[EGD-6678] Fix Display backlight turns on when is set off
...
Duty cycle update performed only on enabled pwm
2021-05-06 11:40:57 +02:00
Kuba Kleczkowski
ee5b62a14e
[EGD-6651] Fix communication with modem on Linux
...
Fixed cellular bsp on Linux, so now emulator is able
to comunicate with modem. Fixed memory leak in CellularResult struct.
2021-05-06 10:34:28 +02:00
Maciej Janicki
c88c82ae86
[EGD-6319] Refactor cellular modem directory
...
- Removed not used files from old implementations.
- Renamed some classes to follow naming convention.
- Renamed methods to use consistent styling.
- Restructured code.
2021-05-05 16:34:35 +02:00
Marek Niepieklo
94411a0a17
[EGD-6591] Remove excessive logs from USB stack
...
Removed log entries in conflict with charger driver BSP logs
2021-05-05 10:27:50 +02:00
Pawel.Paprocki
c3e84f8c65
[EGD-6619] Fix Display backlight switches periodically
...
Reload pwm duty cycle value after CPU frequency change
2021-04-28 11:38:31 +02:00
Maciej Janicki
ea27e68716
[EGD-5748] Remake Cellular flow
...
This commit remakes cellular data flow
introducing full error propagation.
2021-04-23 15:03:08 +02:00
Maciej Gibowicz
6a80654b52
[EGD-6457] Add power management for USB
...
When the USB is disconnected, we turn off the peripherals
by going into the suspend bus mode.
2021-04-22 17:46:07 +02:00
Borys Jelenski
085bccb7a1
[EGD-6355] Adjust MuditaOS to be used with Secure Boot
...
The start address of the OS image adjusted to comply with HAB
Secure Boot. Proper SNVS initialization performed at system startup.
SNVS drivers updated to most recent version. Image signing can be
performed as a part of build process. See doc/secure_boot.md for
more info.
2021-04-22 15:02:59 +02:00
Bartosz Cichocki
c80e8250d4
[EGD-6545] Enable magnetometer LPDCM mode
...
To be able to reduce the power usage of the phone, magnetometer
has been switched into interrupt driven LPDCM mode. Added some
fixups maintaining current behavior on startup and disabling
the tethering mode
2021-04-22 10:38:43 +02:00
Maciej Gibowicz
8f8a1b3ca1
[EGD-6499] Fix audio initialization
...
Now the peripherals and the audio clocks will be turned on
only when the user is using the audio, which will save energy.
2021-04-22 09:37:23 +02:00
Pawel Olejniczak
7fe84233c2
[EGD-6506] Turn on function keys backlight during call
...
Backlight of function keys are on when call is active.
When call ends, previous backlight mode is restored.
2021-04-21 19:38:23 +02:00
Michał Kamoń
bb6396679f
[EGD-6118] BT low power initial implementation
...
The `Pure`'s power consumption was measured in three variants:
* BT off
* BT on (master)
* BT on (EGD-6118)
Measurement results (respectively):
* idle [mA]:
** 78-81
** 83-85
** 78-81
* BT headphones connected [mA]
** -
** 85-87
** 82-85
* music play [mA] (may be not precise)
** 90-100
** 98-105
** 101-115
2021-04-21 08:32:31 +02:00
Wojtek Rzepecki
d066f87772
[EGD-6431] Add battery charging temperature ranges
...
Added actions of several cell temperature
ranges according to requirements.
2021-04-20 15:47:23 +02:00
Marek Niepieklo
226e9e4c0b
[EGD-6515] Answer/reject calls using headset
...
Clean up propagation of headset keys events
Clean up volume control with headset keys
Update key mappings for simulator
Use headset OK key to answer/reject calls
2021-04-15 14:19:50 +02:00
Mateusz Grzegorzek
39be35722d
[EGD-6505] Implement “On when active” Keypad light functionality
...
Implement “On when active” Keypad light functionality
2021-04-15 14:05:49 +02:00
Wojtek Rzepecki
03e5f8d714
[EGD-5360] Add USB current selection
...
Charging current selection algorithm
depending on USB type.
2021-04-15 13:24:13 +02:00
Bartosz Cichocki
5fb105d0b1
[EGD-6214] Add slider position reading after disabling tethering
...
To be able to set proper phone mode changed by the slider during
tethering, the forced readout of slider position has been added
2021-04-08 15:48:25 +02:00
Marek Niepieklo
183617d3e2
[EGD-6416] Add handling of headset keys
...
Change the volume level using headset keys
2021-04-06 20:14:34 +02:00
Maciej Janicki
91d0fc873a
[EGD-5748] Revert remake cellular flow
...
Reverts changes due to reported issues
2021-04-06 12:55:16 +02:00
Marek Niepieklo
0496486fd5
[EGD-6425] Update USB submodule version
...
Restored USB submodule version to HEAD
2021-04-02 21:43:09 +02:00
Krzysztof Móżdżyński
5badad2b08
[EGD-5443] Onboarding date and time window
...
Add posibility to override bottom bar in Date and Time settings window.
Change primiary action to save in OnBoardingDateAndTimeWindow
Back to previous window after settings date/time in onboarding flow
2021-04-02 15:38:47 +02:00
Artur Śleszyński
33d652c1a1
[EGD-6156] Create crash dumps
...
Integrate the CrashCatcher library in order to store phone state after
a fault occurs. The dumps are stored in the CrashCatcher hex format and
can be debugged using the CrashDebug stub built for x86_64 via the
'debug_crash_dump.sh' script.
2021-04-02 14:58:42 +02:00
Marek Niepieklo
d46673b24b
[EGD-6383] Add HW initialization for headset keys detection
...
Replaced timer-based hander with IRQ handler to get
headset status
Added initialization for headset key press detection
2021-04-02 10:31:13 +02:00
Maciej Janicki
e532fd8734
[EGD-5748] Remake Cellular flow
...
This commit changes TS0710 Worker operation.
1. It introduces MessageBuffers as main
interprocess data passing mechanism.
2. DMA transaction status codes and CMUX errors
are now propagated to Service.
3. Data processing has been refactored.
2021-04-01 09:28:06 +02:00
Pawel.Paprocki
b318415026
[EGD-6113] Fix Test harness issue in ServiceDesktop worker
...
Remove spare logging in MessageHandler.cpp
Move Linux CI target to Release
Remove spare logs form harness tests
Disable failing test cases in:
test_templates and test_connection_security
2021-03-30 12:20:17 +02:00
Marek Niepieklo
75f225ce0d
[EGD-6309] Fix 2-sec delay in VCom deinit when USB cable disconnected
...
When USB wasn't attached, MTP task waits for configured event,
hence it cannot be joined before semaphore take times out (2 sec).
2021-03-26 10:51:57 +01:00
Wojtek Rzepecki
3d0e235289
[EGD-6321] Fix max usb current
...
Setting proper value of
max USB current
2021-03-25 12:03:07 +01:00
Maciej Gibowicz
9cc5b47bdd
[EGD-4863] Add harness test for cellular sleep mode
...
Adding test for outgoing call and text message
in cellular sleep mode
2021-03-25 11:08:08 +01:00
Maciej Gibowicz
67a02a90f5
[EGD-4852] Add sleep mode for GSM modem
...
When the GSM modem is idle and there is no communication,
it enters the sleep mode, where the power consumption
is significantly reduced.
2021-03-24 20:40:35 +01:00
Wiktor S. Ovalle Correa
b07bcacbaf
[EGD-6239] Fix Linux Release build on gcc-10
...
strncpy() was provided with size equal to a buffer size, not leaving
buffer space for a trailing zero; also sml fix.
2021-03-23 12:38:47 +01:00
Marek Niepieklo
5ab1ef65dd
[EGD-5868] Add access to backup over MTP
...
This change adds access to backups via MTP
after backup file has been successfuly created.
2021-03-22 18:59:11 +01:00
SP2FET
4c30e3c535
[EGD-6190] Fix Bluetooth DMA transmission
...
Enabled previously FIFO buffer without proper handling caused
ignoring one byte. Disabling FIFO fixes this issue
2021-03-22 13:50:04 +01:00
Piotr Tański
efef7dcf7f
[EGD-6111] Timers refactored
...
Deep refactor of system timers.
2021-03-19 14:09:35 +01:00
Wojtek Rzepecki
9098f69e7b
[EGD-5814] Fix battery revert
...
Revert of temporary fix
for old battery operation
2021-03-19 13:38:47 +01:00
Marek Niepieklo
3c813add9e
[EGD-6237] Add memory clearing of MTP database storage
...
Clear allocated memory to avoid occasional HFs due to accessing
trashed entries
2021-03-18 17:13:22 +01:00
Wojtek Rzepecki
e69576aa60
[EGD-6192] Add torch hw control v2
...
Change behavior of torch
control according to newest
design.
2021-03-18 08:53:19 +01:00