u-boot/include/test/cedit-test.h
Simon Glass d8ff97ce91 expo: Use standard numbering for save and discard
Set aside some expo IDs for 'save' and 'discard' buttons. This avoids
needing to store the IDs for these. Adjust the documentation and expo
tool for the new EXPOID_BASE_ID value.

Ignore these objects when saving and loading the cedit, since they do
not contain real data.

Adjust 'cedit run' to return failure when the user exits the expo
without saving. Update the test for this change as well.

Signed-off-by: Simon Glass <sjg@chromium.org>
2024-10-18 14:10:22 -06:00

32 lines
627 B
C

/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Binding shared between cedit.dtsi and test/boot/expo.c
*
* Copyright 2023 Google LLC
* Written by Simon Glass <sjg@chromium.org>
*/
#ifndef __cedit_test_h
#define __cedit_test_h
#define ID_PROMPT 5
#define ID_SCENE1 6
#define ID_SCENE1_TITLE 7
#define ID_CPU_SPEED 8
#define ID_CPU_SPEED_TITLE 9
#define ID_CPU_SPEED_1 10
#define ID_CPU_SPEED_2 11
#define ID_CPU_SPEED_3 12
#define ID_POWER_LOSS 13
#define ID_AC_OFF 14
#define ID_AC_ON 15
#define ID_AC_MEMORY 16
#define ID_MACHINE_NAME 17
#define ID_MACHINE_NAME_EDIT 18
#define ID_DYNAMIC_START 19
#endif