* assorted patches
@ 2011-03-08 11:39 Sascha Hauer
2011-03-08 11:39 ` [PATCH 1/5] ARM scb9328: Add gpio led support Sascha Hauer
` (4 more replies)
0 siblings, 5 replies; 10+ messages in thread
From: Sascha Hauer @ 2011-03-08 11:39 UTC (permalink / raw)
To: barebox
Hi All,
Some assorted patches here. Most notable probably is the increase
of the chunk size in ramfs which greatly improves speed. The
gpio LEDs finally get a user and modules get usable again.
Sascha Hauer (5):
ARM scb9328: Add gpio led support
ramfs: increase chunk size to 4 kbyte
mfd/mc13892: Add missing semicolons
module: CONFIG_COMMAND does not exist anymore, remove ifdefs
trigger command: fix printf format
arch/arm/boards/scb9328/scb9328.c | 24 +++++++++++++++++++++++-
commands/trigger.c | 2 +-
common/module.c | 2 --
drivers/mfd/mc13892.c | 4 ++--
fs/ramfs.c | 2 +-
5 files changed, 27 insertions(+), 7 deletions(-)
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 1/5] ARM scb9328: Add gpio led support
2011-03-08 11:39 assorted patches Sascha Hauer
@ 2011-03-08 11:39 ` Sascha Hauer
2011-03-08 11:39 ` [PATCH 2/5] ramfs: increase chunk size to 4 kbyte Sascha Hauer
` (3 subsequent siblings)
4 siblings, 0 replies; 10+ messages in thread
From: Sascha Hauer @ 2011-03-08 11:39 UTC (permalink / raw)
To: barebox
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
arch/arm/boards/scb9328/scb9328.c | 24 +++++++++++++++++++++++-
1 files changed, 23 insertions(+), 1 deletions(-)
diff --git a/arch/arm/boards/scb9328/scb9328.c b/arch/arm/boards/scb9328/scb9328.c
index 35c7fdf..a98d9fe 100644
--- a/arch/arm/boards/scb9328/scb9328.c
+++ b/arch/arm/boards/scb9328/scb9328.c
@@ -31,6 +31,7 @@
#include <fs.h>
#include <fcntl.h>
#include <dm9000.h>
+#include <led.h>
static struct device_d cfi_dev = {
.id = -1,
@@ -68,9 +69,30 @@ static struct device_d dm9000_dev = {
.platform_data = &dm9000_data,
};
-static int scb9328_devices_init(void) {
+struct gpio_led leds[] = {
+ {
+ .gpio = 32 + 21,
+ }, {
+ .gpio = 32 + 22,
+ }, {
+ .gpio = 32 + 23,
+ }, {
+ .gpio = 32 + 24,
+ },
+};
+
+static int scb9328_devices_init(void)
+{
+ int i;
imx_gpio_mode(PA23_PF_CS5);
+ imx_gpio_mode(GPIO_PORTB | GPIO_GPIO | GPIO_OUT | 21);
+ imx_gpio_mode(GPIO_PORTB | GPIO_GPIO | GPIO_OUT | 22);
+ imx_gpio_mode(GPIO_PORTB | GPIO_GPIO | GPIO_OUT | 23);
+ imx_gpio_mode(GPIO_PORTB | GPIO_GPIO | GPIO_OUT | 24);
+
+ for (i = 0; i < ARRAY_SIZE(leds); i++)
+ led_gpio_register(&leds[i]);
/* CS3 becomes CS3 by clearing reset default bit 1 in FMCR */
FMCR = 0x1;
--
1.7.2.3
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 2/5] ramfs: increase chunk size to 4 kbyte
2011-03-08 11:39 assorted patches Sascha Hauer
2011-03-08 11:39 ` [PATCH 1/5] ARM scb9328: Add gpio led support Sascha Hauer
@ 2011-03-08 11:39 ` Sascha Hauer
2011-03-08 11:39 ` [PATCH 3/5] mfd/mc13892: Add missing semicolons Sascha Hauer
` (2 subsequent siblings)
4 siblings, 0 replies; 10+ messages in thread
From: Sascha Hauer @ 2011-03-08 11:39 UTC (permalink / raw)
To: barebox
This greatly increases speed on ramfs.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
fs/ramfs.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/ramfs.c b/fs/ramfs.c
index 6222550..91001f1 100644
--- a/fs/ramfs.c
+++ b/fs/ramfs.c
@@ -30,7 +30,7 @@
#include <linux/stat.h>
#include <xfuncs.h>
-#define CHUNK_SIZE 512
+#define CHUNK_SIZE 4096
struct ramfs_chunk {
char *data;
--
1.7.2.3
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 3/5] mfd/mc13892: Add missing semicolons
2011-03-08 11:39 assorted patches Sascha Hauer
2011-03-08 11:39 ` [PATCH 1/5] ARM scb9328: Add gpio led support Sascha Hauer
2011-03-08 11:39 ` [PATCH 2/5] ramfs: increase chunk size to 4 kbyte Sascha Hauer
@ 2011-03-08 11:39 ` Sascha Hauer
2011-03-08 11:39 ` [PATCH 4/5] module: CONFIG_COMMAND does not exist anymore, remove ifdefs Sascha Hauer
2011-03-08 11:39 ` [PATCH 5/5] trigger command: fix printf format Sascha Hauer
4 siblings, 0 replies; 10+ messages in thread
From: Sascha Hauer @ 2011-03-08 11:39 UTC (permalink / raw)
To: barebox
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
drivers/mfd/mc13892.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mfd/mc13892.c b/drivers/mfd/mc13892.c
index 08a439b..b2cc911 100644
--- a/drivers/mfd/mc13892.c
+++ b/drivers/mfd/mc13892.c
@@ -132,7 +132,7 @@ int mc13892_reg_write(struct mc13892 *mc13892, enum mc13892_reg reg, u32 val)
#endif
return -EINVAL;
}
-EXPORT_SYMBOL(mc13892_reg_write)
+EXPORT_SYMBOL(mc13892_reg_write);
int mc13892_reg_read(struct mc13892 *mc13892, enum mc13892_reg reg, u32 *val)
{
@@ -146,7 +146,7 @@ int mc13892_reg_read(struct mc13892 *mc13892, enum mc13892_reg reg, u32 *val)
#endif
return -EINVAL;
}
-EXPORT_SYMBOL(mc13892_reg_read)
+EXPORT_SYMBOL(mc13892_reg_read);
int mc13892_set_bits(struct mc13892 *mc13892, enum mc13892_reg reg, u32 mask, u32 val)
{
--
1.7.2.3
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 4/5] module: CONFIG_COMMAND does not exist anymore, remove ifdefs
2011-03-08 11:39 assorted patches Sascha Hauer
` (2 preceding siblings ...)
2011-03-08 11:39 ` [PATCH 3/5] mfd/mc13892: Add missing semicolons Sascha Hauer
@ 2011-03-08 11:39 ` Sascha Hauer
2011-03-08 11:39 ` [PATCH 5/5] trigger command: fix printf format Sascha Hauer
4 siblings, 0 replies; 10+ messages in thread
From: Sascha Hauer @ 2011-03-08 11:39 UTC (permalink / raw)
To: barebox
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
common/module.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/common/module.c b/common/module.c
index 29f3eb7..c0ff0f2 100644
--- a/common/module.c
+++ b/common/module.c
@@ -294,7 +294,6 @@ struct module * load_module(void *mod_image, unsigned long len)
numsyms = sechdrs[symindex].sh_size / sizeof(Elf32_Sym);
sym = (void *)sechdrs[symindex].sh_addr;
-#ifdef CONFIG_COMMAND
cmdindex = find_sec(ehdr, sechdrs, secstrings, ".barebox_cmd");
if (cmdindex) {
struct command *cmd =(struct command *)sechdrs[cmdindex].sh_addr;
@@ -303,7 +302,6 @@ struct module * load_module(void *mod_image, unsigned long len)
cmd++;
}
}
-#endif
for (i = 0; i < numsyms; i++) {
if (!strcmp(strtab + sym[i].st_name, MODULE_SYMBOL_PREFIX "init_module")) {
--
1.7.2.3
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 5/5] trigger command: fix printf format
2011-03-08 11:39 assorted patches Sascha Hauer
` (3 preceding siblings ...)
2011-03-08 11:39 ` [PATCH 4/5] module: CONFIG_COMMAND does not exist anymore, remove ifdefs Sascha Hauer
@ 2011-03-08 11:39 ` Sascha Hauer
4 siblings, 0 replies; 10+ messages in thread
From: Sascha Hauer @ 2011-03-08 11:39 UTC (permalink / raw)
To: barebox
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
commands/trigger.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/commands/trigger.c b/commands/trigger.c
index 162da97..095f96d 100644
--- a/commands/trigger.c
+++ b/commands/trigger.c
@@ -79,7 +79,7 @@ static int do_trigger(struct command *cmdtp, int argc, char *argv[])
led = led_by_name_or_number(argv[optind]);
if (!led) {
- printf("no such led: %d\n", argv[optind]);
+ printf("no such led: %s\n", argv[optind]);
return 1;
}
--
1.7.2.3
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 10+ messages in thread
* assorted patches
@ 2011-04-11 14:18 Sascha Hauer
0 siblings, 0 replies; 10+ messages in thread
From: Sascha Hauer @ 2011-04-11 14:18 UTC (permalink / raw)
To: barebox
Sascha Hauer (7):
eth: check the result of edev->get_ethaddr
net: add a context to the packet handler
environment: make default env path configurable
move simple_itoa to libbb so that others can use it
kfifo: kfifo_put takes a const buffer
copy_file: handle write return value correctly
cp command: handle directories as last argument
commands/cp.c | 3 ++-
commands/loadenv.c | 2 +-
commands/saveenv.c | 2 +-
common/environment.c | 2 ++
common/hush.c | 15 +--------------
common/startup.c | 7 ++++---
include/environment.h | 3 +++
include/kfifo.h | 2 +-
include/libbb.h | 2 ++
include/net.h | 8 +++++---
lib/copy_file.c | 15 +++++++++++----
lib/kfifo.c | 2 +-
lib/libbb.c | 13 +++++++++++++
net/dhcp.c | 4 ++--
net/dns.c | 4 ++--
net/eth.c | 6 ++++--
net/net.c | 17 ++++++++++-------
net/netconsole.c | 4 ++--
net/nfs.c | 4 ++--
net/ping.c | 4 ++--
net/tftp.c | 4 ++--
21 files changed, 73 insertions(+), 50 deletions(-)
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 10+ messages in thread
* assorted patches
@ 2011-02-24 15:55 Sascha Hauer
0 siblings, 0 replies; 10+ messages in thread
From: Sascha Hauer @ 2011-02-24 15:55 UTC (permalink / raw)
To: barebox
Sascha Hauer (2):
net: use dev_* for printing network related stuff
ARM i.MX: cleanup boot modes
arch/arm/mach-imx/Kconfig | 51 +++++
arch/arm/mach-imx/Makefile | 1 +
arch/arm/mach-imx/include/mach/imx-nand.h | 56 +++++-
arch/arm/mach-imx/internal-nand-boot.c | 269 +++++++++++++++++++++++++
drivers/mtd/nand/Kconfig | 21 --
drivers/mtd/nand/nand_imx.c | 307 -----------------------------
net/eth.c | 4 +-
7 files changed, 378 insertions(+), 331 deletions(-)
create mode 100644 arch/arm/mach-imx/internal-nand-boot.c
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: assorted patches
2010-06-24 9:39 Sascha Hauer
@ 2010-06-24 15:05 ` Eric Bénard
0 siblings, 0 replies; 10+ messages in thread
From: Eric Bénard @ 2010-06-24 15:05 UTC (permalink / raw)
To: Sascha Hauer; +Cc: barebox
Hi Sascha,
Le 24/06/2010 11:39, Sascha Hauer a écrit :
>
> The following changes since commit 334fe1dc8a1b866d1f0f4ccf82ff7b06589ec022:
>
> pca100: use generic default env (2010-06-22 15:44:45 +0200)
>
> are available in the git repository at:
> git://git.pengutronix.de/git/barebox.git assorted-pu
>
> Sascha Hauer (11):
> i.MX27: merge iomux pim definitions from kernel
> imxfb: Add board specific hook to enable display
> imxfb: do not enable framebuffer on startup
> memcpy cmd: Do not expect to read/write the whole chunk at once
> armlinux: reorder tag setup
> remove eco920 board support
> usbnet: remove unused dev member in struct usbnet
> i.MX serial: Use readl/writel instead of pointer deref
> i.MX clocksource: Use readl/writel instead of pointer deref
> i.MX27: Add some missing device base addresses
> fb: add a usage counter to prevent double enable/disable
>
patche serie tested on i.MX35 : no problem found
Eric
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 10+ messages in thread
* assorted patches
@ 2010-06-24 9:39 Sascha Hauer
2010-06-24 15:05 ` Eric Bénard
0 siblings, 1 reply; 10+ messages in thread
From: Sascha Hauer @ 2010-06-24 9:39 UTC (permalink / raw)
To: barebox
The following changes since commit 334fe1dc8a1b866d1f0f4ccf82ff7b06589ec022:
pca100: use generic default env (2010-06-22 15:44:45 +0200)
are available in the git repository at:
git://git.pengutronix.de/git/barebox.git assorted-pu
Sascha Hauer (11):
i.MX27: merge iomux pim definitions from kernel
imxfb: Add board specific hook to enable display
imxfb: do not enable framebuffer on startup
memcpy cmd: Do not expect to read/write the whole chunk at once
armlinux: reorder tag setup
remove eco920 board support
usbnet: remove unused dev member in struct usbnet
i.MX serial: Use readl/writel instead of pointer deref
i.MX clocksource: Use readl/writel instead of pointer deref
i.MX27: Add some missing device base addresses
fb: add a usage counter to prevent double enable/disable
arch/arm/Makefile | 1 -
arch/arm/lib/armlinux.c | 51 +++----
arch/arm/mach-at91rm9200/Kconfig | 8 -
arch/arm/mach-imx/clocksource.c | 18 ++-
arch/arm/mach-imx/include/mach/imx21-regs.h | 33 ----
arch/arm/mach-imx/include/mach/imx27-regs.h | 96 +-----------
arch/arm/mach-imx/include/mach/imxfb.h | 2 +
arch/arm/mach-imx/include/mach/iomux-mx21.h | 121 ++++++++++++++
arch/arm/mach-imx/include/mach/iomux-mx27.h | 204 ++++++++++++++++++++++++
arch/arm/mach-imx/include/mach/iomux-mx2x.h | 230 +++++++++++++++++++++++++++
board/eco920/Makefile | 2 -
board/eco920/config.h | 134 ----------------
board/eco920/config.mk | 1 -
board/eco920/eco920.c | 211 ------------------------
board/eukrea_cpuimx27/eukrea_cpuimx27.c | 3 +-
board/imx21ads/imx21ads.c | 1 +
board/imx27ads/imx27ads.c | 3 +-
board/pcm038/pcm038.c | 3 +-
board/phycard-i.MX27/pca100.c | 3 +-
commands/mem.c | 30 +++--
drivers/net/usb/asix.c | 12 +-
drivers/net/usb/usbnet.c | 9 +-
drivers/serial/serial_imx.c | 137 ++++++++--------
drivers/video/fb.c | 5 +
drivers/video/imx.c | 9 +-
include/fb.h | 4 +-
include/usb/usbnet.h | 2 -
27 files changed, 718 insertions(+), 615 deletions(-)
create mode 100644 arch/arm/mach-imx/include/mach/iomux-mx21.h
create mode 100644 arch/arm/mach-imx/include/mach/iomux-mx27.h
create mode 100644 arch/arm/mach-imx/include/mach/iomux-mx2x.h
delete mode 100644 board/eco920/Makefile
delete mode 100644 board/eco920/config.h
delete mode 100644 board/eco920/config.mk
delete mode 100644 board/eco920/eco920.c
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2011-04-11 14:18 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-08 11:39 assorted patches Sascha Hauer
2011-03-08 11:39 ` [PATCH 1/5] ARM scb9328: Add gpio led support Sascha Hauer
2011-03-08 11:39 ` [PATCH 2/5] ramfs: increase chunk size to 4 kbyte Sascha Hauer
2011-03-08 11:39 ` [PATCH 3/5] mfd/mc13892: Add missing semicolons Sascha Hauer
2011-03-08 11:39 ` [PATCH 4/5] module: CONFIG_COMMAND does not exist anymore, remove ifdefs Sascha Hauer
2011-03-08 11:39 ` [PATCH 5/5] trigger command: fix printf format Sascha Hauer
-- strict thread matches above, loose matches on Subject: below --
2011-04-11 14:18 assorted patches Sascha Hauer
2011-02-24 15:55 Sascha Hauer
2010-06-24 9:39 Sascha Hauer
2010-06-24 15:05 ` Eric Bénard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox