diff --git a/metal/drivers/fixed_clock.h b/metal/drivers/fixed_clock.h index d698b893..0a63f029 100644 --- a/metal/drivers/fixed_clock.h +++ b/metal/drivers/fixed_clock.h @@ -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 diff --git a/metal/drivers/fixed_factor_clock.h b/metal/drivers/fixed_factor_clock.h index 182908cb..32199f94 100644 --- a/metal/drivers/fixed_factor_clock.h +++ b/metal/drivers/fixed_factor_clock.h @@ -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 diff --git a/metal/drivers/riscv_cpu_intc.h b/metal/drivers/riscv_cpu_intc.h index e63ee2a8..e37e8982 100644 --- a/metal/drivers/riscv_cpu_intc.h +++ b/metal/drivers/riscv_cpu_intc.h @@ -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 diff --git a/metal/exception.h b/metal/exception.h index 722ef359..2e4304a4 100644 --- a/metal/exception.h +++ b/metal/exception.h @@ -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 diff --git a/metal/riscv.h b/metal/riscv.h index 97810ca2..e4f945fe 100644 --- a/metal/riscv.h +++ b/metal/riscv.h @@ -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 diff --git a/metal_nano.make b/metal_nano.make index c4cae8ca..1f5d1a8c 100644 --- a/metal_nano.make +++ b/metal_nano.make @@ -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 \ diff --git a/metal_pico.make b/metal_pico.make index fe677299..fa03a990 100644 --- a/metal_pico.make +++ b/metal_pico.make @@ -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 \ diff --git a/scripts/codegen.py b/scripts/codegen.py index fc6c7e73..9b7cfd02 100644 --- a/scripts/codegen.py +++ b/scripts/codegen.py @@ -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 diff --git a/sifive-blocks/metal/drivers/sifive_ccache0.h b/sifive-blocks/metal/drivers/sifive_ccache0.h index aac1d157..d72d6b74 100644 --- a/sifive-blocks/metal/drivers/sifive_ccache0.h +++ b/sifive-blocks/metal/drivers/sifive_ccache0.h @@ -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 diff --git a/sifive-blocks/metal/drivers/sifive_clic0.h b/sifive-blocks/metal/drivers/sifive_clic0.h index 777155c2..af6ecd6f 100644 --- a/sifive-blocks/metal/drivers/sifive_clic0.h +++ b/sifive-blocks/metal/drivers/sifive_clic0.h @@ -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 diff --git a/sifive-blocks/metal/drivers/sifive_fe310_g000_hfrosc.h b/sifive-blocks/metal/drivers/sifive_fe310_g000_hfrosc.h index 1a3b99f1..0f5b89a7 100644 --- a/sifive-blocks/metal/drivers/sifive_fe310_g000_hfrosc.h +++ b/sifive-blocks/metal/drivers/sifive_fe310_g000_hfrosc.h @@ -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 diff --git a/sifive-blocks/metal/drivers/sifive_fe310_g000_hfxosc.h b/sifive-blocks/metal/drivers/sifive_fe310_g000_hfxosc.h index b1988171..fd42deb4 100644 --- a/sifive-blocks/metal/drivers/sifive_fe310_g000_hfxosc.h +++ b/sifive-blocks/metal/drivers/sifive_fe310_g000_hfxosc.h @@ -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 diff --git a/sifive-blocks/metal/drivers/sifive_fe310_g000_lfrosc.h b/sifive-blocks/metal/drivers/sifive_fe310_g000_lfrosc.h index 1e744045..7623a6f7 100644 --- a/sifive-blocks/metal/drivers/sifive_fe310_g000_lfrosc.h +++ b/sifive-blocks/metal/drivers/sifive_fe310_g000_lfrosc.h @@ -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 diff --git a/sifive-blocks/metal/drivers/sifive_fe310_g000_pll.h b/sifive-blocks/metal/drivers/sifive_fe310_g000_pll.h index 10015c06..c8bc3b26 100644 --- a/sifive-blocks/metal/drivers/sifive_fe310_g000_pll.h +++ b/sifive-blocks/metal/drivers/sifive_fe310_g000_pll.h @@ -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 diff --git a/sifive-blocks/metal/drivers/sifive_i2c0.h b/sifive-blocks/metal/drivers/sifive_i2c0.h index 6029402b..0a2d200c 100644 --- a/sifive-blocks/metal/drivers/sifive_i2c0.h +++ b/sifive-blocks/metal/drivers/sifive_i2c0.h @@ -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 diff --git a/sifive-blocks/metal/drivers/sifive_pwm0.h b/sifive-blocks/metal/drivers/sifive_pwm0.h index 52012af8..8afd06b8 100644 --- a/sifive-blocks/metal/drivers/sifive_pwm0.h +++ b/sifive-blocks/metal/drivers/sifive_pwm0.h @@ -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 diff --git a/sifive-blocks/metal/drivers/sifive_spi0.h b/sifive-blocks/metal/drivers/sifive_spi0.h index a83b5808..7b2fab5a 100644 --- a/sifive-blocks/metal/drivers/sifive_spi0.h +++ b/sifive-blocks/metal/drivers/sifive_spi0.h @@ -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 diff --git a/sifive-blocks/src/drivers/sifive_aon0.c b/sifive-blocks/src/drivers/sifive_aon0.c index bddb9c5b..45d36a72 100644 --- a/sifive-blocks/src/drivers/sifive_aon0.c +++ b/sifive-blocks/src/drivers/sifive_aon0.c @@ -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 diff --git a/sifive-blocks/src/drivers/sifive_buserror0.c b/sifive-blocks/src/drivers/sifive_buserror0.c index ac65b808..86b31f11 100644 --- a/sifive-blocks/src/drivers/sifive_buserror0.c +++ b/sifive-blocks/src/drivers/sifive_buserror0.c @@ -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 diff --git a/sifive-blocks/src/drivers/sifive_ccache0.c b/sifive-blocks/src/drivers/sifive_ccache0.c index 6674ad5f..a2361cee 100644 --- a/sifive-blocks/src/drivers/sifive_ccache0.c +++ b/sifive-blocks/src/drivers/sifive_ccache0.c @@ -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 */ #include diff --git a/sifive-blocks/src/drivers/sifive_clic0.c b/sifive-blocks/src/drivers/sifive_clic0.c index 03263194..df180482 100644 --- a/sifive-blocks/src/drivers/sifive_clic0.c +++ b/sifive-blocks/src/drivers/sifive_clic0.c @@ -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 */ #include diff --git a/sifive-blocks/src/drivers/sifive_fe310_g000_hfrosc.c b/sifive-blocks/src/drivers/sifive_fe310_g000_hfrosc.c index 16f24c04..69d58134 100644 --- a/sifive-blocks/src/drivers/sifive_fe310_g000_hfrosc.c +++ b/sifive-blocks/src/drivers/sifive_fe310_g000_hfrosc.c @@ -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 */ #include diff --git a/sifive-blocks/src/drivers/sifive_fe310_g000_hfxosc.c b/sifive-blocks/src/drivers/sifive_fe310_g000_hfxosc.c index 4d08240d..c52d41c0 100644 --- a/sifive-blocks/src/drivers/sifive_fe310_g000_hfxosc.c +++ b/sifive-blocks/src/drivers/sifive_fe310_g000_hfxosc.c @@ -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 */ #include diff --git a/sifive-blocks/src/drivers/sifive_fe310_g000_lfrosc.c b/sifive-blocks/src/drivers/sifive_fe310_g000_lfrosc.c index 9f5f42cd..23adeccd 100644 --- a/sifive-blocks/src/drivers/sifive_fe310_g000_lfrosc.c +++ b/sifive-blocks/src/drivers/sifive_fe310_g000_lfrosc.c @@ -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 */ #include diff --git a/sifive-blocks/src/drivers/sifive_gpio0.c b/sifive-blocks/src/drivers/sifive_gpio0.c index 83eca5a1..c4f3cf81 100644 --- a/sifive-blocks/src/drivers/sifive_gpio0.c +++ b/sifive-blocks/src/drivers/sifive_gpio0.c @@ -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 */ #include diff --git a/sifive-blocks/src/drivers/sifive_gpio_buttons.c b/sifive-blocks/src/drivers/sifive_gpio_buttons.c index daf8e39c..6b703366 100644 --- a/sifive-blocks/src/drivers/sifive_gpio_buttons.c +++ b/sifive-blocks/src/drivers/sifive_gpio_buttons.c @@ -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 */ #include diff --git a/sifive-blocks/src/drivers/sifive_gpio_leds.c b/sifive-blocks/src/drivers/sifive_gpio_leds.c index ec95f088..26e7f758 100644 --- a/sifive-blocks/src/drivers/sifive_gpio_leds.c +++ b/sifive-blocks/src/drivers/sifive_gpio_leds.c @@ -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 diff --git a/sifive-blocks/src/drivers/sifive_gpio_switches.c b/sifive-blocks/src/drivers/sifive_gpio_switches.c index b27a0a8f..890abc30 100644 --- a/sifive-blocks/src/drivers/sifive_gpio_switches.c +++ b/sifive-blocks/src/drivers/sifive_gpio_switches.c @@ -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 */ #include diff --git a/sifive-blocks/src/drivers/sifive_pwm0.c b/sifive-blocks/src/drivers/sifive_pwm0.c index ee473b20..92f22a57 100644 --- a/sifive-blocks/src/drivers/sifive_pwm0.c +++ b/sifive-blocks/src/drivers/sifive_pwm0.c @@ -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 diff --git a/sifive-blocks/src/drivers/sifive_test0.c b/sifive-blocks/src/drivers/sifive_test0.c index 0481c0d9..567b46d8 100644 --- a/sifive-blocks/src/drivers/sifive_test0.c +++ b/sifive-blocks/src/drivers/sifive_test0.c @@ -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 */ #include diff --git a/sifive-blocks/src/drivers/sifive_uart0.c b/sifive-blocks/src/drivers/sifive_uart0.c index 878a239f..e746a3ec 100644 --- a/sifive-blocks/src/drivers/sifive_uart0.c +++ b/sifive-blocks/src/drivers/sifive_uart0.c @@ -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 */ #include diff --git a/sifive-blocks/templates/MANIFEST.ini b/sifive-blocks/templates/MANIFEST.ini index 3fc7fe58..fcd928b1 100644 --- a/sifive-blocks/templates/MANIFEST.ini +++ b/sifive-blocks/templates/MANIFEST.ini @@ -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. +# [clock] Compatible = sifive,fe310-g000,hfrosc sifive,fe310-g000,hfxosc sifive,fe310-g000,lfrosc sifive,fe310-g000,pll diff --git a/sifive-blocks/templates/metal/platform/metal_platform_sifive_aon0.h.j2 b/sifive-blocks/templates/metal/platform/metal_platform_sifive_aon0.h.j2 index 63e231a1..1737dfba 100644 --- a/sifive-blocks/templates/metal/platform/metal_platform_sifive_aon0.h.j2 +++ b/sifive-blocks/templates/metal/platform/metal_platform_sifive_aon0.h.j2 @@ -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__PLATFORM__SIFIVE_AON0_H diff --git a/sifive-blocks/templates/metal/platform/metal_platform_sifive_buserror0.h.j2 b/sifive-blocks/templates/metal/platform/metal_platform_sifive_buserror0.h.j2 index 5949d7ab..40625488 100644 --- a/sifive-blocks/templates/metal/platform/metal_platform_sifive_buserror0.h.j2 +++ b/sifive-blocks/templates/metal/platform/metal_platform_sifive_buserror0.h.j2 @@ -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__PLATFORM__SIFIVE_BUSERROR0_H diff --git a/sifive-blocks/templates/metal/platform/metal_platform_sifive_ccache0.h.j2 b/sifive-blocks/templates/metal/platform/metal_platform_sifive_ccache0.h.j2 index f29038af..1db891e9 100644 --- a/sifive-blocks/templates/metal/platform/metal_platform_sifive_ccache0.h.j2 +++ b/sifive-blocks/templates/metal/platform/metal_platform_sifive_ccache0.h.j2 @@ -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__PLATFORM__SIFIVE_CCACHE0_H diff --git a/sifive-blocks/templates/metal/platform/metal_platform_sifive_clic0.h.j2 b/sifive-blocks/templates/metal/platform/metal_platform_sifive_clic0.h.j2 index 7d053b0b..561cb3b4 100644 --- a/sifive-blocks/templates/metal/platform/metal_platform_sifive_clic0.h.j2 +++ b/sifive-blocks/templates/metal/platform/metal_platform_sifive_clic0.h.j2 @@ -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__PLATFORM__SIFIVE_CLIC0_H diff --git a/sifive-blocks/templates/metal/platform/metal_platform_sifive_fe310_g000_hfrosc.h.j2 b/sifive-blocks/templates/metal/platform/metal_platform_sifive_fe310_g000_hfrosc.h.j2 index ac12ac75..0916c3d2 100644 --- a/sifive-blocks/templates/metal/platform/metal_platform_sifive_fe310_g000_hfrosc.h.j2 +++ b/sifive-blocks/templates/metal/platform/metal_platform_sifive_fe310_g000_hfrosc.h.j2 @@ -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__PLATFORM__SIFIVE_FE310_G000_HFROSC_H diff --git a/sifive-blocks/templates/metal/platform/metal_platform_sifive_fe310_g000_hfxosc.h.j2 b/sifive-blocks/templates/metal/platform/metal_platform_sifive_fe310_g000_hfxosc.h.j2 index 6a721c87..fc1287b0 100644 --- a/sifive-blocks/templates/metal/platform/metal_platform_sifive_fe310_g000_hfxosc.h.j2 +++ b/sifive-blocks/templates/metal/platform/metal_platform_sifive_fe310_g000_hfxosc.h.j2 @@ -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__PLATFORM__SIFIVE_FE310_G000_HFXOSC_H diff --git a/sifive-blocks/templates/metal/platform/metal_platform_sifive_fe310_g000_lfrosc.h.j2 b/sifive-blocks/templates/metal/platform/metal_platform_sifive_fe310_g000_lfrosc.h.j2 index 3c334443..4021fde4 100644 --- a/sifive-blocks/templates/metal/platform/metal_platform_sifive_fe310_g000_lfrosc.h.j2 +++ b/sifive-blocks/templates/metal/platform/metal_platform_sifive_fe310_g000_lfrosc.h.j2 @@ -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__PLATFORM__SIFIVE_FE310_G000_LFROSC_H diff --git a/sifive-blocks/templates/metal/platform/metal_platform_sifive_fe310_g000_pll.h.j2 b/sifive-blocks/templates/metal/platform/metal_platform_sifive_fe310_g000_pll.h.j2 index 53f5681c..241aff44 100644 --- a/sifive-blocks/templates/metal/platform/metal_platform_sifive_fe310_g000_pll.h.j2 +++ b/sifive-blocks/templates/metal/platform/metal_platform_sifive_fe310_g000_pll.h.j2 @@ -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__PLATFORM__SIFIVE_FE310_G000_PLL_H diff --git a/sifive-blocks/templates/metal/platform/metal_platform_sifive_fe310_g000_prci.h.j2 b/sifive-blocks/templates/metal/platform/metal_platform_sifive_fe310_g000_prci.h.j2 index 32726424..d3d78beb 100644 --- a/sifive-blocks/templates/metal/platform/metal_platform_sifive_fe310_g000_prci.h.j2 +++ b/sifive-blocks/templates/metal/platform/metal_platform_sifive_fe310_g000_prci.h.j2 @@ -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__PLATFORM__SIFIVE_FE310_G000_PRCI_H diff --git a/sifive-blocks/templates/metal/platform/metal_platform_sifive_fu540_c000_l2.h.j2 b/sifive-blocks/templates/metal/platform/metal_platform_sifive_fu540_c000_l2.h.j2 index 497243ad..4b1dca38 100644 --- a/sifive-blocks/templates/metal/platform/metal_platform_sifive_fu540_c000_l2.h.j2 +++ b/sifive-blocks/templates/metal/platform/metal_platform_sifive_fu540_c000_l2.h.j2 @@ -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__PLATFORM__SIFIVE_FU540_C000_L20_H diff --git a/sifive-blocks/templates/metal/platform/metal_platform_sifive_gpio0.h.j2 b/sifive-blocks/templates/metal/platform/metal_platform_sifive_gpio0.h.j2 index 773d4218..9b388b4b 100644 --- a/sifive-blocks/templates/metal/platform/metal_platform_sifive_gpio0.h.j2 +++ b/sifive-blocks/templates/metal/platform/metal_platform_sifive_gpio0.h.j2 @@ -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__PLATFORM__SIFIVE_GPIO0_H diff --git a/sifive-blocks/templates/metal/platform/metal_platform_sifive_gpio_buttons.h.j2 b/sifive-blocks/templates/metal/platform/metal_platform_sifive_gpio_buttons.h.j2 index 8dd7555b..f3943c9b 100644 --- a/sifive-blocks/templates/metal/platform/metal_platform_sifive_gpio_buttons.h.j2 +++ b/sifive-blocks/templates/metal/platform/metal_platform_sifive_gpio_buttons.h.j2 @@ -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__PLATFORM__SIFIVE_GPIO_BUTTONS_H diff --git a/sifive-blocks/templates/metal/platform/metal_platform_sifive_gpio_leds.h.j2 b/sifive-blocks/templates/metal/platform/metal_platform_sifive_gpio_leds.h.j2 index ba136901..20932adc 100644 --- a/sifive-blocks/templates/metal/platform/metal_platform_sifive_gpio_leds.h.j2 +++ b/sifive-blocks/templates/metal/platform/metal_platform_sifive_gpio_leds.h.j2 @@ -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__PLATFORM__SIFIVE_GPIO_LEDS_H diff --git a/sifive-blocks/templates/metal/platform/metal_platform_sifive_gpio_switches.h.j2 b/sifive-blocks/templates/metal/platform/metal_platform_sifive_gpio_switches.h.j2 index 1b78299e..3deb53ae 100644 --- a/sifive-blocks/templates/metal/platform/metal_platform_sifive_gpio_switches.h.j2 +++ b/sifive-blocks/templates/metal/platform/metal_platform_sifive_gpio_switches.h.j2 @@ -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__PLATFORM__SIFIVE_GPIO_SWITCHES_H diff --git a/sifive-blocks/templates/metal/platform/metal_platform_sifive_i2c0.h.j2 b/sifive-blocks/templates/metal/platform/metal_platform_sifive_i2c0.h.j2 index d3098986..7cb28e86 100644 --- a/sifive-blocks/templates/metal/platform/metal_platform_sifive_i2c0.h.j2 +++ b/sifive-blocks/templates/metal/platform/metal_platform_sifive_i2c0.h.j2 @@ -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__PLATFORM__SIFIVE_I2C0_H diff --git a/sifive-blocks/templates/metal/platform/metal_platform_sifive_pwm0.h.j2 b/sifive-blocks/templates/metal/platform/metal_platform_sifive_pwm0.h.j2 index ea57450c..b6597786 100644 --- a/sifive-blocks/templates/metal/platform/metal_platform_sifive_pwm0.h.j2 +++ b/sifive-blocks/templates/metal/platform/metal_platform_sifive_pwm0.h.j2 @@ -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__PLATFORM__SIFIVE_PWM0_H diff --git a/sifive-blocks/templates/metal/platform/metal_platform_sifive_spi0.h.j2 b/sifive-blocks/templates/metal/platform/metal_platform_sifive_spi0.h.j2 index e6b25d24..27adacca 100644 --- a/sifive-blocks/templates/metal/platform/metal_platform_sifive_spi0.h.j2 +++ b/sifive-blocks/templates/metal/platform/metal_platform_sifive_spi0.h.j2 @@ -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__PLATFORM__SIFIVE_SPI0_H diff --git a/sifive-blocks/templates/metal/platform/metal_platform_sifive_test0.h.j2 b/sifive-blocks/templates/metal/platform/metal_platform_sifive_test0.h.j2 index 55eebb6a..9b51d24e 100644 --- a/sifive-blocks/templates/metal/platform/metal_platform_sifive_test0.h.j2 +++ b/sifive-blocks/templates/metal/platform/metal_platform_sifive_test0.h.j2 @@ -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__PLATFORM__SIFIVE_TEST0_H diff --git a/sifive-blocks/templates/metal/platform/metal_platform_sifive_uart0.h.j2 b/sifive-blocks/templates/metal/platform/metal_platform_sifive_uart0.h.j2 index 821a9f7d..4e4d281b 100644 --- a/sifive-blocks/templates/metal/platform/metal_platform_sifive_uart0.h.j2 +++ b/sifive-blocks/templates/metal/platform/metal_platform_sifive_uart0.h.j2 @@ -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__PLATFORM__SIFIVE_UART0_H diff --git a/sifive-blocks/templates/metal/private/metal_private_sifive_aon0.h.j2 b/sifive-blocks/templates/metal/private/metal_private_sifive_aon0.h.j2 index 29b05eeb..da2a04c5 100644 --- a/sifive-blocks/templates/metal/private/metal_private_sifive_aon0.h.j2 +++ b/sifive-blocks/templates/metal/private/metal_private_sifive_aon0.h.j2 @@ -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__GENERATED__SIFIVE_AON00__H diff --git a/sifive-blocks/templates/metal/private/metal_private_sifive_buserror0.h.j2 b/sifive-blocks/templates/metal/private/metal_private_sifive_buserror0.h.j2 index 390145b9..d7aee801 100644 --- a/sifive-blocks/templates/metal/private/metal_private_sifive_buserror0.h.j2 +++ b/sifive-blocks/templates/metal/private/metal_private_sifive_buserror0.h.j2 @@ -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__GENERATED__SIFIVE_BUSERROR0__H diff --git a/sifive-blocks/templates/metal/private/metal_private_sifive_clic0.h.j2 b/sifive-blocks/templates/metal/private/metal_private_sifive_clic0.h.j2 index ac2b7d8b..8591d8a1 100644 --- a/sifive-blocks/templates/metal/private/metal_private_sifive_clic0.h.j2 +++ b/sifive-blocks/templates/metal/private/metal_private_sifive_clic0.h.j2 @@ -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__GENERATED__SIFIVE_CLIC0_H diff --git a/sifive-blocks/templates/metal/private/metal_private_sifive_fe310_g000_hfrosc.h.j2 b/sifive-blocks/templates/metal/private/metal_private_sifive_fe310_g000_hfrosc.h.j2 index f0b97b62..d4e50d2c 100644 --- a/sifive-blocks/templates/metal/private/metal_private_sifive_fe310_g000_hfrosc.h.j2 +++ b/sifive-blocks/templates/metal/private/metal_private_sifive_fe310_g000_hfrosc.h.j2 @@ -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_HFROSC_CLOCK_H diff --git a/sifive-blocks/templates/metal/private/metal_private_sifive_fe310_g000_hfxosc.h.j2 b/sifive-blocks/templates/metal/private/metal_private_sifive_fe310_g000_hfxosc.h.j2 index d20c2aa3..9d94dd91 100644 --- a/sifive-blocks/templates/metal/private/metal_private_sifive_fe310_g000_hfxosc.h.j2 +++ b/sifive-blocks/templates/metal/private/metal_private_sifive_fe310_g000_hfxosc.h.j2 @@ -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_HFXOSC_CLOCK_H diff --git a/sifive-blocks/templates/metal/private/metal_private_sifive_fe310_g000_lfrosc.h.j2 b/sifive-blocks/templates/metal/private/metal_private_sifive_fe310_g000_lfrosc.h.j2 index ad32ac23..fa4236ee 100644 --- a/sifive-blocks/templates/metal/private/metal_private_sifive_fe310_g000_lfrosc.h.j2 +++ b/sifive-blocks/templates/metal/private/metal_private_sifive_fe310_g000_lfrosc.h.j2 @@ -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_LFROSC_CLOCK_H diff --git a/sifive-blocks/templates/metal/private/metal_private_sifive_fe310_g000_pll.h.j2 b/sifive-blocks/templates/metal/private/metal_private_sifive_fe310_g000_pll.h.j2 index b79585b4..ec05b622 100644 --- a/sifive-blocks/templates/metal/private/metal_private_sifive_fe310_g000_pll.h.j2 +++ b/sifive-blocks/templates/metal/private/metal_private_sifive_fe310_g000_pll.h.j2 @@ -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_CLOCK_H diff --git a/sifive-blocks/templates/metal/private/metal_private_sifive_gpio0.h.j2 b/sifive-blocks/templates/metal/private/metal_private_sifive_gpio0.h.j2 index ea42b8ba..6f8313d5 100644 --- a/sifive-blocks/templates/metal/private/metal_private_sifive_gpio0.h.j2 +++ b/sifive-blocks/templates/metal/private/metal_private_sifive_gpio0.h.j2 @@ -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_GPIO0_H diff --git a/sifive-blocks/templates/metal/private/metal_private_sifive_gpio_buttons.h.j2 b/sifive-blocks/templates/metal/private/metal_private_sifive_gpio_buttons.h.j2 index 973daca7..7190c4c0 100644 --- a/sifive-blocks/templates/metal/private/metal_private_sifive_gpio_buttons.h.j2 +++ b/sifive-blocks/templates/metal/private/metal_private_sifive_gpio_buttons.h.j2 @@ -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_GPIO_BUTTONS_H diff --git a/sifive-blocks/templates/metal/private/metal_private_sifive_gpio_leds.h.j2 b/sifive-blocks/templates/metal/private/metal_private_sifive_gpio_leds.h.j2 index 3e31b038..ed9c282c 100644 --- a/sifive-blocks/templates/metal/private/metal_private_sifive_gpio_leds.h.j2 +++ b/sifive-blocks/templates/metal/private/metal_private_sifive_gpio_leds.h.j2 @@ -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_GPIO_LEDS_H diff --git a/sifive-blocks/templates/metal/private/metal_private_sifive_gpio_switches.h.j2 b/sifive-blocks/templates/metal/private/metal_private_sifive_gpio_switches.h.j2 index 435c9630..e0d8b443 100644 --- a/sifive-blocks/templates/metal/private/metal_private_sifive_gpio_switches.h.j2 +++ b/sifive-blocks/templates/metal/private/metal_private_sifive_gpio_switches.h.j2 @@ -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_GPIO_SWITCHES_H diff --git a/sifive-blocks/templates/metal/private/metal_private_sifive_i2c0.h.j2 b/sifive-blocks/templates/metal/private/metal_private_sifive_i2c0.h.j2 index fc2538c1..21168464 100644 --- a/sifive-blocks/templates/metal/private/metal_private_sifive_i2c0.h.j2 +++ b/sifive-blocks/templates/metal/private/metal_private_sifive_i2c0.h.j2 @@ -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_I2C0_H diff --git a/sifive-blocks/templates/metal/private/metal_private_sifive_pwm0.h.j2 b/sifive-blocks/templates/metal/private/metal_private_sifive_pwm0.h.j2 index d55ff331..0c67c82b 100644 --- a/sifive-blocks/templates/metal/private/metal_private_sifive_pwm0.h.j2 +++ b/sifive-blocks/templates/metal/private/metal_private_sifive_pwm0.h.j2 @@ -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 diff --git a/sifive-blocks/templates/metal/private/metal_private_sifive_spi0.h.j2 b/sifive-blocks/templates/metal/private/metal_private_sifive_spi0.h.j2 index d016e20e..397c7fe3 100644 --- a/sifive-blocks/templates/metal/private/metal_private_sifive_spi0.h.j2 +++ b/sifive-blocks/templates/metal/private/metal_private_sifive_spi0.h.j2 @@ -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_SPI0_H diff --git a/sifive-blocks/templates/metal/private/metal_private_sifive_uart0.h.j2 b/sifive-blocks/templates/metal/private/metal_private_sifive_uart0.h.j2 index 8a3ae7ad..b8069e4f 100644 --- a/sifive-blocks/templates/metal/private/metal_private_sifive_uart0.h.j2 +++ b/sifive-blocks/templates/metal/private/metal_private_sifive_uart0.h.j2 @@ -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_UART0_H diff --git a/src/drivers/fixed_clock.c b/src/drivers/fixed_clock.c index f3c6e0c8..b64b8f03 100644 --- a/src/drivers/fixed_clock.c +++ b/src/drivers/fixed_clock.c @@ -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 */ #include diff --git a/src/drivers/fixed_factor_clock.c b/src/drivers/fixed_factor_clock.c index 5f3f164d..c4beffe2 100644 --- a/src/drivers/fixed_factor_clock.c +++ b/src/drivers/fixed_factor_clock.c @@ -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 */ #include diff --git a/src/drivers/riscv_cpu_intc.c b/src/drivers/riscv_cpu_intc.c index b6fa90ed..de22b0f2 100644 --- a/src/drivers/riscv_cpu_intc.c +++ b/src/drivers/riscv_cpu_intc.c @@ -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 */ #include diff --git a/src/exception.c b/src/exception.c index d6855703..98373d82 100644 --- a/src/exception.c +++ b/src/exception.c @@ -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 diff --git a/templates/MANIFEST.ini b/templates/MANIFEST.ini index 57ad2aad..f9785c55 100644 --- a/templates/MANIFEST.ini +++ b/templates/MANIFEST.ini @@ -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. +# [clint] Compatible = riscv,clint0 diff --git a/templates/clock_dispatch.h.j2 b/templates/clock_dispatch.h.j2 index a7554fa1..11a57b62 100644 --- a/templates/clock_dispatch.h.j2 +++ b/templates/clock_dispatch.h.j2 @@ -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. + */ #include diff --git a/templates/interrupt_dispatch.h.j2 b/templates/interrupt_dispatch.h.j2 index 146c6422..fb7edd83 100644 --- a/templates/interrupt_dispatch.h.j2 +++ b/templates/interrupt_dispatch.h.j2 @@ -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. + */ #include diff --git a/templates/metal.mk.j2 b/templates/metal.mk.j2 index 85c68376..ec9bfc3e 100644 --- a/templates/metal.mk.j2 +++ b/templates/metal.mk.j2 @@ -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_SRC = \ {{ c_sources|join(' \\\n ') }} \ {{ asm_sources|join(' \\\n ') }} diff --git a/templates/metal/interrupt_handlers.h.j2 b/templates/metal/interrupt_handlers.h.j2 index d0fb5767..6569c371 100644 --- a/templates/metal/interrupt_handlers.h.j2 +++ b/templates/metal/interrupt_handlers.h.j2 @@ -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 */ #ifndef __INTERRUPT_HANDLERS_H diff --git a/templates/metal/platform.h.j2 b/templates/metal/platform.h.j2 index bba0655f..a89b55d9 100644 --- a/templates/metal/platform.h.j2 +++ b/templates/metal/platform.h.j2 @@ -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. + */ #ifndef __METAL_PLATFORM__H #define __METAL_PLATFORM__H diff --git a/templates/metal/platform/metal_platform_fixed_clock.h.j2 b/templates/metal/platform/metal_platform_fixed_clock.h.j2 index 81031981..fb425641 100644 --- a/templates/metal/platform/metal_platform_fixed_clock.h.j2 +++ b/templates/metal/platform/metal_platform_fixed_clock.h.j2 @@ -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__PLATFORM__FIXED_CLOCK_H diff --git a/templates/metal/platform/metal_platform_fixed_factor_clock.h.j2 b/templates/metal/platform/metal_platform_fixed_factor_clock.h.j2 index b5454054..1035b564 100644 --- a/templates/metal/platform/metal_platform_fixed_factor_clock.h.j2 +++ b/templates/metal/platform/metal_platform_fixed_factor_clock.h.j2 @@ -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__PLATFORM__FIXED_FACTOR_CLOCK_H diff --git a/templates/metal/platform/metal_platform_riscv_clint0.h.j2 b/templates/metal/platform/metal_platform_riscv_clint0.h.j2 index e14bab32..d690fc22 100644 --- a/templates/metal/platform/metal_platform_riscv_clint0.h.j2 +++ b/templates/metal/platform/metal_platform_riscv_clint0.h.j2 @@ -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__PLATFORM__RISCV_CLINT0_H diff --git a/templates/metal/platform/metal_platform_riscv_cpu_intc.h.j2 b/templates/metal/platform/metal_platform_riscv_cpu_intc.h.j2 index 3bd0c1d9..3d9296dc 100644 --- a/templates/metal/platform/metal_platform_riscv_cpu_intc.h.j2 +++ b/templates/metal/platform/metal_platform_riscv_cpu_intc.h.j2 @@ -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__PLATFORM__RISCV_CPU_INTC_H diff --git a/templates/metal/platform/metal_platform_riscv_plic0.h.j2 b/templates/metal/platform/metal_platform_riscv_plic0.h.j2 index a67786ed..02c0e305 100644 --- a/templates/metal/platform/metal_platform_riscv_plic0.h.j2 +++ b/templates/metal/platform/metal_platform_riscv_plic0.h.j2 @@ -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__PLATFORM__RISCV_PLIC0_H diff --git a/templates/metal/private/metal_private_button.h.j2 b/templates/metal/private/metal_private_button.h.j2 index 84a6106a..f16dd1fe 100644 --- a/templates/metal/private/metal_private_button.h.j2 +++ b/templates/metal/private/metal_private_button.h.j2 @@ -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. + */ #ifndef __METAL_DT_BUTTON__H #define __METAL_DT_BUTTON__H diff --git a/templates/metal/private/metal_private_cache.h.j2 b/templates/metal/private/metal_private_cache.h.j2 index 28752e53..887f4cf9 100644 --- a/templates/metal/private/metal_private_cache.h.j2 +++ b/templates/metal/private/metal_private_cache.h.j2 @@ -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. + */ #ifndef __METAL_DT_CACHE__H #define __METAL_DT_CACHE__H diff --git a/templates/metal/private/metal_private_cpu.h.j2 b/templates/metal/private/metal_private_cpu.h.j2 index b79f3b65..bc5822e7 100644 --- a/templates/metal/private/metal_private_cpu.h.j2 +++ b/templates/metal/private/metal_private_cpu.h.j2 @@ -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. + */ #ifndef __METAL_DT_CPU__H #define __METAL_DT_CPU__H diff --git a/templates/metal/private/metal_private_fixed_clock.h.j2 b/templates/metal/private/metal_private_fixed_clock.h.j2 index 14c3e7e4..c403aa7f 100644 --- a/templates/metal/private/metal_private_fixed_clock.h.j2 +++ b/templates/metal/private/metal_private_fixed_clock.h.j2 @@ -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__FIXED_CLOCK_H diff --git a/templates/metal/private/metal_private_fixed_factor_clock.h.j2 b/templates/metal/private/metal_private_fixed_factor_clock.h.j2 index bca9a8af..ea4d6a0e 100644 --- a/templates/metal/private/metal_private_fixed_factor_clock.h.j2 +++ b/templates/metal/private/metal_private_fixed_factor_clock.h.j2 @@ -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__FIXED_FACTOR_CLOCK_H diff --git a/templates/metal/private/metal_private_gpio.h.j2 b/templates/metal/private/metal_private_gpio.h.j2 index 64ff660b..bb3c931b 100644 --- a/templates/metal/private/metal_private_gpio.h.j2 +++ b/templates/metal/private/metal_private_gpio.h.j2 @@ -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. + */ #ifndef __METAL_DT_GPIO__H #define __METAL_DT_GPIO__H diff --git a/templates/metal/private/metal_private_i2c.h.j2 b/templates/metal/private/metal_private_i2c.h.j2 index b39498aa..f279edc9 100644 --- a/templates/metal/private/metal_private_i2c.h.j2 +++ b/templates/metal/private/metal_private_i2c.h.j2 @@ -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. + */ #ifndef __METAL_DT_I2C__H #define __METAL_DT_I2C__H diff --git a/templates/metal/private/metal_private_led.h.j2 b/templates/metal/private/metal_private_led.h.j2 index a19a2f59..3471e36d 100644 --- a/templates/metal/private/metal_private_led.h.j2 +++ b/templates/metal/private/metal_private_led.h.j2 @@ -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. + */ #ifndef __METAL_DT_LED__H #define __METAL_DT_LED__H diff --git a/templates/metal/private/metal_private_pmp.h.j2 b/templates/metal/private/metal_private_pmp.h.j2 index df6a8cd8..eacf8755 100644 --- a/templates/metal/private/metal_private_pmp.h.j2 +++ b/templates/metal/private/metal_private_pmp.h.j2 @@ -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. + */ #ifndef __METAL_DT_PMP__H #define __METAL_DT_PMP__H diff --git a/templates/metal/private/metal_private_pwm.h.j2 b/templates/metal/private/metal_private_pwm.h.j2 index a9876b8b..e115e2c9 100644 --- a/templates/metal/private/metal_private_pwm.h.j2 +++ b/templates/metal/private/metal_private_pwm.h.j2 @@ -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. + */ #ifndef __METAL_DT_PWM__H #define __METAL_DT_PWM__H diff --git a/templates/metal/private/metal_private_riscv_cpu.h.j2 b/templates/metal/private/metal_private_riscv_cpu.h.j2 index 6923a856..82a0ae93 100644 --- a/templates/metal/private/metal_private_riscv_cpu.h.j2 +++ b/templates/metal/private/metal_private_riscv_cpu.h.j2 @@ -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__GENERATED__RISCV_CPU_H diff --git a/templates/metal/private/metal_private_riscv_plic0.h.j2 b/templates/metal/private/metal_private_riscv_plic0.h.j2 index f63c5bf3..4bc9fc14 100644 --- a/templates/metal/private/metal_private_riscv_plic0.h.j2 +++ b/templates/metal/private/metal_private_riscv_plic0.h.j2 @@ -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_UART0_H diff --git a/templates/metal/private/metal_private_rtc.h.j2 b/templates/metal/private/metal_private_rtc.h.j2 index 2caf9a0f..e0225541 100644 --- a/templates/metal/private/metal_private_rtc.h.j2 +++ b/templates/metal/private/metal_private_rtc.h.j2 @@ -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. + */ #ifndef __METAL_DT_RTC__H #define __METAL_DT_RTC__H diff --git a/templates/metal/private/metal_private_spi.h.j2 b/templates/metal/private/metal_private_spi.h.j2 index 35c61ff2..1cff51d8 100644 --- a/templates/metal/private/metal_private_spi.h.j2 +++ b/templates/metal/private/metal_private_spi.h.j2 @@ -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. + */ #ifndef __METAL_DT_SPI__H #define __METAL_DT_SPI__H diff --git a/templates/metal/private/metal_private_switch.h.j2 b/templates/metal/private/metal_private_switch.h.j2 index 5facf0b3..c144d95d 100644 --- a/templates/metal/private/metal_private_switch.h.j2 +++ b/templates/metal/private/metal_private_switch.h.j2 @@ -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. + */ #ifndef __METAL_DT_SWITCH__H #define __METAL_DT_SWITCH__H diff --git a/templates/metal/private/metal_private_uart.h.j2 b/templates/metal/private/metal_private_uart.h.j2 index 8eca9825..88c4ed95 100644 --- a/templates/metal/private/metal_private_uart.h.j2 +++ b/templates/metal/private/metal_private_uart.h.j2 @@ -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. + */ #ifndef __METAL_DT_UART__H #define __METAL_DT_UART__H diff --git a/templates/metal/private/metal_private_watchdog.h.j2 b/templates/metal/private/metal_private_watchdog.h.j2 index c45de98f..60530f03 100644 --- a/templates/metal/private/metal_private_watchdog.h.j2 +++ b/templates/metal/private/metal_private_watchdog.h.j2 @@ -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. + */ #ifndef __METAL_DT_WATCHDOG__H #define __METAL_DT_WATCHDOG__H diff --git a/templates/src/interrupt_handlers.c.j2 b/templates/src/interrupt_handlers.c.j2 index a0fa6061..c961f5bb 100644 --- a/templates/src/interrupt_handlers.c.j2 +++ b/templates/src/interrupt_handlers.c.j2 @@ -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 diff --git a/templates/src/interrupt_table.c.j2 b/templates/src/interrupt_table.c.j2 index dae09b32..d650ba8f 100644 --- a/templates/src/interrupt_table.c.j2 +++ b/templates/src/interrupt_table.c.j2 @@ -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 diff --git a/templates/src/jump_table.S.j2 b/templates/src/jump_table.S.j2 index 1dc6d10a..1702e7a6 100644 --- a/templates/src/jump_table.S.j2 +++ b/templates/src/jump_table.S.j2 @@ -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 */ #if __riscv_xlen == 32 diff --git a/templates/template_comment.h.j2 b/templates/template_comment.h.j2 index 59630812..26d6bf6f 100644 --- a/templates/template_comment.h.j2 +++ b/templates/template_comment.h.j2 @@ -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. + */ /* GENERATED FILE * -------------- * This file is generated from a template based on the content of the target