Hi Sascha,
On Wed, Nov 06, 2013 at 06:40:49PM +0100, Andre Heider wrote:
And yes, it works if I set fb0.enable=1 and fb0.register_simplefb=1,
both are 0 per default.
Now I wonder who/where those are supposed to get set? Is that a job for
the runtime environment?
if possible I'd like
Hi Sascha,
On Wed, Nov 06, 2013 at 10:46:28AM +0100, Sascha Hauer wrote:
Hi Andre,
On Tue, Nov 05, 2013 at 12:00:58AM +0100, Andre Heider wrote:
This is v2 of my patch set posted on 10/24.
It adds framebuffer support for the RPi and provides an additional config
knob to set up
Signed-off-by: Andre Heider a.hei...@gmail.com
---
lib/gui/graphic_utils.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/lib/gui/graphic_utils.c b/lib/gui/graphic_utils.c
index 95687df..300c525 100644
--- a/lib/gui/graphic_utils.c
+++ b/lib/gui/graphic_utils.c
Use the mailbox driver to set up a framebuffer based on the firmware
configuration.
Signed-off-by: Andre Heider a.hei...@gmail.com
---
arch/arm/boards/raspberry-pi/rpi.c| 1 +
arch/arm/mach-bcm2835/include/mach/core.h | 5 ++
drivers/video/Kconfig | 6
Add the missing right field to struct bcm2835_mbox_tag_overscan.
Signed-off-by: Andre Heider a.hei...@gmail.com
---
arch/arm/mach-bcm2835/include/mach/mbox.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-bcm2835/include/mach/mbox.h
b/arch/arm/mach-bcm2835/include/mach/mbox.h
Add support for framebuffers with noncontiguous horizontal lines.
Video drivers can set this value if the hardware requires it.
In case a driver does not set it, the current value of
xres * (bpp / 8) is used instead.
Signed-off-by: Andre Heider a.hei...@gmail.com
---
drivers/video/fb.c | 11
Signed-off-by: Andre Heider a.hei...@gmail.com
---
lib/gui/bmp.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/gui/bmp.c b/lib/gui/bmp.c
index 6bf8cd0..dcf3095 100644
--- a/lib/gui/bmp.c
+++ b/lib/gui/bmp.c
@@ -78,8 +78,8 @@ static int bmp_renderer(struct screen
for the kernel is based on the active barebox
framebuffer
Andre Heider (6):
fb: add a line_length value to struct fb_info
gui: convert graphic utils to respect line_length
gui: convert the bmp renderer to respect line_length
ARM: bcm2835: add missing mbox overscan response field
video
On Fri, Oct 25, 2013 at 12:58:27PM +0200, Jean-Christophe PLAGNIOL-VILLARD
wrote:
On 22:23 Thu 24 Oct , Andre Heider wrote:
Add support for framebuffers with noncontiguous horizontal lines.
Video drivers can set this value if the hardware requires it.
In case a driver does not set
.
Patch 5 just adds a missing field on a fb related mbox response.
Thanks,
Andre
Andre Heider (6):
fb: add a stride value to struct fb_info
gui: convert graphic utils to respect the stride value
gui: convert the bmp renderer to respect the stride value
video: add a simple framebuffer driver
Signed-off-by: Andre Heider a.hei...@gmail.com
---
lib/gui/graphic_utils.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/lib/gui/graphic_utils.c b/lib/gui/graphic_utils.c
index 95687df..9d80fe4 100644
--- a/lib/gui/graphic_utils.c
+++ b/lib/gui/graphic_utils.c
Add the missing right field to struct bcm2835_mbox_tag_overscan.
Signed-off-by: Andre Heider a.hei...@gmail.com
---
arch/arm/mach-bcm2835/include/mach/mbox.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-bcm2835/include/mach/mbox.h
b/arch/arm/mach-bcm2835/include/mach/mbox.h
function call.
Doing so provides a framebuffer driver for barebox and a configuration
of the corresponding kernel driver through device tree.
Signed-off-by: Andre Heider a.hei...@gmail.com
---
drivers/video/Kconfig| 12 +++
drivers/video/Makefile | 1 +
drivers/video/simplefb.c | 224
Setup a framebuffer using the mailbox driver and register it as
simplefb.
Signed-off-by: Andre Heider a.hei...@gmail.com
---
arch/arm/boards/raspberry-pi/rpi.c | 84 ++
1 file changed, 84 insertions(+)
diff --git a/arch/arm/boards/raspberry-pi/rpi.c
b/arch
Signed-off-by: Andre Heider a.hei...@gmail.com
---
lib/gui/bmp.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/gui/bmp.c b/lib/gui/bmp.c
index 6bf8cd0..bb4de12 100644
--- a/lib/gui/bmp.c
+++ b/lib/gui/bmp.c
@@ -78,8 +78,8 @@ static int bmp_renderer(struct screen
Add support for framebuffers with noncontiguous horizontal lines.
Video drivers can set this value if the hardware requires it.
In case a driver does not set it, the current value of
xres * (bpp / 8) is used instead.
Signed-off-by: Andre Heider a.hei...@gmail.com
---
drivers/video/fb.c | 11
On Tue, Oct 22, 2013 at 03:34:05PM +0200, Sascha Hauer wrote:
On Sat, Oct 19, 2013 at 02:18:41PM +0200, Andre Heider wrote:
This adds a bcm2835 mailbox driver for the RPi to talk to the on-SoC
VideoCore. See [1] for a description.
This patchset uses it to get two properties, the eMMC
On Mon, Oct 21, 2013 at 10:46:21AM +0200, Sascha Hauer wrote:
Hi Andre,
On Sat, Oct 19, 2013 at 02:18:41PM +0200, Andre Heider wrote:
This adds a bcm2835 mailbox driver for the RPi to talk to the on-SoC
VideoCore. See [1] for a description.
This patchset uses it to get two properties
When using CONFIG_MMU_EARLY combined with CONFIG_PBL_IMAGE, the barebox
setup reuses the MMU setup from the PBL, but doesn't setup the cache
functions.
Set these up to guarantee proper early cache handing before mmu_initcall().
Signed-off-by: Andre Heider a.hei...@gmail.com
---
arch/arm/cpu
mailbox driver is such a case; it requires cache handling once
the MMU is fully set up and yet the RPi setup needs to use the driver to
get the memory size before mem_initcall() and hence mmu_initcall().
Fix this by checking the cache_fns pointer before dereferencing it.
Signed-off-by: Andre Heider
The macro can be used for temporary stack buffers which need to meet
a minimum alignment requirement.
This will be used by bcm2835 mailbox users, where all buffers need to
be aligned.
Signed-off-by: Andre Heider a.hei...@gmail.com
---
include/common.h | 11 +++
1 file changed, 11
RPi's mailbox driver is used early and it needs clock functions to
handle timeouts.
Register the driver straight after its clkdev.
Signed-off-by: Andre Heider a.hei...@gmail.com
---
arch/arm/mach-bcm2835/core.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach
Use the mailbox driver to query the size. This properly takes the
firmware's VideoCore/ARM memory split into account.
Linux can now be booted with more than 128 MiB.
Signed-off-by: Andre Heider a.hei...@gmail.com
---
arch/arm/boards/raspberry-pi/rpi.c | 35 +--
1
Sync exposed names while at it.
Signed-off-by: Andre Heider a.hei...@gmail.com
---
arch/arm/mach-bcm2835/core.c | 31 +++
1 file changed, 7 insertions(+), 24 deletions(-)
diff --git a/arch/arm/mach-bcm2835/core.c b/arch/arm/mach-bcm2835/core.c
index 906e434..6835960
RPi's mailbox driver is used early and it needs clock functions to
handle timeouts.
Promote to a core_initcall().
Signed-off-by: Andre Heider a.hei...@gmail.com
---
drivers/clocksource/bcm2835.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clocksource/bcm2835.c b
Use the mailbox driver to query the clock frequency and create
a clkdev for the bcm2835_mci driver.
Signed-off-by: Andre Heider a.hei...@gmail.com
---
arch/arm/boards/raspberry-pi/rpi.c | 40 ++
1 file changed, 40 insertions(+)
diff --git a/arch/arm/boards
Switch from local mailbox code to using the newly created clock device.
Signed-off-by: Andre Heider a.hei...@gmail.com
---
drivers/mci/mci-bcm2835.c | 93 ++-
drivers/mci/mci-bcm2835.h | 48
2 files changed, 19 insertions
On Wed, Oct 16, 2013 at 09:32:09AM +0200, Lucas Stach wrote:
Am Dienstag, den 15.10.2013, 19:38 +0200 schrieb Andre Heider:
Add explicit flushing to prevent the 50MHz fallback.
Uh, this is pretty ugly. We certainly don't want all those explicit
invalidates/flushes in the driver code. Isn't
Hi,
On Tue, Oct 15, 2013 at 12:50:14PM +0200, Sascha Hauer wrote:
Similar to the OMAP boards mount the SD card to /boot and expect
the environment as /boot/barebox.env
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de
---
arch/arm/boards/raspberry-pi/rpi.c | 33
On Tue, Oct 15, 2013 at 02:53:12PM +0200, Sascha Hauer wrote:
On Tue, Oct 15, 2013 at 01:54:50PM +0200, Andre Heider wrote:
Hi,
+static int rpi_env_init(void)
+{
+ struct stat s;
+ const char *diskdev = /dev/disk0.0;
+ int ret;
+
+ device_detect_by_name(mci0
Add explicit flushing to prevent the 50MHz fallback.
Signed-off-by: Andre Heider a.hei...@gmail.com
---
drivers/mci/mci-bcm2835.c | 7 ++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/mci/mci-bcm2835.c b/drivers/mci/mci-bcm2835.c
index a0c364d..2ffdeec 100644
On Tue, Oct 15, 2013 at 11:00:40AM +0200, Sascha Hauer wrote:
Enable MMU, stack dumps and a lot of other features
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de
---
arch/arm/configs/rpi_defconfig | 45
--
1 file changed, 35 insertions(+), 10
Hi,
On Tue, Oct 15, 2013 at 08:31:11PM +0200, Alexander Aring wrote:
Hi Sascha,
On Tue, Oct 15, 2013 at 02:23:32PM +0200, Sascha Hauer wrote:
The only thing I realize here is that my 3.6.4 kernel fails to access
the SD card when barebox has accessed it before:
[3.623861] mmc0: SD
33 matches
Mail list logo