From 81bd22e935dc9e5f38863a674d50cb3a804f0804 Mon Sep 17 00:00:00 2001 From: Johan Jonker Date: Wed, 18 Oct 2023 16:01:10 +0200 Subject: rockchip: block: blk-uclass: add bounce buffer flag to blk_desc Currently bounce buffer support is enabled for all block devices when available. Add a flag to blk_desc to enable only on demand. Signed-off-by: Johan Jonker Reviewed-by: Simon Glass Reviewed-by: Kever Yang --- include/blk.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/blk.h b/include/blk.h index 76bd5baf995..7c7cf7f2b10 100644 --- a/include/blk.h +++ b/include/blk.h @@ -68,6 +68,7 @@ struct blk_desc { /* device can use 48bit addr (ATA/ATAPI v7) */ bool lba48; unsigned char atapi; /* Use ATAPI protocol */ + unsigned char bb; /* Use bounce buffer */ lbaint_t lba; /* number of blocks */ unsigned long blksz; /* block size */ int log2blksz; /* for convenience: log2(blksz) */ -- cgit v1.2.3