diff mbox

[U-Boot,1/4] ioep-fpga: Support intempo compression

Message ID 1464851142-17961-2-git-send-email-dirk.eibach@gdsys.cc
State Accepted
Commit 52b13f275e0c1c2e1fb1e367a01614137baf64ce
Delegated to: Tom Rini
Headers show

Commit Message

Dirk Eibach June 2, 2016, 7:05 a.m. UTC
From: Dirk Eibach <dirk.eibach@gdsys.cc>

There is a new "intempo" compression type that can
be reported on startup.

Signed-off-by: Dirk Eibach <dirk.eibach@gdsys.cc>
---

 board/gdsys/common/ioep-fpga.c | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

Comments

Tom Rini June 2, 2016, 1:04 p.m. UTC | #1
On Thu, Jun 02, 2016 at 09:05:39AM +0200, dirk.eibach@gdsys.cc wrote:

> From: Dirk Eibach <dirk.eibach@gdsys.cc>
> 
> There is a new "intempo" compression type that can
> be reported on startup.
> 
> Signed-off-by: Dirk Eibach <dirk.eibach@gdsys.cc>

Reviewed-by: Tom Rini <trini@konsulko.com>
Tom Rini June 6, 2016, 9:29 p.m. UTC | #2
On Thu, Jun 02, 2016 at 09:05:39AM +0200, Dirk Eibach wrote:

> From: Dirk Eibach <dirk.eibach@gdsys.cc>
> 
> There is a new "intempo" compression type that can
> be reported on startup.
> 
> Signed-off-by: Dirk Eibach <dirk.eibach@gdsys.cc>
> Reviewed-by: Tom Rini <trini@konsulko.com>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/board/gdsys/common/ioep-fpga.c b/board/gdsys/common/ioep-fpga.c
index 96f02d6..f72a01e 100644
--- a/board/gdsys/common/ioep-fpga.c
+++ b/board/gdsys/common/ioep-fpga.c
@@ -25,8 +25,9 @@  enum {
 
 enum {
 	COMPRESSION_NONE = 0,
-	COMPRESSION_TYPE1_DELTA = 1,
-	COMPRESSION_TYPE1_TYPE2_DELTA = 3,
+	COMPRESSION_TYPE_1 = 1,
+	COMPRESSION_TYPE_1_2 = 3,
+	COMPRESSION_TYPE_1_2_3 = 7,
 };
 
 enum {
@@ -158,12 +159,16 @@  void ioep_fpga_print_info(unsigned int fpga)
 		printf(" no compression");
 		break;
 
-	case COMPRESSION_TYPE1_DELTA:
-		printf(" type1-deltacompression");
+	case COMPRESSION_TYPE_1:
+		printf(" compression type1(delta)");
 		break;
 
-	case COMPRESSION_TYPE1_TYPE2_DELTA:
-		printf(" type1-deltacompression, type2-inlinecompression");
+	case COMPRESSION_TYPE_1_2:
+		printf(" compression type1(delta), type2(inline)");
+		break;
+
+	case COMPRESSION_TYPE_1_2_3:
+		printf(" compression type1(delta), type2(inline), type3(intempo)");
 		break;
 
 	default: