Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 94183
b: refs/heads/master
c: c805df3
h: refs/heads/master
i:
  94181: 800dc6b
  94179: c26f798
  94175: 0dd4ee0
v: v3
  • Loading branch information
Andres Salomon authored and Linus Torvalds committed Apr 28, 2008
1 parent 1567bd2 commit 74d3994
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f694e53bd0db69557ee8e0db2d1602818ff173b0
refs/heads/master: c805df3d6205573fa7a8ef2334b1c8d67381dc8b
50 changes: 50 additions & 0 deletions trunk/Documentation/fb/lxfb.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
[This file is cloned from VesaFB/aty128fb]

What is lxfb?
=================

This is a graphics framebuffer driver for AMD Geode LX based processors.

Advantages:

* No need to use AMD's VSA code (or other VESA emulation layer) in the
BIOS.
* It provides a nice large console (128 cols + 48 lines with 1024x768)
without using tiny, unreadable fonts.
* You can run XF68_FBDev on top of /dev/fb0
* Most important: boot logo :-)

Disadvantages:

* graphic mode is slower than text mode...


How to use it?
==============

Switching modes is done using lxfb.mode_option=<resolution>... boot
parameter or using `fbset' program.

See Documentation/fb/modedb.txt for more information on modedb
resolutions.


X11
===

XF68_FBDev should generally work fine, but it is non-accelerated.


Configuration
=============

You can pass kernel command line options to lxfb with lxfb.<option>.
For example, lxfb.mode_option=800x600@75.
Accepted options:

mode_option - specify the video mode. Of the form
<x>x<y>[-<bpp>][@<refresh>]
vram - size of video ram (normally auto-detected)

--
Andres Salomon <dilinger@debian.org>
12 changes: 5 additions & 7 deletions trunk/drivers/video/geode/lxfb_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

static char *mode_option;
static int noclear, nopanel, nocrt;
static int fbsize;
static int vram;

/* Most of these modes are sorted in ascending order, but
* since the first entry in this table is the "default" mode,
Expand Down Expand Up @@ -339,7 +339,7 @@ static int __init lxfb_map_video_memory(struct fb_info *info,
return ret;

info->fix.smem_start = pci_resource_start(dev, 0);
info->fix.smem_len = fbsize ? fbsize : lx_framebuffer_size();
info->fix.smem_len = vram ? vram : lx_framebuffer_size();

info->screen_base = ioremap(info->fix.smem_start, info->fix.smem_len);

Expand Down Expand Up @@ -608,9 +608,7 @@ static int __init lxfb_setup(char *options)
if (!*opt)
continue;

if (!strncmp(opt, "fbsize:", 7))
fbsize = simple_strtoul(opt+7, NULL, 0);
else if (!strcmp(opt, "noclear"))
if (!strcmp(opt, "noclear"))
noclear = 1;
else if (!strcmp(opt, "nopanel"))
nopanel = 1;
Expand Down Expand Up @@ -647,8 +645,8 @@ module_exit(lxfb_cleanup);
module_param(mode_option, charp, 0);
MODULE_PARM_DESC(mode_option, "video mode (<x>x<y>[-<bpp>][@<refr>])");

module_param(fbsize, int, 0);
MODULE_PARM_DESC(fbsize, "video memory size");
module_param(vram, int, 0);
MODULE_PARM_DESC(vram, "video memory size");

MODULE_DESCRIPTION("Framebuffer driver for the AMD Geode LX");
MODULE_LICENSE("GPL");

0 comments on commit 74d3994

Please sign in to comment.