07 May, 2018

1 commit

  • When U-Boot started using SPDX tags we were among the early adopters and
    there weren't a lot of other examples to borrow from. So we picked the
    area of the file that usually had a full license text and replaced it
    with an appropriate SPDX-License-Identifier: entry. Since then, the
    Linux Kernel has adopted SPDX tags and they place it as the very first
    line in a file (except where shebangs are used, then it's second line)
    and with slightly different comment styles than us.

    In part due to community overlap, in part due to better tag visibility
    and in part for other minor reasons, switch over to that style.

    This commit changes all instances where we have a single declared
    license in the tag as both the before and after are identical in tag
    contents. There's also a few places where I found we did not have a tag
    and have introduced one.

    Signed-off-by: Tom Rini

    Tom Rini
     

24 Jul, 2013

1 commit


05 Nov, 2012

1 commit

  • fsl_corenet_serdes.c:485:6: warning: symbol '__soc_serdes_init' was not declared. Should it be static?
    cpu_init.c:185:6: warning: symbol 'invalidate_cpc' was not declared. Should it be static?
    bcsr.c:28:27: warning: non-ANSI function declaration of function 'enable_8568mds_duart'
    bcsr.c:39:33: warning: non-ANSI function declaration of function 'enable_8568mds_flash_write'
    bcsr.c:46:34: warning: non-ANSI function declaration of function 'disable_8568mds_flash_write'
    bcsr.c:53:29: warning: non-ANSI function declaration of function 'enable_8568mds_qe_mdio'
    bcsr.c:28:33: warning: non-ANSI function declaration of function 'enable_8569mds_flash_write'
    bcsr.c:33:34: warning: non-ANSI function declaration of function 'disable_8569mds_flash_write'
    bcsr.c:38:28: warning: non-ANSI function declaration of function 'enable_8569mds_qe_uec'
    bcsr.c:63:47: warning: non-ANSI function declaration of function 'disable_8569mds_brd_eeprom_write_protect'
    ngpixis.c:245:1: error: directive in argument list
    ngpixis.c:247:1: error: directive in argument list

    Signed-off-by: Kim Phillips

    Kim Phillips
     

11 Nov, 2011

1 commit

  • For ICS307-02, there is one general expression to generate SYSCLK:
    CLK1Frequency = InputFrequency * 2 * (VDW + 8) / ((RDW + 2) * OD)

    If we want the required frequency for SYSCLK, we must find one solution
    to generate this frequency, this solution includes VDW, RDW and OD.
    For OD, there are only eight option value: 10, 2, 8, 4, 5, 7, 3, 6.
    For RDW, the range is 1 to 127.
    For VDW, the range is 4 to 511.

    First, we use one OD, RDW and required SYSCLK to calculate the VDW,
    if VDW is in it's range, we will calculate the CLK1Frequency with
    the OD, RDW and VDW calculated, and we will check this percent
    (CLK1Frequency / required SYSCLK), and the precision is 1/1000.
    if the percent is less than 1/1000, we think the CLK1Frequency is we want.
    Otherwise, We will continue to calculate it with the next OD and RDW.

    Signed-off-by: Jerry Huang
    Signed-off-by: Kumar Gala

    Jerry Huang
     

29 Apr, 2011

1 commit


04 Apr, 2011

1 commit

  • The ngPIXIS is an FPGA used on the reference boards of most Freescale PowerPC
    SOCs. Although programming the ngPIXIS is mostly standard on all boards that
    have it, the P1022DS is unique in that the ngPIXIS needs to be programmed in
    "indirect" mode whenever the video display (DIU) is active.

    To support indirect mode, and to make it easier to support other quirks on
    future reference boards, the low-level ngPIXIS functions are all marked as
    weak, so that board-specific code can override any of them. We take advantage
    of this feature on the P1022DS, so that we can properly reset the board when
    the DIU is active.

    Signed-off-by: Timur Tabi
    Signed-off-by: Kumar Gala

    Timur Tabi
     

05 Jul, 2010

1 commit

  • The hush shell dynamically allocates (and re-allocates) memory for the
    argument strings in the "char *argv[]" argument vector passed to
    commands. Any code that modifies these pointers will cause serious
    corruption of the malloc data structures and crash U-Boot, so make
    sure the compiler can check that no such modifications are being done
    by changing the code into "char * const argv[]".

    This modification is the result of debugging a strange crash caused
    after adding a new command, which used the following argument
    processing code which has been working perfectly fine in all Unix
    systems since version 6 - but not so in U-Boot:

    int main (int argc, char **argv)
    {
    while (--argc > 0 && **++argv == '-') {
    /* ====> */ while (*++*argv) {
    switch (**argv) {
    case 'd':
    debug++;
    break;
    ...
    default:
    usage ();
    }
    }
    }
    ...
    }

    The line marked "====>" will corrupt the malloc data structures and
    usually cause U-Boot to crash when the next command gets executed by
    the shell. With the modification, the compiler will prevent this with
    an
    error: increment of read-only location '*argv'

    N.B.: The code above can be trivially rewritten like this:

    while (--argc > 0 && **++argv == '-') {
    char *arg = *argv;
    while (*++arg) {
    switch (*arg) {
    ...

    Signed-off-by: Wolfgang Denk
    Acked-by: Mike Frysinger

    Wolfgang Denk
     

07 Apr, 2010

1 commit

  • The Freescale P2020DS board uses a new type of PIXIS FPGA, called the ngPIXIS.
    The ngPIXIS has one distinct new feature: the values of the on-board switches
    can be selectively overridden with shadow registers. This feature is used to
    boot from a different NOR flash bank, instead of having a register dedicated
    for this purpose. Because the ngPIXIS is so different from the previous PIXIS,
    a new file is introduced: ngpixis.c.

    Also update the P2020DS checkboard() function to use the new macros defined
    in the header file.

    Signed-off-by: Timur Tabi
    Signed-off-by: Kumar Gala

    Timur Tabi