08 Dec, 2011

1 commit


01 Nov, 2011

1 commit


09 Aug, 2011

4 commits


07 Jul, 2011

1 commit


19 May, 2011

3 commits

  • Some members of the struct ssb_sprom where not filled with data available
    in the NVRAM. Some attribute names in the NVRAM changed from SPROM version
    3 to version 4. This patch was done by analyzing the the pci sprom parser
    in the ssb code and some open source parts of the braodcom wireless driver
    used on embedded devices.

    Signed-off-by: Hauke Mehrtens
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/2365/
    Signed-off-by: Ralf Baechle

    Hauke Mehrtens
     
  • We are generating the prefix based on the PCI bus address the device is
    on. This is done like Broadcom does it in their code expect that the the
    bus number is increased by one. In the SB bus implementation used by
    Broadcom the SB bus emulates a PCI bus so the kernel sees one PCI bus
    more then in our implementation. We do not handle prefixes like sb/1/
    yet as they are only used on the new bus which is not implemented yet.

    Signed-off-by: Hauke Mehrtens
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/2364/
    Signed-off-by: Ralf Baechle

    Hauke Mehrtens
     
  • When an other SSB based device without an own SPROM is attached, using the
    PCI bus to the main SSB based device, the data normally found in the SPROM
    will be stored in the NVRAM on modern devices. The keys, to load the data
    from the NVRAM, are all using some sort of prefix like pci/1/1/, pci/1/3/
    or sb/1/ before the actual key. This patch extends bcm47xx_fill_sprom() to
    make it possible to read out these values when some prefix was used.

    The keys for the SPROM data used on the main chip does not have a prefix.

    Signed-off-by: Hauke Mehrtens
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/2363/
    Signed-off-by: Ralf Baechle

    Hauke Mehrtens
     

17 Dec, 2010

4 commits

  • Some devices like the Netgear WGT634U are using ttyS1 for default console
    output. We should switch to that console if it was given in the kernel_args
    parameters.

    Signed-off-by: Hauke Mehrtens
    To: linux-mips@linux-mips.org
    Cc: Hauke Mehrtens
    Patchwork: https://patchwork.linux-mips.org/patch/1848/
    Signed-off-by: Ralf Baechle

    Hauke Mehrtens
     
  • Instead of writing own function for parsing the mac address we now
    use sscanf.

    Signed-off-by: Hauke Mehrtens
    To: linux-mips@linux-mips.org
    Cc: Hauke Mehrtens
    Patchwork: https://patchwork.linux-mips.org/patch/1847/
    Signed-off-by: Ralf Baechle

    Hauke Mehrtens
     
  • Fill the sprom with all available values from the nvram. Most of these
    new values are needed for the b43 or b43legacy driver.

    Parts of this patch have been in OpenWRT for a long time and were written
    by Michael Buesch.

    Signed-off-by: Hauke Mehrtens
    To: linux-mips@linux-mips.org
    Cc: Hauke Mehrtens
    Patchwork: https://patchwork.linux-mips.org/patch/1846/
    Signed-off-by: Ralf Baechle

    Hauke Mehrtens
     
  • The config options read out here are not stored in CFE but only in NVRAM on
    the devices. Remove reading from CFE and only access the NVRAM. Reading out
    CFE does not harm but is useless here.

    Signed-off-by: Hauke Mehrtens
    To: linux-mips@linux-mips.org
    Cc: Hauke Mehrtens
    Patchwork: https://patchwork.linux-mips.org/patch/1845/
    Signed-off-by: Ralf Baechle

    Hauke Mehrtens
     

05 Aug, 2010

3 commits

  • Nvram_getenv should behave like cfe_getenv. cfe_getenv returns 0 on
    success and -9 if the value was not found. If the input was wrong -8
    will be returned by cfe_getenv. Change nvram_getenv to do the same.

    Signed-off-by: Hauke Mehrtens
    Cc: Waldemar Brodkorb
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1520/
    Signed-off-by: Ralf Baechle

    Hauke Mehrtens
     
  • Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • The previous patch 4a86f2d27733f610e642649aca3e82e86fca9e22 (lmo) rsp.
    84a6fcb368a080620d12fc4d79e07902dbee7335 (kernel.org) was wrong.

    The BCM47xx architecture maps the ram into a 128MB address space. It
    will be spaced there as often as goes into the 128MB. Detection tries to
    find the position where the same memory is found. When reading beyond
    128MB the processor will throw an exception. If 128MB RAM is installed,
    it will not find a memory alias because it tries to read beyond the 128MB
    border. Now it just assumes 128MB installed ram if it can not find an
    alias.

    Signed-off-by: Hauke Mehrtens
    To: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1508/
    Acked-by: Florian Fainelli
    Signed-off-by: Ralf Baechle

    Hauke Mehrtens
     

06 Jul, 2010

1 commit

  • When trying to netboot a Linksys WRT54GS WLAN router, the bootup fails,
    because of following error message:

    ...
    [ 0.424000] b44: b44.c:v2.0
    [ 0.424000] b44: Invalid MAC address found in EEPROM
    [ 0.432000] b44 ssb0:1: Problem fetching invariants of chip,aborting
    [ 0.436000] b44: probe of ssb0:1 failed with error -22
    ...

    The router uses a CFE bootloader, but most of the needed environment
    variables for network card initialization, are not available from CFE
    via printenv and even though not via cfe_getenv().
    The required environment variables are saved in a special partition
    in flash memory. The attached patch implement nvram_getenv and enables
    bootup via NFS root on my router.

    Most of the patch is extracted from the OpenWrt subversion repository and
    stripped down and cleaned up to just fix this issue.

    [Ralf: sorted out header file inclusions. Lots of unneded headers and such
    that should have been included.]

    Signed-off-by: Waldemar Brodkorb
    Reviewed-by: Phil Sutter
    To: linux-mips@linux-mips.org
    Cc: Hauke Mehrtens
    Patchwork: http://patchwork.linux-mips.org/patch/1359/
    Signed-off-by: Ralf Baechle

    Waldemar Brodkorb
     

27 Feb, 2010

1 commit


23 Feb, 2010

1 commit

  • Ignoring the last page when ddr size is 128M. Cached accesses to last page
    is causing the processor to prefetch using address above 128M stepping out
    of the DDR address space.

    Signed-off-by: Hauke Mehrtens
    Cc: linux-mips@linux-mips.org
    Patchwork: http://patchwork.linux-mips.org/patch/981/
    Signed-off-by: Ralf Baechle

    Hauke Mehrtens
     

17 Dec, 2009

1 commit


14 Nov, 2009

1 commit

  • Since commit 22242681cff52bfb7cba5d2a37b91802be7a4e4c ("MIPS: Extend
    COMMAND_LINE_SIZE"), CL_SIZE is 4096 and local array variables with this
    size will cause an build failure with default CONFIG_FRAME_WARN settings.

    Although current users of such array variables are all early bootstrap
    code and not likely to cause real stack overflow (thread_info corruption),
    it is preferable to to declare these arrays static with __initdata.

    Signed-off-by: Atsushi Nemoto
    Signed-off-by: Ralf Baechle

    Atsushi Nemoto
     

15 Oct, 2008

3 commits


20 Feb, 2008

2 commits


20 Oct, 2007

1 commit


12 Oct, 2007

5 commits