Skip to content

Commit 5c5dfe9

Browse files
committed
fwk: Add baseboard to unify hx20 and hx30
Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent ee6dea0 commit 5c5dfe9

File tree

5 files changed

+35
-0
lines changed

5 files changed

+35
-0
lines changed

baseboard/fwk/baseboard.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/* Copyright 2022 The Chromium OS Authors. All rights reserved.
2+
* Use of this source code is governed by a BSD-style license that can be
3+
* found in the LICENSE file.
4+
*/
5+
6+
/* Framework Laptop family-specific configuration */
7+
8+
#define CPRINTS(format, args...) cprints(CC_USBCHARGE, format, ## args)
9+
#define CPRINTF(format, args...) cprintf(CC_USBCHARGE, format, ## args)
10+

baseboard/fwk/baseboard.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/* Copyright 2022 The Chromium OS Authors. All rights reserved.
2+
* Use of this source code is governed by a BSD-style license that can be
3+
* found in the LICENSE file.
4+
*/
5+
6+
/* Framework Laptop family-specific configuration */
7+
8+
#ifndef __CROS_EC_BASEBOARD_H
9+
#define __CROS_EC_BASEBOARD_H
10+
11+
12+
#endif /* __CROS_EC_BASEBOARD_H */

baseboard/fwk/build.mk

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# -*- makefile -*-
2+
# Copyright 2022 The Chromium OS Authors. All rights reserved.
3+
# Use of this source code is governed by a BSD-style license that can be
4+
# found in the LICENSE file.
5+
#
6+
# Baseboard specific files build
7+
#
8+
9+
baseboard-y=baseboard.o

board/hx20/build.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ CHIP_VARIANT:=mec152x_3400
1717

1818
CHIP_SPI_SIZE_KB:=512
1919

20+
BASEBOARD:=fwk
21+
2022
board-y=board.o led.o power_sequence.o cypress5525.o ucsi.o diagnostics.o cpu_power.o flash_storage.o
2123
board-$(CONFIG_BATTERY_SMART)+=battery.o
2224
board-$(CONFIG_FANS)+=fan.o

board/hx30/build.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ CHIP_VARIANT:=mec152x_3400
1717

1818
CHIP_SPI_SIZE_KB:=512
1919

20+
BASEBOARD:=fwk
21+
2022
board-y=board.o led.o power_sequence.o cypress5525.o ucsi.o diagnostics.o cpu_power.o flash_storage.o
2123
board-$(CONFIG_BATTERY_SMART)+=battery.o
2224
board-$(CONFIG_FANS)+=fan.o

0 commit comments

Comments
 (0)