The constants don't work with the DECLARE_IRQ() macro yet, because it
relies on stringizing the IRQ number.
Signed-off-by: Randall Spangler <rspangler@chromium.org>
BUG=none
TEST=none
Change-Id: Ie6ddecd79e28c319b095089131579ba994a17da3
(cherry picked from commit e24904644a977f2618f51629cc066b93a3d53595)
LPC module no longer directly talks to UART registers, and vice-versa.
Signed-off-by: Randall Spangler <rspangler@chromium.org>
BUG=none
TEST='ectool sertest' on target system
Change-Id: Id070c0d849bdfe91c752e0af651d357b695d2648
(cherry picked from commit ab8c3c2b8e3b08a4bf5573cda3a12dd3a384e67d)
The LPC is not stable enough to test. Kodus Rong. He creates this idea
to checksum the partial content of flash for read/write/erase. This can
improve the robustness of flashrom.
BUG=none
TEST=Tested with flashrom.
Change-Id: I2a2f7b698a94674c03cbd8e3f15caf34f8986399
This CL add host command to enable, get/set flash write protect range.
BUG=None
TEST=Use flashrom utility to set write protect range, enable write
protect and get status.
Change-Id: I345f1eb65944d8cf8028e6fdb7e43c40cc742a6d
Signed-off-by: Rong Chang <rongchang@chromium.org>
re-compile the QEMU code, so it runs properly inside the chroot.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BUG=None
TEST=make qemu-tests
Change-Id: Ib2a5d9aa56533fd6749c40eb8f73db955676886d
we are using linux style indentation,
so we should not check for the presence of tabs in the common python
script, checkpatch will ensure that the indentation is correct.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BUG=None.
TEST="repo upload" a CL with a new line containing tab indentation.
Change-Id: Ida3ef3d8274edd3e8e701e2ede43836c944cd263
Build is the system doing the build (e.g. 64-bit linux) and host is the
target platform on top of the ec (e.g. 32-bit Chromium OS).
Necessary to get ectool properly compiling for Chromium OS.
Signed-off-by: Randall Spangler <rspangler@chromium.org>
BUG=none
TEST=make && file build/bds/util/ectool; ectool should be a 32-bit binary
Change-Id: I50eba4c164ece236646a7c6087b1b86769beeb28
Also add the framework to handle i8042 command from host.
BUG=None
TEST=cd cros_ec/test; make && make runtests
Change-Id: I47c5dfec47fb0e439be923f08dcd2cbc873baba6
Added i8042 interface and matrix code. Demonstrate a key is pressed and passed
to host through the board-dependent matrix code.
BUG=None
TEST=make && make runtests
Change-Id: I6a9f5e621d9e93e5c16384afebf4d665000e81a6
This CL also includes 4 pieces:
1. main files: environment-independent (main.c) and
-dependent (ec_keyboard_test.c).
2. stub files: chip_stub/keyboard.c simulates the real hardware.
chip_stub/keyboard.h is the header of testing functions.
3. initial keyboard lib code: ec_keyboard.h
4. rename Cr* function name to Ec* under chip_interface/.
BUG=None
TEST=make && make runtests
Expect seeing the output debug message from cros_ec/lib/ec_keyboard.c.
Change-Id: Ia7e8022060eb0a5d0a11abcbdb3f524942f5c68d
The first version of EC command table to communicate with host side.
Also bring in the README file.
BUG=None
TEST=None
Change-Id: Ic7583beb85ed866d73ef0f4e7fccd590b3943932
This lets us write modules which don't know the details of the RTOS
objects they use. More importantly, this lets us target those modules
at either Linux (using the pthread-based implementation in chip_stub)
or actual hardware, so we can write Linux-based unit tests.
BUG=None
TEST=make && ./ec_os_test
Change-Id: I2923b9a48248b27f3bc3b0346d5a870fef8a1c5b
(cherry picked from commit 6ccc37af9fb916f7ad70f542905ba8bacb8e3be2)