From: Miroslav Ondra Date: Sun, 24 Jan 2021 18:17:24 +0000 (+0100) Subject: Set MAX_SPI_SIZE from 60 to 64 X-Git-Url: http://git.graph-it.com/?a=commitdiff_plain;h=e284063321376a6bbd649781a219bcb42798a63f;p=graphit%2Funipi-kernel.git Set MAX_SPI_SIZE from 60 to 64 --- diff --git a/debian/bootcmd.d/src/40-enable-rtc-zulu.conf b/debian/bootcmd.d/src/40-enable-rtc-zulu.conf new file mode 100644 index 0000000..b6c30a4 --- /dev/null +++ b/debian/bootcmd.d/src/40-enable-rtc-zulu.conf @@ -0,0 +1 @@ +fdt set /soc@0/bus@30800000/i2c@30a40000/rtc@6f compatible "unipi,unipi-mcp7941x" diff --git a/debian/g1-unipi-kernel-modules.install b/debian/g1-unipi-kernel-modules.install index aab9bf2..7f9ef06 100644 --- a/debian/g1-unipi-kernel-modules.install +++ b/debian/g1-unipi-kernel-modules.install @@ -1 +1 @@ -debian/bootcmd.d etc/ +debian/bootcmd.d/40-enable-rtc-unipi.conf etc/bootcmd.d diff --git a/debian/zulu-unipi-kernel-modules.install b/debian/zulu-unipi-kernel-modules.install new file mode 100644 index 0000000..ed1bed1 --- /dev/null +++ b/debian/zulu-unipi-kernel-modules.install @@ -0,0 +1 @@ +debian/bootcmd.d/40-enable-rtc-zulu.conf etc/bootcmd.d diff --git a/modules/unipi/src/unipi_common.h b/modules/unipi/src/unipi_common.h index 03695f8..a3b2be8 100644 --- a/modules/unipi/src/unipi_common.h +++ b/modules/unipi/src/unipi_common.h @@ -74,7 +74,12 @@ #define NEURONSPI_SLOWER_FREQ 7500000 #endif +#if defined(CONFIG_ARM64) +#define NEURONSPI_MAX_TX 64 +#else #define NEURONSPI_MAX_TX 60 +#endif + //#define NEURONSPI_MAX_TX 256 #define NEURONSPI_MAX_BAUD 115200 #define NEURONSPI_FIFO_SIZE 256