added my Recipes
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
all: pxaregs
|
||||
@@ -0,0 +1,15 @@
|
||||
Index: pxaregs-1.14/pxaregs.c
|
||||
===================================================================
|
||||
--- pxaregs-1.14.orig/pxaregs.c
|
||||
+++ pxaregs-1.14/pxaregs.c
|
||||
@@ -21,10 +21,6 @@
|
||||
#include <fcntl.h>
|
||||
#include <ctype.h>
|
||||
|
||||
-#include <linux/i2c.h>
|
||||
-#include <linux/i2c-dev.h>
|
||||
-
|
||||
-
|
||||
// fd for /dev/mem
|
||||
static int fd = -1;
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
Index: pxaregs-1.14/pxaregs.c
|
||||
===================================================================
|
||||
--- pxaregs-1.14.orig/pxaregs.c
|
||||
+++ pxaregs-1.14/pxaregs.c
|
||||
@@ -1794,7 +1794,7 @@ static int getmem(u32 addr)
|
||||
regaddr = map + (addr & MAP_MASK);
|
||||
|
||||
val = *(u32*) regaddr;
|
||||
- munmap(0,MAP_SIZE);
|
||||
+ munmap(map,MAP_SIZE);
|
||||
|
||||
return val;
|
||||
}
|
||||
@@ -1829,7 +1829,7 @@ static void putmem(u32 addr, u32 val)
|
||||
regaddr = map + (addr & MAP_MASK);
|
||||
|
||||
*(u32*) regaddr = val;
|
||||
- munmap(0,MAP_SIZE);
|
||||
+ munmap(map,MAP_SIZE);
|
||||
}
|
||||
|
||||
static u32 lastaddr = 0;
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,14 @@
|
||||
Index: pxaregs-1.14/pxaregs.c
|
||||
===================================================================
|
||||
--- pxaregs-1.14.orig/pxaregs.c
|
||||
+++ pxaregs-1.14/pxaregs.c
|
||||
@@ -78,6 +78,9 @@ static struct reg_info regs[] = {
|
||||
{ "ISAR", 0x403016A0, 0, 0xffffffff, 'x', "I2C Slave Address Register" },
|
||||
{ "ISAR_SA", 0x403016A0, 0, 0x0000007f, 'x', "I2C Slave Address" },
|
||||
|
||||
+{ "HW_MCR", 0x41600010, 0, 0xffffffff, 'x', "HWUART Modem Control Register" },
|
||||
+{ "HW_MSR", 0x41600018, 0, 0xffffffff, 'x', "HWUART Modem Status Register" },
|
||||
+
|
||||
{ "PMCR", 0x40F00000, 0, 0xffffffff, 'x', "Power Manager Control Register (3-23)" },
|
||||
{ "PMCR_IDAE", 0x40F00000, 0, 0x00000001, 'd', "PM imprecise data abort abort signal" },
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
Index: pxaregs-1.14/pxaregs.c
|
||||
===================================================================
|
||||
--- pxaregs-1.14.orig/pxaregs.c
|
||||
+++ pxaregs-1.14/pxaregs.c
|
||||
@@ -78,6 +78,12 @@ static struct reg_info regs[] = {
|
||||
{ "ISAR", 0x403016A0, 0, 0xffffffff, 'x', "I2C Slave Address Register" },
|
||||
{ "ISAR_SA", 0x403016A0, 0, 0x0000007f, 'x', "I2C Slave Address" },
|
||||
|
||||
+{ "UP2OCR", 0x40600020, 0, 0xffffffff, 'x', "USB Port 2 Output Control Register" },
|
||||
+{ "UP2OCR_SEOS", 0x40600020, 24, 7, 'x', "USB Port 2 Single-Ended Output Select" },
|
||||
+{ "UP2OCR_HXOE", 0x40600020, 17, 1, 'x', "USB Port 2 Tranceiver OE" },
|
||||
+{ "UP2OCR_HXS", 0x40600020, 16, 1, 'x', "USB Port 2 Tranceiver Output Select" },
|
||||
+{ "UP2OCR_IDON", 0x40600020, 10, 1, 'x', "OTG ID Read Enable" },
|
||||
+
|
||||
{ "HW_MCR", 0x41600010, 0, 0xffffffff, 'x', "HWUART Modem Control Register" },
|
||||
{ "HW_MSR", 0x41600018, 0, 0xffffffff, 'x', "HWUART Modem Status Register" },
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
SUMMARY = "Tool to display and modify PXA registers at runtime"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://pxaregs.c;endline=12;md5=668d061b7637acc68cb8071c9be372e6"
|
||||
AUTHOR = "Holger Schurig <hs4233@mail.mn-solutions.de>"
|
||||
HOMEPAGE = "http://www.mn-logistik.de/unsupported/pxa250/"
|
||||
|
||||
SRC_URI = "file://pxaregs.c \
|
||||
file://i2c.patch \
|
||||
file://munmap.patch \
|
||||
file://serial.patch \
|
||||
file://usb.patch "
|
||||
|
||||
S = "${WORKDIR}"
|
||||
|
||||
do_compile() {
|
||||
${CC} pxaregs.c -o pxaregs ${CFLAGS} ${LDFLAGS}
|
||||
}
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${sbindir}/
|
||||
install -m 0755 pxaregs ${D}${sbindir}/
|
||||
}
|
||||
|
||||
SRC_URI[md5sum] = "a43baa88842cd5926dbffb6fb87624f6"
|
||||
SRC_URI[sha256sum] = "f339b91cd8ab348052c36b36d20033e4bffc3666bc836ff72d5704f025e1c057"
|
||||
Reference in New Issue
Block a user