Commit Graph

256 Commits

Author SHA1 Message Date
Wojtek Rzepecki
1a66e73b78 [BH-1167] USB async receive
Polling routine replaced with event driven
implementation for USB receive
2021-11-10 16:57:02 +01:00
Lukasz Skrzypczak
379d5130c3 [BH-1071] Latch detect on startup
Added latch pressed detection
2021-11-03 15:34:35 +01:00
Kuba
6e12e5834f [EGD-7738] Fix modem reset
Fixed modem reset procedur so now it will not stuck in cellular
init on factory fresh phone. Also removed T3/T4 board recognition.
2021-10-21 18:45:43 +02:00
Przemyslaw Brudny
d768eb3665 [EGD-7766] Vibration level PWM addition
Added base PWM settings to vibrations. Added vibration
volume setting.
2021-10-20 14:06:39 +03:00
Wojtek Rzepecki
6e69eb6aa6 [BH-990] Adjist CPU frequency chages
Adjusted Bell frequency low-power mode changes
2021-10-15 13:22:43 +02:00
Piotr Tański
1d2f5cf7a4 [EGD-7754] Dates bumped in disclaimers
Dates bumped from 2020 to 2021.
2021-10-11 19:08:26 +02:00
Wojtek Rzepecki
317baa04e9 [BH-872] Fix encoder hadnling
interrupt driven encoder handling
2021-10-08 17:18:45 +02:00
Mateusz Piesta
fb279f17b1 [BH-843] Reset procedure
Added reset procedure.
Refactored linux KeyInput.
Added support for multipress.
2021-10-06 09:40:20 +02:00
Marcin Smoczyński
1f9109b924 [BH-819] Fix illegal dependencies in bsp
Break circular dependencies in the BSP module. Fix some missing
dependencies which surfaced after fixing BSP.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-09-27 17:27:21 +02:00
Marcin Smoczyński
57874cab33 [BH-912] Improve sys module structure
Improve structure of the module sys. Problems within this module
prevents from linking others.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-09-24 10:01:19 +02:00
Marcin Smoczyński
bd90e57516 [BH-907] Split utils module into components
Split module-utils into smaller components for better dependency
management. Fix many dependencies throughout the project.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-09-23 15:14:40 +02:00
Marcin Smoczyński
958ce4906c [BH-897] Split module-sys
Split system module to better manage dependencies between system
components.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-09-21 16:11:59 +02:00
Marcin Smoczyński
f16a18d935 [BH-860] Decouple charger driver from system
Remove system dependency from charger driver implementation. Remove
circular, lambda driven dependency between charger and brownout
detector. Remove event manager dependency in driver as well.
Encapsulate some of charger logic in introduced battery controller.

Extract path configuration to the separate target to decouple charger
from vfs middleware.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-09-20 12:19:48 +02:00
Maciej Janicki
441b9b4667 [BH-715] Add switches handling
Add Bell switches handling including latch support.
2021-09-14 10:13:56 +02:00
Maciej Gibowicz
7394811560 [EGD-4809] Add LDO switching
To reduce the power consumption, we switch LDO
to the low power mode.
2021-09-09 09:34:59 +02:00
Lucjan Bryndza
6d1ec66cb4 [BH-510] Knob driver
Add knob driver for the rotary encoder.

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2021-09-08 21:23:46 +02:00
Maciej Gibowicz
1134a38584 [EGD-4875] Add internal load resistor switching
To reduce the power consumption, we disconnect
internal load resistor
2021-09-08 11:03:55 +02:00
Lukasz Skrzypczak
785111d9e1 [BH-653] Fixed style
Fixed style
2021-09-07 17:19:12 +02:00
Lukasz Skrzypczak
113aea8993 [BH-653] PR changes
PR changes
2021-09-07 17:19:12 +02:00
Lukasz Skrzypczak
f5da876bbf [BH-653] Working
Working on P1
2021-09-07 17:19:12 +02:00
Lukasz Skrzypczak
9fcfb9dc42 [BH-653] Added Linux mock
Added Linux mock
2021-09-07 17:19:12 +02:00
Lukasz Skrzypczak
1b843b48c8 [BH-653] Initial draft
Code buildable
2021-09-07 17:19:12 +02:00
Wojtek Rzepecki
a4a5a09c30 [BH-826] Add key input abstraction layer
Added abstraction layer for key input HAL
to provide elastic structure
2021-09-02 16:28:41 +02:00
Piotr Tański
90e7a48198 [EGD-7362] Merge release/0.76.1 into master
Merge release/0.76.1 into master.
2021-09-02 11:12:59 +02:00
Wojtek Rzepecki
2ae8f8d6b3 [BH-821] Add battery abstraction layer
Added Abstraction layer for batter charger
to provide support for bell/pure/linux
2021-08-27 14:47:07 +02:00
Wojtek Rzepecki
9acd593d87 [EGD-7388] Fix unresponsive keyboard
Fix teh keyboard driver to process all
incoming key events

(cherry picked from commit ed3dab784c)
2021-08-27 13:40:00 +02:00
Mateusz Piesta
82922d21be [BH-795] Add temperature mock
Added temperature interface implementation
for Linux. Added dummy implementation for
RT1051 target.
2021-08-26 11:08:27 +02:00
Marcin Smoczyński
81d88eedc7 [BH-727] Create eink configuration for products
Customize screen resolution depending on which product is selected.
Screen resolutions for hardware boards are fixed by design.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-08-24 10:40:38 +02:00
Marcin Smoczyński
b355d5ce00 [BH-733] Cleanup target dependencies
Remove obsolete target dependencies across modules.
Remove 'cross' and 'unittests' targets.
Refactor some remaining target dependencies to use board include macro.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-08-13 01:43:56 +02:00
Artur Śleszyński
44cdecabe6 [CP-266] Extend power management logging
Make sure we print fuel gauge info needed by the electronics team.
2021-08-02 14:47:10 +02:00
Pawel.Paprocki
3c5649df95 [EGD-6624] Audio support for linux simulator
When using simulator user should hear audio output to test apps like
Music Player.

Co-authored-by: Tomasz Krosnowski <tomasz.krosnowski@mudita.com>
Co-authored-by: Piotr Tański <piotr.tanski@mudita.com>
Co-authored-by: Marcin Smoczyński <marcin.smoczynski@mudita.com>
Tested-by: Marcin Smoczyński <marcin.smoczynski@mudita.com>
2021-07-20 15:42:32 +02:00
Wojtek Rzepecki
b19ddb719e [EGD-6928] Fix system powe instability
Improved frequency switching mechanism
2021-07-15 11:36:40 +02:00
Wojtek Rzepecki
399acf823c [EGD-6672] Fix missing key after slider
Fix of not working key press right after
slider movement or disconnecting tethtering
2021-07-09 09:47:25 +02:00
Lucjan Bryndza
5324fcc0a6 [CP-312] Add reboot to update function
Because update procedure it is splitted to the two stages
downloading and update throught separate binary we need
to pass ecoboot special flag to request reboot to updater
bin after update procedure.
This patch adds this functionality to the PureOS.

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2021-07-07 10:46:29 +02:00
Marek Niepieklo
bf06b5bad8 [CP-206] Report Pure serial number in USB descriptors
Added serial number to USB device descriptor
2021-06-23 12:03:52 +02:00
Pawel.Paprocki
95d96b82b6 [BH-370] Convert utils common_data into a libs
Create clipboard and eventsore libs
2021-06-09 14:39:11 +02:00
Lukasz Skrzypczak
2911b6b4a1 [BH-378] PR changes
PR changes - mainly includes
2021-06-08 12:24:29 +02:00
Lukasz Skrzypczak
7fee0d9cfb [BH-378] Utils move log to library
Moved log to separate library
2021-06-08 12:24:29 +02:00
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
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
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
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
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
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
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
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