07 Feb, 2015

1 commit


21 Oct, 2014

3 commits


14 Aug, 2014

1 commit


07 Apr, 2014

2 commits


22 Feb, 2014

2 commits


15 Jan, 2014

2 commits

  • The recommended compatible string format, according to the ePAPR v1.1 standard,
    is "manufacturer,model". Change the xtensa cpu compatible strings to
    "cdns,xtensa-cpu". Also, change the boards compatible strings in a similar way.

    The pic compatible string will be dealt with in a separate patch.

    Signed-off-by: Baruch Siach
    Signed-off-by: Max Filippov

    Baruch Siach
     
  • Extract xtensa built-in interrupt controller implementation from
    xtensa/kernel/irq.c and move it to other irqchips, providing way to
    instantiate it from the device tree.

    Signed-off-by: Max Filippov
    Signed-off-by: Chris Zankel

    Max Filippov
     

07 Sep, 2013

1 commit

  • -e is not needed to output strings without escape sequences. This breaks
    big endian FSF build when the shell is dash, because its builtin echo
    doesn't understand '-e' switch and outputs it in the echoed string.

    Reported-by: Guenter Roeck
    Signed-off-by: Max Filippov
    Signed-off-by: Chris Zankel

    Max Filippov
     

08 Jul, 2013

3 commits


06 Jun, 2013

1 commit


09 May, 2013

2 commits

  • With the patch to support MMUv3, the base address for the loaded
    binary image has changed, and a fix was applied to the U-Boot image.
    This fixes the RedBoot image.

    Signed-off-by: Chris Zankel

    Chris Zankel
     
  • MMUv3 comes out of reset with identity vaddr -> paddr mapping in the TLB
    way 6:

    Way 6 (512 MB)
    Vaddr Paddr ASID Attr RWX Cache
    ---------- ---------- ---- ---- --- -------
    0x00000000 0x00000000 0x01 0x03 RWX Bypass
    0x20000000 0x20000000 0x01 0x03 RWX Bypass
    0x40000000 0x40000000 0x01 0x03 RWX Bypass
    0x60000000 0x60000000 0x01 0x03 RWX Bypass
    0x80000000 0x80000000 0x01 0x03 RWX Bypass
    0xa0000000 0xa0000000 0x01 0x03 RWX Bypass
    0xc0000000 0xc0000000 0x01 0x03 RWX Bypass
    0xe0000000 0xe0000000 0x01 0x03 RWX Bypass

    This patch adds remapping code at the reset vector or at the kernel
    _start (depending on CONFIG_INITIALIZE_XTENSA_MMU_INSIDE_VMLINUX) that
    reconfigures MMUv3 as MMUv2:

    Way 5 (128 MB)
    Vaddr Paddr ASID Attr RWX Cache
    ---------- ---------- ---- ---- --- -------
    0xd0000000 0x00000000 0x01 0x07 RWX WB
    0xd8000000 0x00000000 0x01 0x03 RWX Bypass
    Way 6 (256 MB)
    Vaddr Paddr ASID Attr RWX Cache
    ---------- ---------- ---- ---- --- -------
    0xe0000000 0xf0000000 0x01 0x07 RWX WB
    0xf0000000 0xf0000000 0x01 0x03 RWX Bypass

    Signed-off-by: Max Filippov
    Signed-off-by: Chris Zankel

    Max Filippov
     

24 Feb, 2013

1 commit

  • The current rules have the .dtb files build in a different directory
    from the .dts files. This patch changes xtensa to use the generic dtb
    rule which builds .dtb files in the same directory as the source .dts.

    This requires moving parts of arch/xtensa/boot/Makefile into newly
    created arch/xtensa/boot/dts/Makefile, and updating arch/xtensa/Makefile
    to call the new Makefile.

    Signed-off-by: Stephen Warren
    Signed-off-by: Chris Zankel

    Stephen Warren
     

19 Dec, 2012

6 commits

  • Signed-off-by: Max Filippov
    Signed-off-by: Chris Zankel

    Max Filippov
     
  • Add common XTFPGA parts as *.dtsi (base board, flash) and DTS for LX60
    and for ML605.

    Signed-off-by: Max Filippov
    Signed-off-by: Chris Zankel

    Max Filippov
     
  • The Avnet LX60/LX110/LX200 board is an FPGA board that can be configured with
    an Xtensa processor and an OpenCores Ethernet device.

    Signed-off-by: Chris Zankel
    Signed-off-by: Max Filippov
    Signed-off-by: Chris Zankel

    Max Filippov
     
  • Device trees allow specification of hardware topology and device
    parameters at runtime instead of hard-coding them in platform setup
    code. This allows running single binary kernel on a range of compatible
    boards.

    New boot parameters tag BP_TAG_FDT is allocated and a pointer to flat
    device tree is passed in it.

    Note that current interrupt mapping scheme uses single cell for
    interrupt identification. That means that IRQ numbers used in DTS must
    be CPU internal IRQ numbers, not external. It is possible to extend
    interrupt identification to two cells, and use second cell to tell
    external IRQ numbers form internal. That would allow to use single DTS
    on multiple boards with different mapping of external IRQ numbers.

    Signed-off-by: Max Filippov
    Signed-off-by: Chris Zankel

    Max Filippov
     
  • Signed-off-by: Max Filippov
    Signed-off-by: Chris Zankel

    Max Filippov
     
  • - remove duplicate rules for binary and packed image
    - use predefined macros for ld/objcopy/gzip
    - remove build-id section from bootable elf image

    Signed-off-by: Max Filippov
    Signed-off-by: Chris Zankel

    Max Filippov
     

16 Oct, 2012

1 commit

  • - reference SRs by names where possible, not by numbers;
    - get rid of __stringify around SR names where possible;
    - remove unneeded SR names from asm/regs.h;
    - add SREG_ prefix to remaining SR names;

    Signed-off-by: Max Filippov
    Signed-off-by: Chris Zankel

    Max Filippov
     

04 Oct, 2012

2 commits

  • Remove Kconfig entries, boot subdirectory, dependencies from other
    boot-* Makefiles, and sections from ld scripts.

    Remove stale redboot code that used to pass initrd addresses in a3 and
    a4 to _start.

    Signed-off-by: Max Filippov
    Signed-off-by: Chris Zankel

    Max Filippov
     
  • Make vmlinux.tmp and vmlinux.tmp.gz separate build targets, avoid
    removing vmlinux.tmp during vmlinux.tmp.gz build.

    Signed-off-by: Max Filippov
    Signed-off-by: Chris Zankel

    Max Filippov
     

17 Mar, 2011

1 commit


07 Nov, 2008

1 commit

  • Move all header files for xtensa to arch/xtensa/include and platform and
    variant header files to the appropriate arch/xtensa/platforms/ and
    arch/xtensa/variants/ directories.

    Moving the files gets also rid of all uses of symlinks in the Makefile.

    This has been completed already for the majority of the architectures
    and xtensa is one out of six missing.

    Signed-off-by: Sam Ravnborg
    Signed-off-by: Chris Zankel

    Chris Zankel
     

14 Feb, 2008

3 commits


21 Oct, 2007

1 commit

  • Commit 9a39e273d4df0560c724c5fe71f6314a0583ca2b removed the boot directory
    addition to CFLAGS that was being used by the subdirectory builds. For the
    other files, that patch set EXTRA_CFLAGS, but Makefile.build explicitly
    sets that to empty as it is explicitly for a single directory only.
    Append to KBUILD_CFLAGS instead.

    Signed-off-by: Milton Miller
    Signed-off-by: Sam Ravnborg

    Milton Miller
     

15 Oct, 2007

2 commits

  • The variable CFLAGS is a wellknown variable and the usage by
    kbuild may result in unexpected behaviour.
    On top of that several people over time has asked for a way to
    pass in additional flags to gcc.

    This patch replace use of CFLAGS with KBUILD_CFLAGS all over the
    tree and enabling one to use:
    make CFLAGS=...
    to specify additional gcc commandline options.

    One usecase is when trying to find gcc bugs but other
    use cases has been requested too.

    Patch was tested on following architectures:
    alpha, arm, i386, x86_64, mips, sparc, sparc64, ia64, m68k

    Test was simple to do a defconfig build, apply the patch and check
    that nothing got rebuild.

    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     
  • Only in very rare cases is it needed to change CFLAGS
    outside of arch/*/Makefile.
    Fix up all wrong cases - in most cases
    the use of EXTRA_CFLAGS is the only thing needed.

    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     

11 Dec, 2006

1 commit

  • The Xtensa port contained many header files that were never needed. This
    rather lengthy patch removes all those files. Unfortunately, there were
    many dependencies that needed to be updated, so this patch touches quite a
    few source files.

    Signed-off-by: Chris Zankel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Chris Zankel
     

01 Jul, 2006

1 commit


23 Jun, 2006

1 commit

  • Upgrade the zlib_inflate implementation in the kernel from a patched
    version 1.1.3/4 to a patched 1.2.3.

    The code in the kernel is about seven years old and I noticed that the
    external zlib library's inflate performance was significantly faster (~50%)
    than the code in the kernel on ARM (and faster again on x86_32).

    For comparison the newer deflate code is 20% slower on ARM and 50% slower
    on x86_32 but gives an approx 1% compression ratio improvement. I don't
    consider this to be an improvement for kernel use so have no plans to
    change the zlib_deflate code.

    Various changes have been made to the zlib code in the kernel, the most
    significant being the extra functions/flush option used by ppp_deflate.
    This update reimplements the features PPP needs to ensure it continues to
    work.

    This code has been tested on ARM under both JFFS2 (with zlib compression
    enabled) and ppp_deflate and on x86_32. JFFS2 sees an approx. 10% real
    world file read speed improvement.

    This patch also removes ZLIB_VERSION as it no longer has a correct value.
    We don't need version checks anyway as the kernel's module handling will
    take care of that for us. This removal is also more in keeping with the
    zlib author's wishes (http://www.zlib.net/zlib_faq.html#faq24) and I've
    added something to the zlib.h header to note its a modified version.

    Signed-off-by: Richard Purdie
    Acked-by: Joern Engel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Richard Purdie
     

30 Jun, 2005

1 commit