mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* 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; 6+ 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] 6+ 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; 6+ 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] 6+ 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; 6+ 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] 6+ 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; 6+ 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] 6+ 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; 6+ 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] 6+ 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; 6+ 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] 6+ messages in thread

end of thread, other threads:[~2011-03-08 11:39 UTC | newest]

Thread overview: 6+ 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox