mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
Merge tag 'dm-pull-17oct24-take2' of https://gitlab.denx.de/u-boot/custodians/u-boot-dm
A few new x86 commands and minor improvements expo improvements binman support for signing FIT images
This commit is contained in:
@@ -197,7 +197,6 @@ static inline void blkcache_free(void) {}
|
||||
|
||||
#endif
|
||||
|
||||
#if CONFIG_IS_ENABLED(BLK)
|
||||
struct udevice;
|
||||
|
||||
/* Operations on block devices */
|
||||
@@ -278,6 +277,8 @@ struct blk_ops {
|
||||
#endif /* CONFIG_BOUNCE_BUFFER */
|
||||
};
|
||||
|
||||
#if CONFIG_IS_ENABLED(BLK)
|
||||
|
||||
/*
|
||||
* These functions should take struct udevice instead of struct blk_desc,
|
||||
* but this is convenient for migration to driver model. Add a 'd' prefix
|
||||
@@ -291,6 +292,8 @@ unsigned long blk_dwrite(struct blk_desc *block_dev, lbaint_t start,
|
||||
unsigned long blk_derase(struct blk_desc *block_dev, lbaint_t start,
|
||||
lbaint_t blkcnt);
|
||||
|
||||
#endif /* BLK */
|
||||
|
||||
/**
|
||||
* blk_read() - Read from a block device
|
||||
*
|
||||
@@ -528,8 +531,10 @@ struct blk_desc *blk_get_by_device(struct udevice *dev);
|
||||
*/
|
||||
int blk_get_desc(enum uclass_id uclass_id, int devnum, struct blk_desc **descp);
|
||||
|
||||
#else
|
||||
#if !CONFIG_IS_ENABLED(BLK)
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
/*
|
||||
* These functions should take struct udevice instead of struct blk_desc,
|
||||
* but this is convenient for migration to driver model. Add a 'd' prefix
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
struct abuf;
|
||||
struct expo;
|
||||
struct scene;
|
||||
struct udevice;
|
||||
struct video_priv;
|
||||
struct udevice;
|
||||
|
||||
|
||||
@@ -15,6 +15,26 @@ struct udevice;
|
||||
|
||||
#include <cli.h>
|
||||
|
||||
/**
|
||||
* enum expo_id_t - standard expo IDs
|
||||
*
|
||||
* These are assumed to be in use at all times. Expos should use IDs starting
|
||||
* from EXPOID_BASE_ID,
|
||||
*
|
||||
* @EXPOID_NONE: Not used, invalid ID 0
|
||||
* @EXPOID_SAVE: User has requested that the expo data be saved
|
||||
* @EXPOID_DISCARD: User has requested that the expo data be discarded
|
||||
* @EXPOID_BASE_ID: First ID which can be used for expo objects
|
||||
*/
|
||||
enum expo_id_t {
|
||||
EXPOID_NONE,
|
||||
|
||||
EXPOID_SAVE,
|
||||
EXPOID_DISCARD,
|
||||
|
||||
EXPOID_BASE_ID = 5,
|
||||
};
|
||||
|
||||
/**
|
||||
* enum expoact_type - types of actions reported by the expo
|
||||
*
|
||||
@@ -59,11 +79,14 @@ struct expo_action {
|
||||
* @font_size: Default font size for all text
|
||||
* @menu_inset: Inset width (on each side and top/bottom) for menu items
|
||||
* @menuitem_gap_y: Gap between menu items in pixels
|
||||
* @menu_title_margin_x: Gap between right side of menu title and left size of
|
||||
* menu label
|
||||
*/
|
||||
struct expo_theme {
|
||||
u32 font_size;
|
||||
u32 menu_inset;
|
||||
u32 menuitem_gap_y;
|
||||
u32 menu_title_margin_x;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -307,6 +330,7 @@ enum scene_menuitem_flags_t {
|
||||
* @desc_id: ID of text object to use as the description text
|
||||
* @preview_id: ID of the preview object, or 0 if none
|
||||
* @flags: Flags for this item
|
||||
* @value: Value for this item, or INT_MAX to use sequence
|
||||
* @sibling: Node to link this item to its siblings
|
||||
*/
|
||||
struct scene_menitem {
|
||||
@@ -317,6 +341,7 @@ struct scene_menitem {
|
||||
uint desc_id;
|
||||
uint preview_id;
|
||||
uint flags;
|
||||
int value;
|
||||
struct list_head sibling;
|
||||
};
|
||||
|
||||
@@ -341,6 +366,15 @@ struct scene_obj_textline {
|
||||
uint pos;
|
||||
};
|
||||
|
||||
/**
|
||||
* struct expo_arrange_info - Information used when arranging a scene
|
||||
*
|
||||
* @label_width: Maximum width of labels in scene
|
||||
*/
|
||||
struct expo_arrange_info {
|
||||
int label_width;
|
||||
};
|
||||
|
||||
/**
|
||||
* expo_new() - create a new expo
|
||||
*
|
||||
@@ -506,15 +540,6 @@ void scene_set_highlight_id(struct scene *scn, uint id);
|
||||
*/
|
||||
int scene_set_open(struct scene *scn, uint id, bool open);
|
||||
|
||||
/**
|
||||
* scene_title_set() - set the scene title
|
||||
*
|
||||
* @scn: Scene to update
|
||||
* @title_id: Title ID to set
|
||||
* Returns: 0 if OK
|
||||
*/
|
||||
int scene_title_set(struct scene *scn, uint title_id);
|
||||
|
||||
/**
|
||||
* scene_obj_count() - Count the number of objects in a scene
|
||||
*
|
||||
|
||||
@@ -9,24 +9,24 @@
|
||||
#ifndef __cedit_test_h
|
||||
#define __cedit_test_h
|
||||
|
||||
#define ID_PROMPT 1
|
||||
#define ID_SCENE1 2
|
||||
#define ID_SCENE1_TITLE 3
|
||||
#define ID_PROMPT 5
|
||||
#define ID_SCENE1 6
|
||||
#define ID_SCENE1_TITLE 7
|
||||
|
||||
#define ID_CPU_SPEED 4
|
||||
#define ID_CPU_SPEED_TITLE 5
|
||||
#define ID_CPU_SPEED_1 6
|
||||
#define ID_CPU_SPEED_2 7
|
||||
#define ID_CPU_SPEED_3 8
|
||||
#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 9
|
||||
#define ID_AC_OFF 10
|
||||
#define ID_AC_ON 11
|
||||
#define ID_AC_MEMORY 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 13
|
||||
#define ID_MACHINE_NAME_EDIT 14
|
||||
#define ID_MACHINE_NAME 17
|
||||
#define ID_MACHINE_NAME_EDIT 18
|
||||
|
||||
#define ID_DYNAMIC_START 15
|
||||
#define ID_DYNAMIC_START 19
|
||||
|
||||
#endif
|
||||
|
||||
@@ -78,7 +78,8 @@ enum video_format {
|
||||
*
|
||||
* @xsize: Number of pixel columns (e.g. 1366)
|
||||
* @ysize: Number of pixels rows (e.g.. 768)
|
||||
* @rot: Display rotation (0=none, 1=90 degrees clockwise, etc.)
|
||||
* @rot: Display rotation (0=none, 1=90 degrees clockwise, etc.). THis
|
||||
* does not affect @xsize and @ysize
|
||||
* @bpix: Encoded bits per pixel (enum video_log2_bpp)
|
||||
* @format: Pixel format (enum video_format)
|
||||
* @vidconsole_drv_name: Driver to use for the text console, NULL to
|
||||
@@ -181,6 +182,7 @@ enum colour_idx {
|
||||
VID_LIGHT_MAGENTA,
|
||||
VID_LIGHT_CYAN,
|
||||
VID_WHITE,
|
||||
VID_DARK_GREY,
|
||||
|
||||
VID_COLOUR_COUNT
|
||||
};
|
||||
|
||||
@@ -27,6 +27,14 @@ enum {
|
||||
* Drivers must set up @rows, @cols, @x_charsize, @y_charsize in their probe()
|
||||
* method. Drivers may set up @xstart_frac if desired.
|
||||
*
|
||||
* Note that these values relate to the rotated console, so that an 80x25
|
||||
* console which is rotated 90 degrees will have rows=80 and cols=25
|
||||
*
|
||||
* The xcur_frac and ycur values refer to the unrotated coordinates, that is
|
||||
* xcur_frac always advances with each character, even if its limit might be
|
||||
* vid_priv->ysize instead of vid_priv->xsize if the console is rotated 90 or
|
||||
* 270 degrees.
|
||||
*
|
||||
* @sdev: stdio device, acting as an output sink
|
||||
* @xcur_frac: Current X position, in fractional units (VID_TO_POS(x))
|
||||
* @ycur: Current Y position in pixels (0=top)
|
||||
|
||||
Reference in New Issue
Block a user