summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@new-fish.medaka.james.internal>2025-09-04 01:52:44 +0100
committerroot <root@new-fish.medaka.james.internal>2025-09-04 01:52:44 +0100
commitb34b92737a5ecd4363417e8f8faf12011da8ae86 (patch)
tree1da1f922ad1f0e52c4abb70e554b21396e2e2548
parentcf579b99036b7c9f492332d763cd0b843cf340c4 (diff)
downloadhp_instrument_lcds-b34b92737a5ecd4363417e8f8faf12011da8ae86.tar.gz
hp_instrument_lcds-b34b92737a5ecd4363417e8f8faf12011da8ae86.tar.bz2
hp_instrument_lcds-b34b92737a5ecd4363417e8f8faf12011da8ae86.zip
ebaz4205
-rw-r--r--fpga/ebaz4205/Makefile2
-rw-r--r--fpga/ebaz4205/linux-4.19-pq/master/ocm5
2 files changed, 4 insertions, 3 deletions
diff --git a/fpga/ebaz4205/Makefile b/fpga/ebaz4205/Makefile
index 4dc7ffc..4d319a8 100644
--- a/fpga/ebaz4205/Makefile
+++ b/fpga/ebaz4205/Makefile
@@ -37,7 +37,7 @@ build/nowt.cpio:
${VIVO}: dummy
- ${MAKE} -C ${FD}
+ (cd ${FD} && ${MAKE})
build/%.dtb:src/%.dts ${LD}/arch/arm/boot/zImage
${LD}/scripts/dtc/dtc -O dtb -o $@ -b 0 -i ${LD}/arch/arm/boot/dts $<
diff --git a/fpga/ebaz4205/linux-4.19-pq/master/ocm b/fpga/ebaz4205/linux-4.19-pq/master/ocm
index 74a770b..13cf5f1 100644
--- a/fpga/ebaz4205/linux-4.19-pq/master/ocm
+++ b/fpga/ebaz4205/linux-4.19-pq/master/ocm
@@ -35,10 +35,10 @@ index af22bbc3..2470b1ae 100644
+obj-$(CONFIG_MISC_OCM) += ocm.o
diff --git a/drivers/misc/ocm.c b/drivers/misc/ocm.c
new file mode 100644
-index 00000000..682b440c
+index 00000000..b0678892
--- /dev/null
+++ b/drivers/misc/ocm.c
-@@ -0,0 +1,194 @@
+@@ -0,0 +1,195 @@
+#include <linux/miscdevice.h>
+#include <linux/fs.h>
+#include <linux/kernel.h>
@@ -147,6 +147,7 @@ index 00000000..682b440c
+ res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
+
+ zynq_ocm_len=res->end - res->start;
++ zynq_ocm_len++;
+ pr_info("zynq_ocm resource indicates length of 0x%x\n",zynq_ocm_len);
+
+ ptr = devm_ioremap_resource(&pdev->dev, res);