Jeremy Soller
916a6f87f3
Add dynamic keymap config
2020-10-05 09:54:28 -07:00
Jeremy Soller
fc2c3511d2
Move KEYMAP definition to common
2020-10-05 09:54:28 -07:00
Jacob Kauffmann
c2125aa99c
Merge pull request #115 from fabiant7t/patch-1
...
Fix typo (duplicate word) in documentation.
2020-10-02 13:39:02 -06:00
Jeremy Soller
726a0e0837
ectool version 0.2.1:
...
- Add hidapi feature
- Add redox_hwio feature
- Add feature documentation
2020-10-02 09:05:25 -07:00
Fabian Topfstedt
f0f4797330
Typo: "not be be provided" -> "not be provided"
...
Deleted a duplicate word
2020-10-02 09:55:56 +02:00
Jeremy Soller
8da8342e40
ectool version 2.0
2020-10-01 20:36:21 -06:00
Jeremy Soller
eff4caa752
Refactor SMFI interface and ectool
2020-10-01 19:35:34 -07:00
Tim Crawford
39e2586c50
Use physical position of keys for config reset
2020-10-01 14:50:26 -07:00
Tim Crawford
9afec7af27
Reset EC config on Fn+Esc during power on
2020-10-01 14:50:26 -07:00
Tim Crawford
46ca5e0a12
Add function to reset EC configuration
2020-10-01 14:50:26 -07:00
Tim Crawford
e8dfe7fe44
Add function to reset battery thresholds
2020-10-01 14:50:26 -07:00
Evan Lojewski
6f6fc652d5
flash: Enable read/write/erase access flash from firmware.
2020-10-01 10:32:03 -06:00
Evan Lojewski
b4689cb3f1
i2c: Reduce __data usage by switching i2c routines to use the stack.
...
By default with the large memory mode, sdcc places temp data in DSEG
(__data) and parameters in XSEG (__xdata). This causes both to be placed
on the stack instead.
Previously, the temperary variables were using up to ox69 bytes in DSEG.
After the change, temperary variables now end at 0x5D (12 bytes less).
The i2c routines were using the following XSEG bytes:
- 0x03 - 0x0b (i2c_recv - 8 bytes now on the stack)
- 0x0c - 0x14 (i2c_send - 8 bytes now on the stack)
- 0x15 - 0x1e (i2c_get - 9 bytes now on the stack)
- 0x1f - 0x2c (i2c_set - 13 bytes now on the stack)
- 0x1e2 - 0x1e5 (i2c_reset - 4 bytes now on the stack)
- 0x1e6 - ? (i2c_start - ? bytes now on the stack)
2020-10-01 10:32:03 -06:00
Evan Lojewski
ba5f1ab55c
8051: Allow up to 64KB firmware images.
...
The ITE EC hardware always has the first 32KB of ram mapped, while
a second 32KB of ram is banked immediately after. By default, the
banked physical address immediately follows the fixed area in flash.
2020-10-01 10:32:03 -06:00
Jeremy Soller
99ef48f9c4
Address PR feedback
2020-09-29 19:42:05 -06:00
Jeremy Soller
00043ebfaf
Only send hotkey SCI if ACPI OS is loaded
2020-09-29 19:42:05 -06:00
Jeremy Soller
343722e350
Add hardware keyboard color handling
2020-09-29 19:42:05 -06:00
Jeremy Soller
480e05d12b
Move hardware hotkey processing to a new function
2020-09-29 19:42:05 -06:00
Jeremy Soller
f3688be919
Use enum for EC OS
2020-09-29 19:42:05 -06:00
Jeremy Soller
024f4de620
Include KT_FN in keymap.csv
2020-09-29 19:42:05 -06:00
Jeremy Soller
ad5cd931e3
Move StdTimeout to ectool under std feature
2020-09-29 19:42:05 -06:00
Jeremy Soller
525e21033f
Add layout data generator
2020-09-29 19:42:05 -06:00
Jeremy Soller
d0d9f65b6e
Use K_ defines for SCI keys
2020-09-29 19:42:05 -06:00
Jeremy Soller
80412e7a10
Rename K_E0 to KF_E0 (key flag E0) to aid in automatic layout generation
2020-09-29 19:42:05 -06:00
Jeremy Soller
de26cdfa74
Commands for reading and setting keyboard map
2020-09-29 19:42:05 -06:00
Jeremy Soller
432c4f64d2
Remove unnecessary keymap function
2020-09-29 19:42:05 -06:00
Jeremy Soller
f36b38a7b2
Make KEYMAP's __xdata so they can be edited at runtime
2020-09-29 19:42:05 -06:00
Jeremy Soller
882dd02e06
Move SROM register definition to ec/scratch.h
2020-09-29 19:42:05 -06:00
Jeremy Soller
fd0bbc53f4
Set limits on SRAM usage
2020-09-29 19:42:05 -06:00
Tim Crawford
582a5e2a97
kbscan: Prevent wake when lid is closed
...
Resolves : #102
2020-09-29 10:50:39 -06:00
Tim Crawford
c9caca51cd
battery: Fix typo
2020-09-22 16:06:20 -06:00
Tim Crawford
dabda16742
acpi: Handle ACPI queries for charging thresholds
...
Requires an update to coreboot to expose the ACPI methods.
2020-09-22 16:06:20 -06:00
Jeremy Soller
c752097753
Add KBC 0xF6 command
2020-09-17 11:23:45 -06:00
Tim Crawford
5fd9df0ed0
Add SPDX license identifiers
...
Add license information to files. Mostly automated with:
find src/ -name '*.[c,h]' | xargs sed -i '1s,^,// SPDX-License-Identifier: GPL-3.0-only\n\n,'
find src/ -name '*.mk' | xargs sed -i '1s,^,# SPDX-License-Identifier: GPL-3.0-only\n\n,'
2020-09-17 09:17:08 -06:00
Tim Crawford
def5821b01
docs: Add notes for porting a new board
2020-09-15 12:03:13 -06:00
Tim Crawford
bf0d6b571c
oryp5: Add new board
2020-09-10 17:32:33 -06:00
Tim Crawford
297ae4885a
board/system76: Set battery thresholds per board
2020-09-04 10:17:21 -06:00
Tim Crawford
fd6f9a0a05
battery: Implement charging thresholds
...
Battery Charging Start Threshold:
- Valid values are [0, 100]
- A value of 0 disables the feature, leaving the charger enabled on AC
Battery Charging End Threshold:
- Valid values are [0,100]
- A value of 100 disabled the feature, leaving the charger enabled on AC
The stop threshold must be configured for the start threshold to work.
2020-09-04 10:17:21 -06:00
Tim Crawford
4f0aa600d7
battery: Don't repeatedly configure charger
...
Make enable/disable a no-op if the charger is already in that state to
allow calling outside of ACIN_N state changes.
2020-09-04 10:17:21 -06:00
Tim Crawford
83c219589a
Add battery detection
...
Don't turn on battery LEDs or report it connected if not initialized.
2020-09-04 07:21:08 -06:00
Jeremy Soller
61ca9c7b6a
Fix RPM endianness
2020-09-03 12:25:56 -06:00
Jeremy Soller
db6e85eb56
Add ACPI thermal interface
2020-09-03 12:06:09 -06:00
Jeremy Soller
ee404071fb
Add acpi_reset function, to reset registers set by the OS
2020-09-02 08:41:30 -06:00
Tim Crawford
70e6476208
power: Enable Wake-on-LAN
2020-08-28 13:23:54 -06:00
Tim Crawford
e58f4d4eb9
Fix CFLAGS for BOARD_{,DGPU_}HEATUP
2020-08-27 13:15:47 -06:00
Jeremy Soller
a1826a2fad
Do not potentially repeat hardware hotkey actions
2020-08-27 09:22:06 -06:00
Tim Crawford
76edf9e7a4
docs: Add note about system reset for internal flashing
2020-08-19 15:07:42 -06:00
Jeremy Soller
0b875d16bd
bonw14: do not reset light guide
2020-08-19 13:09:38 -06:00
Jeremy Soller
1e0750168b
Set USB_PWR_EN# on gaze15 1650/1650Ti
2020-08-19 08:41:47 -06:00
Jeremy Soller
f1809926f6
bonw14
2020-08-13 12:56:24 -06:00