Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Apache license headers to new files #321

Open
wants to merge 1 commit into
base: freedom-metal-next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions metal/drivers/fixed_clock.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
/* Copyright 2020 SiFive, Inc. */
/* Copyright © 2020 Keith Packard */
/*
* Licensed under the Apache License, Version 2.0 (the “License”); you
* may not use this file except in compliance with the License. A copy
* of this license can be found in the LICENSE.Apache2 file included
* with this software. You may also obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an “AS IS” BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef __METAL__FIXED_CLOCK_H
Expand Down
16 changes: 16 additions & 0 deletions metal/drivers/fixed_factor_clock.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
/* Copyright 2020 SiFive, Inc. */
/* Copyright © 2020 Keith Packard */
/*
* Licensed under the Apache License, Version 2.0 (the “License”); you
* may not use this file except in compliance with the License. A copy
* of this license can be found in the LICENSE.Apache2 file included
* with this software. You may also obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an “AS IS” BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef __METAL__FIXED_FACTOR_CLOCK_H
Expand Down
16 changes: 16 additions & 0 deletions metal/drivers/riscv_cpu_intc.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
/* Copyright 2020 SiFive, Inc */
/* Copyright © 2020 Keith Packard */
/*
* Licensed under the Apache License, Version 2.0 (the “License”); you
* may not use this file except in compliance with the License. A copy
* of this license can be found in the LICENSE.Apache2 file included
* with this software. You may also obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an “AS IS” BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef METAL__DRIVERS__RISCV_CPU_INTC_H
Expand Down
16 changes: 16 additions & 0 deletions metal/exception.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
/* Copyright 2020 SiFive, Inc */
/* Copyright © 2020 Keith Packard */
/*
* Licensed under the Apache License, Version 2.0 (the “License”); you
* may not use this file except in compliance with the License. A copy
* of this license can be found in the LICENSE.Apache2 file included
* with this software. You may also obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an “AS IS” BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/* SPDX-License-Identifier: Apache-2.0 */

#include <metal/riscv.h>
Expand Down
16 changes: 16 additions & 0 deletions metal/riscv.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
/* Copyright (c) 2020 SiFive Inc. */
/* Copyright © 2020 Keith Packard */
/*
* Licensed under the Apache License, Version 2.0 (the “License”); you
* may not use this file except in compliance with the License. A copy
* of this license can be found in the LICENSE.Apache2 file included
* with this software. You may also obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an “AS IS” BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef __METAL_RISCV__H
Expand Down
17 changes: 17 additions & 0 deletions metal_nano.make
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Copyright 2020 SiFive, Inc
# Copyright © 2020 Keith Packard
#
# Licensed under the Apache License, Version 2.0 (the “License”); you
# may not use this file except in compliance with the License. A copy
# of this license can be found in the LICENSE.Apache2 file included
# with this software. You may also obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an “AS IS” BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied. See the License for the specific language governing
# permissions and limitations under the License.
#
METAL_HELPER_SRC = \
$(FREEDOM_METAL)/gloss/nanosleep.c \
$(FREEDOM_METAL)/gloss/sys_access.c \
Expand Down
17 changes: 17 additions & 0 deletions metal_pico.make
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Copyright 2020 SiFive, Inc
# Copyright © 2020 Keith Packard
#
# Licensed under the Apache License, Version 2.0 (the “License”); you
# may not use this file except in compliance with the License. A copy
# of this license can be found in the LICENSE.Apache2 file included
# with this software. You may also obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an “AS IS” BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied. See the License for the specific language governing
# permissions and limitations under the License.
#
METAL_HELPER_SRC = \
$(FREEDOM_METAL)/pico/iob.c \
$(FREEDOM_METAL)/gloss/sys_sbrk.c \
Expand Down
16 changes: 16 additions & 0 deletions scripts/codegen.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
#!/usr/bin/env python3
# Copyright (c) 2020 SiFive Inc.
# Copyright © 2020 Keith Packard
#
# Licensed under the Apache License, Version 2.0 (the “License”); you
# may not use this file except in compliance with the License. A copy
# of this license can be found in the LICENSE.Apache2 file included
# with this software. You may also obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an “AS IS” BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied. See the License for the specific language governing
# permissions and limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

import argparse
Expand Down
16 changes: 16 additions & 0 deletions sifive-blocks/metal/drivers/sifive_ccache0.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
/* Copyright 2019 SiFive, Inc */
/* Copyright © 2020 Keith Packard */
/*
* Licensed under the Apache License, Version 2.0 (the “License”); you
* may not use this file except in compliance with the License. A copy
* of this license can be found in the LICENSE.Apache2 file included
* with this software. You may also obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an “AS IS” BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef METAL__DRIVERS__SIFIVE_CCACHE0_H
Expand Down
16 changes: 16 additions & 0 deletions sifive-blocks/metal/drivers/sifive_clic0.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
/* Copyright 2020 SiFive, Inc */
/* Copyright © 2020 Keith Packard */
/*
* Licensed under the Apache License, Version 2.0 (the “License”); you
* may not use this file except in compliance with the License. A copy
* of this license can be found in the LICENSE.Apache2 file included
* with this software. You may also obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an “AS IS” BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef METAL__DRIVERS__SIFIVE_CLIC0_H
Expand Down
16 changes: 16 additions & 0 deletions sifive-blocks/metal/drivers/sifive_fe310_g000_hfrosc.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
/* Copyright 2018 SiFive, Inc */
/* Copyright © 2020 Keith Packard */
/*
* Licensed under the Apache License, Version 2.0 (the “License”); you
* may not use this file except in compliance with the License. A copy
* of this license can be found in the LICENSE.Apache2 file included
* with this software. You may also obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an “AS IS” BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef METAL__DRIVERS__SIFIVE_FE310_G000_HFROSC_H
Expand Down
16 changes: 16 additions & 0 deletions sifive-blocks/metal/drivers/sifive_fe310_g000_hfxosc.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
/* Copyright 2018 SiFive, Inc */
/* Copyright © 2020 Keith Packard */
/*
* Licensed under the Apache License, Version 2.0 (the “License”); you
* may not use this file except in compliance with the License. A copy
* of this license can be found in the LICENSE.Apache2 file included
* with this software. You may also obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an “AS IS” BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef METAL__DRIVERS__SIFIVE_FE310_G000_HFXOSC_H
Expand Down
16 changes: 16 additions & 0 deletions sifive-blocks/metal/drivers/sifive_fe310_g000_lfrosc.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
/* Copyright 2019 SiFive, Inc */
/* Copyright © 2020 Keith Packard */
/*
* Licensed under the Apache License, Version 2.0 (the “License”); you
* may not use this file except in compliance with the License. A copy
* of this license can be found in the LICENSE.Apache2 file included
* with this software. You may also obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an “AS IS” BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef METAL__DRIVERS__SIFIVE_FE310_G000_LFROSC_H
Expand Down
16 changes: 16 additions & 0 deletions sifive-blocks/metal/drivers/sifive_fe310_g000_pll.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
/* Copyright 2020 SiFive, Inc */
/* Copyright © 2020 Keith Packard */
/*
* Licensed under the Apache License, Version 2.0 (the “License”); you
* may not use this file except in compliance with the License. A copy
* of this license can be found in the LICENSE.Apache2 file included
* with this software. You may also obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an “AS IS” BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef METAL__DRIVERS__SIFIVE_FE310_G000_PLL_H
Expand Down
16 changes: 16 additions & 0 deletions sifive-blocks/metal/drivers/sifive_i2c0.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
/* Copyright 2019 SiFive, Inc */
/* Copyright © 2020 Keith Packard */
/*
* Licensed under the Apache License, Version 2.0 (the “License”); you
* may not use this file except in compliance with the License. A copy
* of this license can be found in the LICENSE.Apache2 file included
* with this software. You may also obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an “AS IS” BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef METAL__DRIVERS__SIFIVE_I2C0_H
Expand Down
16 changes: 16 additions & 0 deletions sifive-blocks/metal/drivers/sifive_pwm0.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
/* Copyright 2020 SiFive, Inc */
/* Copyright © 2020 Keith Packard */
/*
* Licensed under the Apache License, Version 2.0 (the “License”); you
* may not use this file except in compliance with the License. A copy
* of this license can be found in the LICENSE.Apache2 file included
* with this software. You may also obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an “AS IS” BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef METAL__DRIVERS__SIFIVE_PWM0_H
Expand Down
16 changes: 16 additions & 0 deletions sifive-blocks/metal/drivers/sifive_spi0.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
/* Copyright 2018 SiFive, Inc */
/* Copyright © 2020 Keith Packard */
/*
* Licensed under the Apache License, Version 2.0 (the “License”); you
* may not use this file except in compliance with the License. A copy
* of this license can be found in the LICENSE.Apache2 file included
* with this software. You may also obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an “AS IS” BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef METAL__DRIVERS__SIFIVE_SPI0_H
Expand Down
17 changes: 17 additions & 0 deletions sifive-blocks/src/drivers/sifive_aon0.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/* Copyright 2020 SiFive, Inc */
/* Copyright © 2020 Keith Packard */
/*
* Licensed under the Apache License, Version 2.0 (the “License”); you
* may not use this file except in compliance with the License. A copy
* of this license can be found in the LICENSE.Apache2 file included
* with this software. You may also obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an “AS IS” BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/* SPDX-License-Identifier: Apache-2.0 */

#include <metal/platform.h>
Expand Down
16 changes: 16 additions & 0 deletions sifive-blocks/src/drivers/sifive_buserror0.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
/* Copyright 2020 SiFive, Inc */
/* Copyright © 2020 Keith Packard */
/*
* Licensed under the Apache License, Version 2.0 (the “License”); you
* may not use this file except in compliance with the License. A copy
* of this license can be found in the LICENSE.Apache2 file included
* with this software. You may also obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an “AS IS” BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/* SPDX-License-Identifier: Apache-2.0 */

#include <metal/drivers/sifive_buserror0.h>
Expand Down
Loading